/* ==========================================
   EXIF METADATA VIEWER & REMOVER
========================================== */

.exif-tool-page .tool-page-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.exif-tool-page .tool-page-description {
    font-size: 1.075rem;
    color: var(--gray-color, #6b7280);
    max-width: 760px;
    margin: 0 auto;
}

/* ---------- Preview ---------- */
.ex-preview {
    background: #f1f3f5;
    background-image:
        linear-gradient(45deg, #e9ecef 25%, transparent 25%),
        linear-gradient(-45deg, #e9ecef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e9ecef 75%),
        linear-gradient(-45deg, transparent 75%, #e9ecef 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.ex-preview img {
    max-height: 260px;
    max-width: 100%;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ---------- File facts table ---------- */
.ex-facts th {
    width: 38%;
    font-weight: 600;
    color: var(--gray-color, #6b7280);
    font-size: 0.85rem;
    border-bottom-color: #f1f3f5;
}

.ex-facts td {
    font-size: 0.85rem;
    word-break: break-word;
    border-bottom-color: #f1f3f5;
}

/* ---------- Metadata table ---------- */
.ex-meta-table {
    font-size: 0.9rem;
}

.ex-meta-table td {
    vertical-align: middle;
    word-break: break-word;
}

.ex-meta-table tbody tr.table-light td {
    letter-spacing: 0.06em;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

#exTableWrap {
    max-height: 520px;
    overflow-y: auto;
}

/* ---------- GPS card ---------- */
#exGpsCard.border-danger {
    border: 2px solid var(--bs-danger, #dc3545) !important;
}

#exGpsBody .font-monospace {
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* ---------- Clean card ---------- */
.ex-clean-card {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.06), rgba(37, 99, 235, 0.06));
    border: 1px solid rgba(25, 135, 84, 0.2) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .exif-tool-page .tool-page-title {
        font-size: 1.75rem;
    }

    .ex-preview img {
        max-height: 200px;
    }

    #exTableWrap {
        max-height: none;
    }
}
