* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kuwait-green: #007A3D;
    --kuwait-red: #CE1126;
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #1f2937;
    --sidebar-bg: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo h1 {
    font-size: 20px;
}

.logo span {
    font-size: 12px;
    opacity: 0.7;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(5, 150, 105, 0.2);
    color: white;
    border-left: 3px solid var(--kuwait-green);
}

.main {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
}

.header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    font-size: 28px;
    margin-bottom: 4px;
}

.breadcrumb {
    color: #6b7280;
    font-size: 14px;
}

.btn-primary {
    padding: 10px 20px;
    background: var(--kuwait-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #006633;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat i {
    font-size: 32px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.stat.green i { background: linear-gradient(135deg, var(--kuwait-green), #059669); }
.stat.blue i { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.stat.orange i { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat.red i { background: linear-gradient(135deg, var(--kuwait-red), #dc2626); }

.stat h3 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat .value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat .change {
    font-size: 12px;
    color: var(--kuwait-green);
}

.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart h3 {
    margin-bottom: 24px;
    font-size: 18px;
}

.maturity-item {
    margin-bottom: 20px;
}

.maturity-item span {
    font-size: 14px;
}

.maturity-item strong {
    float: right;
    color: var(--kuwait-green);
}

.progress {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    margin-top: 8px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: linear-gradient(90deg, var(--kuwait-green), #059669);
    transition: width 1s ease;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend span {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.footer {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.footer a {
    color: var(--kuwait-green);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main {
        margin-left: 0;
    }
}
