/* ========================================================
   SYSTEM: Buscar Desaparecidos - DESIGN SYSTEM (Open Design)
   STYLE: Light High-Contrast & Responsive Editorial System
   ======================================================== */

:root {
    /* Color Palette - High Contrast Warm Stone Mode */
    --bg-main: #fafaf9;
    --bg-card: #ffffff;
    --bg-input: #f5f5f4;
    --border-color: #e7e5e4;
    
    --accent-primary: #2563eb; /* WCAG Accessible Royal Blue */
    --accent-primary-glow: rgba(37, 99, 235, 0.12);
    --accent-secondary: #7c3aed; /* Violet */
    --accent-secondary-glow: rgba(124, 58, 237, 0.12);
    
    --text-primary: #1c1917; /* Stone 900 - High Contrast */
    --text-secondary: #44403c; /* Stone 700 */
    --text-muted: #78716c; /* Stone 500 */
    
    --state-missing: #dc2626; /* Red 600 */
    --state-missing-glow: rgba(220, 38, 38, 0.08);
    --state-found: #16a34a; /* Green 600 */
    --state-found-glow: rgba(22, 163, 74, 0.08);
    
    /* Layout & Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Effects - Soft Grey Shadows for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    text-decoration: underline;
}

/* Layout container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .app-container {
        padding: 32px;
        gap: 32px;
    }
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.main-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

@media (min-width: 640px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
    }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area h1 span {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 4px;
}

/* Pulse indicator next to logo */
.pulse-indicator-red {
    width: 10px;
    height: 10px;
    background-color: var(--state-missing);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.header-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 10px 0 rgba(29, 78, 216, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px 0 rgba(29, 78, 216, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--text-secondary);
}

.btn-success {
    background: var(--state-found);
    color: #fff;
    box-shadow: 0 4px 10px 0 rgba(22, 163, 74, 0.2);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px 0 rgba(22, 163, 74, 0.35);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ==========================================
   STATS CARDS SECTION
   ========================================== */

.stats-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 580px) {
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.stat-card.active-filter {
    border-color: var(--accent-primary);
    background: rgba(29, 78, 216, 0.03);
    box-shadow: 0 0 10px 0 var(--accent-primary-glow), var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.icon-reported {
    background: rgba(29, 78, 216, 0.1);
    color: var(--accent-primary);
}
.icon-missing {
    background: var(--state-missing-glow);
    color: var(--state-missing);
}
.icon-found {
    background: var(--state-found-glow);
    color: var(--state-found);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ==========================================
   SEARCH & FILTERS
   ========================================== */

.search-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-search-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

#search-input {
    width: 100%;
    padding: 16px 90px 16px 56px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

#search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px 0 var(--accent-primary-glow), var(--shadow-md);
    background-color: var(--bg-card);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 640px) {
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .filter-group .filter-tabs {
        width: 100%;
    }
    .filter-group .filter-tab {
        flex-grow: 1;
        text-align: center;
    }
}

.filters-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
}

/* ==========================================
   RESULTS GRID
   ========================================== */

.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.grid-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.results-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (min-width: 640px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 24px;
    }
}

/* Card item */
.person-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.person-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.person-card:hover .card-img-wrapper img {
    transform: scale(1.04);
}

/* Card state badges */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-missing {
    background: var(--state-missing);
    color: #fff;
}

.badge-found {
    background: var(--state-found);
    color: #fff;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.card-title h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-alias {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -8px;
    font-style: italic;
}

.card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-meta-item i {
    width: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================
   LOADING OVERLAY & SPINNING
   ========================================== */

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-input);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.no-results i {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ==========================================
   PAGINATION AREA
   ========================================== */

.pagination-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding: 16px 0;
}

.page-indicator {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   MODALS LAYOUT
   ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-card > form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

@media (max-width: 640px) {
    .modal-card {
        width: calc(100% - 24px);
        max-height: 95vh;
        border-radius: var(--border-radius-md);
    }
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
}
.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */

.form-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 12px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(29, 78, 216, 0.15);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1 !important;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 8px var(--accent-primary-glow);
}

.input-inline {
    display: flex;
    gap: 12px;
}

.input-inline input {
    flex-grow: 1;
}

/* ==========================================
   DETAIL MODAL LAYOUT
   ========================================== */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 680px) {
    .detail-layout {
        grid-template-columns: 260px 1fr;
        gap: 24px;
    }
}

.detail-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--border-color);
    background: #e2e8f0;
}

@media (min-width: 680px) {
    .detail-image-wrapper {
        height: 360px;
    }
}

.detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-description h4, 
.detail-reporter-box h4,
.detail-found-box h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.detail-description p {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.02);
    padding: 12px;
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 4px 4px 0;
}

.detail-reporter-box, 
.detail-found-box {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.detail-reporter-box p, 
.detail-found-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.detail-reporter-box p:last-of-type,
.detail-found-box p:last-of-type {
    margin-bottom: 0;
}

.detail-source-box {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-found-box {
    border-left: 3px solid var(--state-found);
}

/* ==========================================
   SCRAPER PROGRESS & CONSOLE LOG
   ========================================== */

.scrape-intro-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.scrape-progress-container {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar-wrapper {
    height: 10px;
    background: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.scrape-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 8px 0;
}

.counter-mini {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
}

.counter-mini .c-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.counter-mini .c-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.text-violet { color: var(--accent-primary); }
.text-green { color: var(--state-found); }

.scrape-console-log {
    background: #0f172a; /* Console stays dark for readability */
    border: 1px solid #1e293b;
    border-radius: var(--border-radius-sm);
    height: 160px;
    padding: 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    overflow-y: auto;
    color: #4ade80;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}

.log-error {
    color: #f43f5e;
}

.log-info {
    color: #38bdf8;
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-muted);
}

.main-footer a {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================
   PHOTO SEARCH & COMPATIBILITY STYLES
   ========================================== */

.search-actions-inside {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-search-trigger-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-search-trigger-btn:hover {
    color: var(--accent-primary);
    background: var(--accent-primary-glow);
}

.photo-search-active #search-input {
    background-color: var(--bg-input);
    border-color: var(--accent-primary);
    cursor: not-allowed;
}

.badge-similarity {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Upload Drop Zone */
.upload-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-drop-zone:hover, 
.upload-drop-zone.dragover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-glow);
}

.upload-drop-zone i {
    font-size: 40px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.upload-drop-zone:hover i, 
.upload-drop-zone.dragover i {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

.upload-drop-zone p {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-drop-zone span {
    font-size: 11px;
    color: var(--text-muted);
}

.upload-preview-wrapper {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-preview {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Photo Search Banner */
.photo-search-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--accent-primary-glow) 0%, var(--accent-secondary-glow) 100%);
    border: 1px solid var(--accent-primary);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}

.photo-search-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.photo-search-banner-text i {
    font-size: 18px;
    color: var(--accent-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Make sure image silhouettes are clear */
.avatar-placeholder {
    padding: 0;
    background: transparent;
}

