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

/* 1. Base Dashboard Containers */
.dashboard-wrapper {
    padding: 3.125rem 0; /* 50px */
}

/* 2. Theme Aware Cards */
.dacog-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);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dacog-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);
}

/* 3. Hero/Premium Gradient Card (Account Security) */
.dacog-card-premium {
    background: linear-gradient(135deg, var(--dacog-bg-topbar) 0%, #000000 100%);
    border: none;
    color: #ffffff; /* Always force white text on premium gradient */
}

.dacog-card-premium h5, 
.dacog-card-premium p, 
.dacog-card-premium span {
    color: #ffffff !important;
}

.dacog-card-premium .border-secondary {
    border-color: rgba(255,255,255,0.2) !important;
}

/* 4. Icon Wrappers */
.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    font-size: 1.5rem;
}

.icon-wrapper.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--dacog-accent-primary);
}

.icon-wrapper.bg-dark-soft {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--dacog-text-main);
}

/* 5. List Groups & Interactions */
.dacog-list-group {
    background-color: transparent;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    border-radius: 1rem;
    border: 0.0625rem solid var(--dacog-border-color);
    overflow: hidden;
}

.dacog-list-item {
    background-color: var(--dacog-bg-nav);
    color: var(--dacog-text-main);
    border-bottom: 0.0625rem solid var(--dacog-border-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    -webkit-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

.dacog-list-item:last-child {
    border-bottom: none;
}

.dacog-list-item:hover {
    background-color: var(--dacog-bg-base);
}

.dacog-list-item h6 {
    color: var(--dacog-text-main);
}

/* 6. Widget Containers */
.widget-container {
    background-color: var(--dacog-bg-nav);
    border: 0.0625rem solid var(--dacog-border-color);
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    border-radius: 0.5rem;
}

.widget-header, .widget-footer {
    background-color: var(--dacog-bg-base);
    border-color: var(--dacog-border-color);
    padding: 0.75rem 1rem;
}

/* 7. Typography Adjustments */
.text-decoration-none.hover-primary:hover {
    text-decoration: underline !important;
}

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

/* Mobile Portrait (Max 480px / 30em) */
@media screen and (max-width: 30em) {
    .dashboard-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header-block {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .dashboard-header-block .d-flex.gap-2 {
        width: 100%;
    }
    
    .dashboard-header-block .btn-dacog {
        flex: 1; /* Stretch buttons full width */
        justify-content: center;
    }
    
    .dacog-card {
        padding: 1.25rem;
    }
    
    .icon-wrapper {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
}

/* Mobile Landscape (Max Height 480px / 30em) */
@media screen and (max-height: 30em) and (orientation: landscape) {
    .dashboard-wrapper {
        padding: 1rem;
    }
    
    .dacog-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .dacog-card > div:first-child {
        margin-bottom: 0 !important;
    }
    
    .dacog-card .mt-auto {
        margin-top: 0 !important;
        margin-left: auto;
        padding-top: 0 !important;
    }
}