/*----------------------------------------------------------
>	OGP Style												<
>	oNdsen & own3mall										<
>	https://github.com/OpenGamePanel/Theme-SimpleBootstrap	<
-----------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');
/* global */
body
{
  margin: 0;
  background-color: #fff;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace; /* Keskin font */
  word-wrap: break-word;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background-color: #0a0c0f !important;
  background-size: cover!important;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  /* other backgrounds here: https://github.com/OpenGamePanel/Theme-SimpleBootstrap/tree/master/themes/SimpleBootstrap/images/bg */
}

*::selection {
  background: black;
  color: #fff;
}

textarea {background-color: rgba(26, 28, 34, 0.2); border: 1px solid rgba(26, 28, 34, 0.2); color: white;}

a:link, a:visited {text-decoration:none; color: #1997c6;}
a:hover, a:active {color:#fff;}

#adminlink {margin: 0;position: fixed;width: 25px;right: 0;top: 0;background-image: linear-gradient(45deg, #ffffff00, #ffffff00, #ff000061);height: 25px;}
#adminlink:hover {background-image: linear-gradient(45deg, #ffffff00, #ffffff00, #f30606);}
#topmenu {padding: 1em;background-color: #0000002b;border-bottom: 2px dashed black;}
#topmenu > li {display: inline-block;padding: 0 10px;}
#topmenu > li:before {content: '► ';}

/* add */
.addserver_table {margin: auto;}
.annotation {text-align: center; background-color: rgba(26, 28, 34, 0.2); padding-top:17px; padding-bottom:17px;}

/* details */
.players_table {margin: auto; border: 1px solid #22252f; border-spacing: 0 0; border-collapse: collapse;}
.settings_table {margin: auto; border: 1px solid #22252f; border-spacing: 0 0; border-collapse: collapse; max-width: 600px;}
.players_table tr, .settings_table tr {white-space:nowrap; border: 1px solid #22252f; table-layout:fixed;}
.players_table tr:nth-child(n), .settings_table tr:nth-child(n) {background-color: rgba(26, 28, 34, 0.2);}
.players_table tr:nth-child(2n), .settings_table tr:nth-child(2n) {background-color: rgba(26, 28, 34, 0.1);}
.players_table td {padding: 8px; border-top: 1px solid #22252f;}
.settings_table td {padding: 8px; border-top: 1px solid #22252f; white-space: pre-wrap;}

.details_info_row {margin-top: 14px;}
.details_info, .details_info_column:nth-child(2) {vertical-align: top;}
.details_info_ceil, .details_info_column, .details_info_scolumn {display: inline-block;}
.details_info_column {margin-right: 12px;}
.details_info_srow {padding: 8px; border-top: 1px solid #22252f; background-color: rgba(26, 28, 34, 0.2);}
.details_info_srow:nth-child(2n) {background-color: rgba(26, 28, 34, 0.1);}
.details_info_ceil:first-child {padding-right: 4px;}
.details_info_ceil:nth-child(2) {font-weight: 300;}
#gamelink {vertical-align: middle;display: block;margin-bottom: 6px;width: calc(100% - 2px);}
.details_info_column:nth-child(2), .details_password_image {
  background-size: cover;
  width: 250px;
  height: 188px;
}
.details_password_image, .details_game_image, .details_location_image {
  display: block;
  z-index: 5;
  background-size: cover;
}
.details_info_column:nth-child(2) {
  border-radius: 4px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;
}
.details_password_image {
  background-position: calc(100% - 3px) calc(100% - 3px);
  position: absolute;
  background-size: auto;
  background-repeat: no-repeat;
}
.details_location_image {
  width: 16px;
  height: 11px;
  position: relative;
  right: 4px;
  float: right;
  top: 4px;
}
.details_game_image {
  width: 32px;
  height: 32px;
  position: relative;
  left: 4px;
  top: 4px;
  opacity: .4;
  border-radius: 6px;
}
.details_game_image:hover {opacity: 1; transition-duration: 500ms;}
img[title='Location: XX'] {display: none;}

.table_head {font-weight: bold;}
.spacer {margin-top: 15px;}
.noinfo {margin:auto; text-align:center; background-color: rgba(26, 28, 34, 0.2); display: inline-block; padding:15px; border: 1px solid #22252f;}
#invalid_server_id, #back_to_servers_list {margin: 10px auto; text-align:center;}
div[id^="servername"] {margin:auto; text-align:center; font-weight:bold; padding-bottom: 15px; font-size: 16px; border: 1px solid #22252f; background-color: rgba(26, 28, 34, 0.2); padding: 8px; margin-top:15px; margin-bottom:15px;}
div#servername_onl {background-image: linear-gradient(to right, #ffffff00 0%, #8ee68345 50%,#ffffff00 );}
div#servername_nrs {background-image: linear-gradient(to right, #ffffff00 0%, #f1abab45 50%,#ffffff00 );}
div#servername_onp {background-image: linear-gradient(to right, #ffffff00 0%, #d8e68c45 50%,#ffffff00 );}
#gamelink {width:100%; margin:auto; background-color: rgba(26, 28, 34, 0.2); text-align: center; padding-top:4px; padding-bottom:4px;}
#details_playerlist {margin:auto; overflow:auto; text-align:center; padding:10px;}

/* list */
.contry_icon {border: 1px solid black; width: 15px; height: 15px; border-radius: 2px;}
a.details_icon {width: 15px; height: 15px; display: inline-block; background: url(../other/magnifier.svg) no-repeat top left; background-size: contain; border-radius: 2px; border: 1px solid #848484; background-color: #c4c4c4;}
a.details_icon:hover {background-color: #c0e0ec;}
/* Genel Durum Hücresi Ayarı */
.status_cell {
    vertical-align: middle !important;
    white-space: nowrap;
}

/* Ortak İkon ve Yazı Yapısı */
[class^="status_icon_"] {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sol taraftaki parlayan kare (Lamba) */
[class^="status_icon_"]::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 2px;
}

/* --- DURUMLAR VE YAZILAR --- */

/* AKTİF (Online) */
.status_icon_onl { color: #8ee683; }
.status_icon_onl::before {
    background-color: #8ee683;
    box-shadow: 0 0 8px #8ee683;
    animation: status-pulse 2s infinite;
}
.status_icon_onl::after { content: 'AKTİF'; }

/* PASİF / CEVAP YOK (Offline) */
.status_icon_nrs { color: #f1abab; }
.status_icon_nrs::before {
    background-color: #f1abab;
    box-shadow: 0 0 5px #f1abab;
}
.status_icon_nrs::after { content: 'PASİF'; }

/* ŞİFRELİ (Password) */
.status_icon_onp { color: #f1d5ab; }
.status_icon_onp::before {
    background-color: #f1d5ab;
    box-shadow: 0 0 8px #f1d5ab;
}
.status_icon_onp::after { content: 'ŞİFRELİ'; }

/* BEKLEMEDE / BELİRSİZ */
.status_icon_pen { color: #888; }
.status_icon_pen::before { background-color: #888; }
.status_icon_pen::after { content: 'YÜKLENİYOR'; }

/* Parlama Animasyonu */
@keyframes status-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- MOBİL UYUM --- */
@media screen and (max-width: 480px) {
    /* Mobilde yer darsa sadece parlayan kare kalsın, yazıyı gizleyelim */
    [class^="status_icon_"]::after {
        display: none;
    }
    [class^="status_icon_"]::before {
        margin-right: 0;
    }
}
img.game_icon {width: 16px; border-radius: 2px;}

#server_list_table {
    width: 75% !important;   /* Ekranın 3/4'ünü kaplar, daha toplu durur */
    max-width: 1100px;       /* Çok geniş ekranlarda devasa olmasını engeller */
    margin: 30px auto;       /* Üstten 30px boşluk bırakır ve merkeze hizalar */
    border-radius: 0px;      /* Keskin hatlar kuralımız sabit */
    border-collapse: separate;
    border-spacing: 0 8px;   /* Satırlar arası boşluk bir tık azaltıldı */
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
}

/* Mobilde (telefonlarda) tablonun çok daralmaması için */
@media (max-width: 768px) {
    #server_list_table {
        width: 95% !important; /* Mobilde tekrar genişler ki yazılar okunabilsin */
    }
}
/* Tablonun genel ızgara yapısı */
#server_list_table {
    border-collapse: collapse !important; /* Çizgilerin birleşmesi için */
    width: 75% !important;
    margin: 30px auto;
    background-color: #0a0c0f; /* Ana koyu zemin */
}

/* Her bir satırın altındaki ince çizgi (Border) */
#server_list_table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Striped (Zebra) Efekti: Tek sayılı satırları hafifçe aydınlatır */
#server_list_table tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Striped (Zebra) Efekti: Çift sayılı satırlar daha koyu kalsın */
#server_list_table tr:nth-child(even) {
    background-color: transparent !important;
}

/* Hücrelerin (td) içindeki boşlukları koru */
#server_list_table td {
    padding: 15px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.03); /* Çok ince dikey çizgiler */
}

/* İlk hücrenin sol çizgisini kaldır (Çirkin durmasın) */
#server_list_table td:first-child {
    border-left: none;
}

/* Hover Efekti (Zebra çizgilerinin üzerine gelince parlaması için) */
#server_list_table tr:hover {
    background-color: rgba(0, 163, 255, 0.08) !important; /* Maviye çalan bir parlama */
    transition: background 0.2s ease;
}
#server_list_table td {padding:13px;}
#server_list_table_top {display:none;}
.connectlink_cell {text-align:right;}
.servername_cell {text-align:left;}
.servername_cell > div {width:100%; overflow:hidden; height:1.3em; line-height:1.3em;}
div.servername_link {display: none;}
.map_cell {white-space:nowrap; text-align:left;}
.players_cell {white-space:nowrap; text-align:right;}
.outer_bar {
    width: 100%; 
    background-color: gray; 
    border-radius: 0px; 
    padding: 2px;
    overflow: hidden; 
}

.inner_bar {
    border-radius: 0px; 
    background-color: #51b7e6; 
    background-image: -webkit-linear-gradient(top, #51b7e6, #4dafdd);
    
    background-image: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent
    ) !important;
    background-size: 30px 30px !important;
    animation: bar-flow 1s linear infinite; /* 1 saniyede bir akan hareket */
}

.players_numeric {
    padding: 0.01em 12px;
}

@keyframes bar-flow {
    from { background-position: 0 0; }
    to { background-position: 30px 0; }
}
*[class^='players_percent'] {display:none;}
.server_nrs td.players_cell {color: black;}
.details_cell, .status_cell {white-space:nowrap; text-align:center;}
.details_cell > a {text-decoration: none;}

#pages {width: fit-content; margin: 2.6em auto; font-size: 1.12em;}
#pages a {padding: 5px; background-color: #28282869; font-size: 1.3em;}
#pages span {padding: 10px;}

#totals {width: 95%; margin:auto; margin-top: 16px; background-color: rgba(26, 28, 34, 0.2); border: 1px solid #22252f;}
#totals > div {width: calc(33vw - 30px - 3vw);  padding:15px; text-align: center; display:inline-block; vertical-align: middle;}

/* */
.inline {display:inline-block;}
.center {text-align: center;}

/* adaptiveness */
.server-scroll-wrapper {
    max-width: 200px;
    overflow-x: auto;
    white-space: nowrap;
    display: block;
    /* Mobilde parmakla kaydırmayı pürüzsüz yapar */
    -webkit-overflow-scrolling: touch; 
}

.servername_nolink, 
.servername_link,
.servername_link a {
    display: inline-block;
    white-space: nowrap;
}

/* Bilgisayarda scrollbar kalsın dersen burası dokunulmadı */
.server-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.server-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

@media(max-width: 414px) {
    .servername_cell > div, 
    .servername_link, 
    .servername_link a {
        display: block !important;
        width: 130px !important;      /* Mobilde ismin görüneceği alan */
        white-space: nowrap !important; /* Alt satıra geçmeyi engelle */
        overflow: hidden !important;    /* Taşanı gizle */
        text-overflow: ellipsis !important; /* TAŞAN YERE ÜÇ NOKTA KOY */
        font-family: 'JetBrains Mono', monospace !important;
        font-size: 13px !important;
        height: auto !important;
    }
	.servername_nolink {
		
		display:none;
		
	}

    /* Mobilde diğer hücrelerin alanını daraltıp isme yer açalım */
    #server_list_table td {
        padding: 10px 5px !important;
    }
}

/* Genel Durum Kutucuğu Tasarımı */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px; /* Senin keskin hat stilinle uyumlu */
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sol taraftaki parlayan nokta (Lamba) */
.status-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

/* AKTİF - Yeşil ve Parlayan */
.status-pill.online {
    color: #8ee683;
    background: rgba(142, 230, 131, 0.1);
}
.status-pill.online::before {
    background: #8ee683;
    box-shadow: 0 0 10px #8ee683;
    animation: status-pulse 2s infinite;
}

/* KAPALI - Kırmızı */
.status-pill.offline {
    color: #f1abab;
    background: rgba(241, 171, 171, 0.1);
}
.status-pill.offline::before {
    background: #f1abab;
    box-shadow: 0 0 8px #f1abab;
}

/* ŞİFRELİ - Sarı/Turuncu */
.status-pill.protected {
    color: #f1d5ab;
    background: rgba(241, 213, 171, 0.1);
}
.status-pill.protected::before {
    background: #f1d5ab;
    box-shadow: 0 0 10px #f1d5ab;
}

/* BAKIMDA - Gri */
.status-pill.pending {
    color: #aaa;
    background: rgba(170, 170, 170, 0.1);
}
.status-pill.pending::before {
    background: #aaa;
}

/* Canlılık katan parlama animasyonu */
@keyframes status-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobilde yazı kalabalığını önlemek için sadece lambayı bırakalım (Opsiyonel) */
@media screen and (max-width: 480px) {
    .status-pill {
        padding: 6px;
        font-size: 0; /* Yazıyı gizle */
    }
    .status-pill::before {
        margin-right: 0;
    }
}