/* Dashboard Base Styles - General Layout & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: #f8fafc;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Content Loading Overlay */
.content-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(234, 85, 71, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border-radius: 0;
}

.content-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.content-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    max-width: 90%;
}

.loading-state i {
    font-size: 3.5rem;
    color: white;
    animation: spin 1.3s linear infinite;
    margin-bottom: 0.8rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-loading-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.content-loading-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .content-loading-spinner {
        padding: 1.5rem;
    }
    
    .loading-state i {
        font-size: 3rem;
    }
    
    .content-loading-text {
        font-size: 1.1rem;
    }
    
    .content-loading-subtext {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .content-loading-spinner {
        padding: 1rem;
    }
    
    .loading-state i {
        font-size: 2.5rem;
    }
    
    .content-loading-text {
        font-size: 1rem;
    }
    
    .content-loading-subtext {
        font-size: 0.8rem;
    }
}

/* For very wide screens */
@media (min-width: 1920px) {
    .content-loading-spinner {
        padding: 3rem;
    }
    
    .loading-state i {
        font-size: 4rem;
    }
    
    .content-loading-text {
        font-size: 1.4rem;
    }
    
    .content-loading-subtext {
        font-size: 1rem;
    }
}

/* Content Sections */
.content {
    padding: 2rem;
    position: relative;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Backdrop for mobile */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Placeholder Sections */
.placeholder {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
}

.placeholder-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.placeholder h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.placeholder p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #d63431;
    transform: translateY(-2px);
}

/* Large Screen Optimization (2198px - 2560px) */
@media (min-width: 2198px) and (max-width: 2560px) {
    /* Sidebar optimization */
    .sidebar {
        width: 400px;
        min-width: 400px;
    }
    
    /* Main content adjustment */
    .main-content {
        margin-left: 400px;
        padding: 0;
    }
    
    /* Header optimization */
    .header {
        height: 120px;
        padding: 0 4.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    /* Content area spacing */
    .content {
        padding: 2.5rem 3rem;
        max-width: 1800px;
        margin: 0 auto;
    }
    
    /* Dashboard layout optimization */
    .dashboard-layout {
        min-height: 100vh;
        display: flex;
    }
    
    /* Stats grid optimization */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .stat-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-title {
        font-size: 1rem;
    }
    
    /* Dashboard row optimization */
    .dashboard-row {
        gap: 3rem;
        margin-bottom: 3rem;
    }
    
    /* Quick actions and recent applications */
    .quick-actions,
    .recent-applications {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Action cards optimization */
    .action-card {
        padding: 1.5rem;
        border-radius: 16px;
        gap: 1.5rem;
    }
    
    .action-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    .action-content h3 {
        font-size: 1.2rem;
    }
    
    .action-content p {
        font-size: 1rem;
    }
    
    /* App items optimization */
    .app-item {
        padding: 1.5rem;
        border-radius: 16px;
        gap: 1.5rem;
    }
    
    .app-id {
        font-size: 1rem;
        min-width: 100px;
    }
    
    .app-details h4 {
        font-size: 1.1rem;
    }
    
    .app-date {
        font-size: 0.9rem;
    }
    
    .status-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }
} 