/* ================================================================
# DACOG Search Engine – System Architecture
# File: ad-dashboard.css
# Path: /static/css/ad-dashboard.css
# Version: 3.0.0
# Description: Mathematical-Unit Ad Dashboard (Light/Hero Theme)
# ================================================================*/

/* 1. Base Wrapper */
.ad-dash-wrapper {
    padding-top: 2.5rem; /* 40px */
    padding-bottom: 3.125rem; /* 50px */
    min-height: 100vh;
}

/* 2. Theme-Aware Data Cards */
.ad-card {
    background-color: var(--dacog-bg-nav);
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    -webkit-box-shadow: var(--dacog-shadow-sm);
    -moz-box-shadow: var(--dacog-shadow-sm);
    box-shadow: var(--dacog-shadow-sm);
    -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.ad-card:hover {
    -webkit-transform: translateY(-0.125rem);
    -moz-transform: translateY(-0.125rem);
    -ms-transform: translateY(-0.125rem);
    -o-transform: translateY(-0.125rem);
    transform: translateY(-0.125rem);
    -webkit-box-shadow: var(--dacog-shadow-dropdown);
    -moz-box-shadow: var(--dacog-shadow-dropdown);
    box-shadow: var(--dacog-shadow-dropdown);
}

.ad-card-header {
    background-color: var(--dacog-bg-nav);
    border-bottom: 0.0625rem solid var(--dacog-border-color);
    padding: 1.5rem;
    -webkit-border-radius: 1rem 1rem 0 0;
    -moz-border-radius: 1rem 1rem 0 0;
    border-radius: 1rem 1rem 0 0;
    color: var(--dacog-text-main);
}

/* 3. Status Badges (Theme Contextual) */
.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--dacog-accent-green);
    border: 0.0625rem solid rgba(25, 135, 84, 0.2);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--dacog-accent-warning, #d39e00);
    border: 0.0625rem solid rgba(255, 193, 7, 0.2);
}

.bg-secondary-soft {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--dacog-text-muted);
    border: 0.0625rem solid rgba(108, 117, 125, 0.2);
}

/* Fix text contrast for dark mode on standard status badges */
.theme-hero .bg-warning-soft { color: #ffc107; }
.theme-hero .bg-success-soft { color: #81c995; }

/* 4. Table Resets for Dual Theme */
.theme-hero .table { color: var(--dacog-text-main); }
.theme-hero .table-hover tbody tr:hover { background-color: rgba(255,255,255,0.05); color: var(--dacog-text-main); }
.theme-hero .table-light { background-color: var(--dacog-border-color); color: var(--dacog-text-muted); }
.theme-hero .table > :not(caption) > * > * { border-bottom-color: var(--dacog-border-color); }
.theme-hero .table .text-dark { color: #ffffff !important; }

/* ==========================================================================
   5. MEDIA QUERIES (AFRICAN TARGET OPTIMIZATION)
   ========================================================================== */

@media screen and (max-width: 62em) { /* 992px */
    .ad-dash-header-block {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
}

@media screen and (max-width: 30em) { /* 480px */
    .ad-dash-wrapper {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .ad-card {
        padding: 0; /* Let inner containers handle padding on mobile */
    }
    
    .ad-card .card-body {
        padding: 1.25rem !important;
    }
    
    .ad-card-header {
        padding: 1.25rem;
    }
    
    .table-responsive {
        border: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
    }
    
    .table thead th {
        font-size: 0.65rem; /* Shrink headers slightly to fit screen */
        padding: 0.75rem 0.5rem !important;
    }
    
    .table tbody td {
        font-size: 0.85rem;
        padding: 1rem 0.5rem !important;
    }
}
