.sidebar {
    width: 280px;
    min-height: 100vh;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background-color: #ffffff;
}

.nav-item {
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-item:hover {
    background-color: #e9ecef;
}

.nav-item.active {
    background-color: #e9ecef;
    font-weight: 600;
    color: #212529 !important;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0.75rem 0.5rem 0.75rem;
}

.metric-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    height: 100%;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.metric-title {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.trend-badge {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: #198754;
}

.trend-down {
    color: #dc3545;
}

.chart-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.period-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.period-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.period-btn.active {
    background-color: #495057;
    color: white;
}

.period-btn:not(.active) {
    color: #6c757d;
}

.period-btn:not(.active):hover {
    background-color: #e9ecef;
}

.quick-create-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.quick-create-btn:hover {
    background-color: #0b5ed7;
    color: white;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6c757d;
    margin-right: 0.75rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
}

.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(45deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    clip-path: polygon(0% 100%, 5% 85%, 15% 70%, 25% 60%, 35% 45%, 45% 55%, 55% 40%, 65% 50%, 75% 35%, 85% 45%, 95% 30%, 100% 35%, 100% 100%);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: white;
        border-bottom: 1px solid #e9ecef;
    }

    .sidebar-toggle {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}