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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .sidebar-header p {
    display: none;
}

.sidebar-menu {
    padding: 20px 0;
} */

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #3498db;
}

.menu-item i {
    font-size: 1.1rem;
    margin-right: 15px;
    min-width: 20px;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.sidebar.collapsed + .topbar {
    left: 70px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    margin-right: 20px;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

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

.notification-badge {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Main Content */
.main-content {
    margin-left: 110px;
    margin-top: -25px;
    padding: 30px;
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

.page-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.live-indicator {
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.live-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px; /* Reduced from 25px */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    height: 180px; /* Added fixed height */
}

.stat-card .icon {
    width: 40px; /* Reduced from 50px */
    height: 40px; /* Reduced from 50px */
    background:#405189;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Reduced from 20px */
    color: white;
}

.stat-card h3 {
    font-size: 0.9rem; /* Reduced from 1rem */
    color: #7f8c8d;
    margin-bottom: 10px; /* Reduced from 15px */
    font-weight: 600;
}

.stat-card .value {
    font-size: 1.8rem; /* Reduced from 2rem */
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px; /* Reduced from 10px */
}

.stat-card .change {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    padding: 3px 6px; /* Reduced from 4px 8px */
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Reduced from 5px */
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Reduced from 20px */
}
.change.positive {
    background-color: #d5f4e6;
    color: #27ae60;
}

.change.negative {
    background-color: #fdeaea;
    color: #e74c3c;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quick-action-btn {
    background:#405189;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.chart-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.chart-filter {
    background: none;
    border: 1px solid #bdc3c7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Recent Transactions */
.recent-transactions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.transaction-icon.fuel {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.transaction-icon.payment {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.transaction-details h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 2px;
}

.transaction-details p {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.transaction-amount {
    font-weight: 600;
    color: #2c3e50;
}

/* Alerts Section */
.alerts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.alert-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-card.warning {
    background: #ffffff;
    border-left-color: #f39c12;
}
.alert-card.primary {
    background: #ffffff;
    border-left-color: #0a0a09;
}

.alert-card.client {
    background: #ffffff;
    border-left-color: #6e0383;
}

.alert-card.site {
    background: #ffffff;
    border-left-color: #033369;
}

.alert-card.danger {
    background: #ffffff;
    border-left-color: #e74c3c;
}

.alert-card.success {
    background: #ffffff;
    border-left-color: #27ae60;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.alert-content p {
    font-size: 0.8rem;
    color: #666;
}

/* Bottom Charts */
.bottom-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.bottom-charts .chart-wrapper {
    height: 250px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .topbar {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}



/* .alerts-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
} */




.transaction-icon.ecocash {
    color: #3498db;
}

.transaction-icon.fuel {
    color: #f39c12;
}

.transaction-icon.card-sale {
    color: #2ecc71;
}

.transaction-icon.coupon-sale {
    color: #9b59b6;
}

.transaction-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* .alert-card {
    flex: 1 1 30%;
    border-left: 5px solid;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    background: #fff;
} */

.alert-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.alert-content h4 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
}

.alert-content h5,
.alert-content p {
    margin: 0;
    font-size: 14px;
}


