@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    font-size: 14px;
    color: #334155;
}

/* Bootstrap Button Overrides */
.btn-primary {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.btn-primary:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.btn-outline-primary {
    color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
}

.btn-outline-primary:hover {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: white !important;
}

.badge.bg-primary {
    background: #0ea5e9 !important;
}

.text-primary {
    color: #0ea5e9 !important;
}

/* Top Bar */
.topbar {
    background: #1e293b;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.brand-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: white;
}

.topbar-link i {
    font-size: 14px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid #334155;
}

.topbar-user span {
    color: #cbd5e1;
    font-size: 13px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    width: 240px;
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0 8px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s;
}

.sidebar-menu a:hover {
    background: #f8fafc;
    color: #334155;
}

.sidebar-menu a.active {
    background: #e0f2fe;
    color: #0ea5e9;
    font-weight: 500;
}

.sidebar-menu a i {
    width: 18px;
    font-size: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    margin-top: 56px;
    padding: 24px;
    min-height: calc(100vh - 56px);
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.section-link:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
}

.card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.stat-card.blue { border-left-color: #0ea5e9; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.yellow { border-left-color: #f59e0b; }
.stat-card.red { border-left-color: #ef4444; }

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.chart-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.chart-filter {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    background: white;
    font-family: 'Montserrat', sans-serif;
}

.chart-placeholder {
    height: 280px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Activity Stream */
.activity-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 13px;
    color: #0ea5e9;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Tables */
.table {
    font-family: 'Montserrat', sans-serif;
}

.table thead th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

/* Forms */
.form-label {
    font-weight: 500;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.form-control, .form-select {
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Buttons */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 4px 10px;
    font-size: 11px;
}

/* Alerts */
.alert {
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    border: none;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar-user span {
        display: none;
    }
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
background-color:#0ea5e9 !important;

}
.nav-link.active{
color:#fff !important
}
.nav-link{
color:#0ea5e9 !important;
}