/* --- GENEL AYARLAR --- */
body {
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: black;
    color: white;
}

.dark #logo {
    content: url("https://vmpatch.com/frontend-assets/image/vmpatch-dark-icon.png");
}

/* --- FORM VE ELEMENTLER --- */
#iso-header, #patch-header, #vib-header, #verify, .text-gray-500 {
    color: black !important;
}

textarea, #query {
    color: black !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
}

#query::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}

button {
    color: black !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
}

button:hover {
    color: black !important;
}

/* --- EFEKTLER --- */
.no-hover-effect:hover, .no-hover-effect:active,
.logo-no-effect:hover, .logo-no-effect:active {
    background: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.new-badge {
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 6px;
    font-weight: bold;
    animation: pulseBadge 1.6s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 59, 48, 0.4);
}

@keyframes pulseBadge {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- POPUP VE OVERLAY --- */
.popup {
    display: none;
    position: fixed;
    top: 10vh;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    max-width: 40%;
}

.popup textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    overflow-wrap: break-word;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
}

/* --- REKLAM ALANLARI --- */
.ad-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 1000;
}

.ad-left { left: 0; margin-left: 10px; }
.ad-right { right: 0; margin-right: 10px; }

/* --- TABLO (GÜNCELLENMİŞ VE TEMİZLENMİŞ) --- */
.table-container {
    max-width: 100%;
    overflow-x: auto;
}

table.table-responsive {
    width: max-content;
    min-width: 100%;
    margin: 16px 0 24px 0 !important;
    table-layout: auto;
    margin-left: 0 !important;
    border-collapse: collapse;
}

table.table-responsive th,
table.table-responsive td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    white-space: nowrap;
}

/* Başlık Kırma Özelliği (6, 7 ve 8. Sütunlar) */
table.table-responsive thead th:nth-child(6), table.table-responsive tbody td:nth-child(6),
table.table-responsive thead th:nth-child(7), table.table-responsive tbody td:nth-child(7),
table.table-responsive thead th:nth-child(8), table.table-responsive tbody td:nth-child(8) {
    max-width: 110px !important;    /* 140px'den 110px'e çekildi */
    min-width: 110px !important;
    white-space: normal !important;  /* Kırmayı zorunlu kılar */
    word-break: normal;              /* Kelimeyi ortadan bölmez, boşluktan böler */
    line-height: 1.1;
    word-spacing: 100vw;             /* Her boşlukta alt satıra geçmeye zorlayan hile */
}

/* SHA256 Sütunu */
table.table-responsive thead th:nth-child(9),
table.table-responsive tbody td:nth-child(9) {
    width: 84px;
    padding: 6px 8px;
    white-space: nowrap;
}

table.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    font-weight: 600;
}

table.table-responsive tbody tr:nth-child(odd) { background: #fcfcfd; }
table.table-responsive tbody tr:hover { background: #f3f4f6; }

/* --- DARK TEMA TABLO --- */
body.dark table.table-responsive,
body.dark table.table-responsive th,
body.dark table.table-responsive td {
    background: #0b1220;
    border-color: #374151;
}

body.dark table.table-responsive thead th {
    background: #111827;
}

/* --- RESPONSIVE AYARLAR --- */
.no-default { width: 25%; }

@media (max-width: 1200px) {
    .ad-container { display: none; }
    table.table-responsive { max-width: 100%; }
}

@media (min-width: 1200px) {
    body { padding-right: 50px; }
}

@media (max-width: 768px) {
    .no-default { width: 50%; }
    .table-container { width: 100%; } /* %30 olan hata düzeltildi */
    .popup { width: 90%; }
    table { font-size: 12px; }
}

@media (max-width: 480px) {
    .no-default { width: 100%; }
}