/* Main Stylesheet */
@import 'assets/css/variables.css';
@import 'assets/css/components.css';

/* Layout Structure */
body {
    background-color: var(--bg-body);
    overflow-x: hidden;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    margin-right: var(--sidebar-width);
    /* Push content for fixed sidebar (RTL) */
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-right var(--transition-speed) ease;
    margin-top: 0;
}

[dir="ltr"] .main-content {
    margin-right: 0;
    margin-left: var(--sidebar-width);
}

/* Footer Styles */
.main-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Dashboard Specifics */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.1);
    /* Default light bg */
    color: var(--primary-color);
}

.stat-card.primary .stat-card-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stat-card.success .stat-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card.warning .stat-card-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card.danger .stat-card-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 5px 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Recent Activity Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content {
        margin-right: 0;
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}