/* Import Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --primary-color: #ff4081;
    --secondary-color: #7c4dff;
    --success-color: #00c853;
    --warning-color: #ffa726;
    --info-color: #29b6f6;
}

/* Global Styles */
html {
    font-size: 16px;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.brand-logo {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-logo h4 {
    font-size: 1.25rem;
}

.sidebar .nav-link {
    color: #64748b;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(255, 64, 129, 0.05);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 64, 129, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.navbar .btn-light {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: none;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-small {
    width: 5rem;
    height: 2.5rem;
}

.donut-chart-container {
    position: relative;
    height: 15rem;
    margin: 0 auto;
}

/* Stats Cards */
.card.bg-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff6b9b) !important;
}

.card.bg-info {
    background: linear-gradient(45deg, var(--info-color), #4fc3f7) !important;
}

.card.bg-success {
    background: linear-gradient(45deg, var(--success-color), #69f0ae) !important;
}

.card.bg-warning {
    background: linear-gradient(45deg, var(--warning-color), #ffcc80) !important;
}

.card.bg-danger {
    background: linear-gradient(45deg, #f44336, #ff7961) !important;
}

/* Stats Card Content */
.card h2 {
    font-size: 1.75rem;
}

.card h5 {
    font-size: 1.1rem;
}

.card p {
    font-size: 0.9rem;
}

/* Table Styles */
.table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table th {
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0.75rem;
}

.table td {
    color: #475569;
    padding: 1rem 0.75rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.badge {
    padding: 0.5em 1em;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e91e63;
    border-color: #e91e63;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* Distribution Legend */
.distribution-legend h6 {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.distribution-legend p {
    color: #64748b;
    font-size: 0.8rem;
}

/* Category Dots */
.category-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}

/* Settings Styles */
.nav-pills .nav-link {
    color: #64748b;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 64, 129, 0.05);
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.form-label {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 64, 129, 0.25);
}

/* Responsive Design */
@media (max-width: 1400px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
    }

    html {
        font-size: 14px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .chart-container {
        height: 250px;
    }

    .donut-chart-container {
        height: 12rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .card-body {
        padding: 1rem;
    }

    .row.g-4 {
        --bs-gutter-x: 0.75rem;
    }

    .chart-container {
        height: 200px;
    }

    .table {
        font-size: 0.85rem;
    }

    .avatar {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }

    .chart-container {
        height: 180px;
    }

    .donut-chart-container {
        height: 10rem;
    }

    .table-responsive {
        margin: 0 -1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 