
/* 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;
}

/* Modern Transactions Section */
.modern-transactions-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #405189 0%, #2d3a5f 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(64, 81, 137, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.view-all-btn {
    background: linear-gradient(135deg, #405189 0%, #2d3a5f 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 81, 137, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 81, 137, 0.4);
    color: white;
}

/* Transactions List - Row Layout */
.transactions-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #405189 0%, #2d3a5f 100%);
    border-radius: 10px;
}

/* Transaction Row */
.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.transaction-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #405189 0%, #2d3a5f 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.transaction-row:hover::before {
    transform: scaleY(1);
}

.transaction-row:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #405189;
    background: linear-gradient(to right, #ffffff 0%, #f9fafb 100%);
}

/* Left Side - Icon and Details */
.transaction-row-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.transaction-row:hover .status-icon {
    transform: rotate(10deg) scale(1.05);
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.transaction-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.transaction-type {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.transaction-type.debit {
    background: #e5e7eb;
    color: #374151;
}

.transaction-type.credit {
    background: #d1fae5;
    color: #059669;
}

.meta-separator {
    color: #ddd;
    font-weight: 300;
}

.transaction-category {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.transaction-station {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transaction-station i {
    font-size: 0.75rem;
}

.transaction-date {
    font-size: 0.8rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transaction-date i {
    font-size: 0.75rem;
}

/* Right Side - Status, Amount, Arrow */
.transaction-row-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.transaction-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-amount {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 700;
}

.transaction-amount.debit {
    color: #2c3e50;
}

.transaction-amount.credit {
    color: #10b981;
}

.amount-number {
    font-size: 1.3rem;
}

.amount-currency {
    font-size: 0.9rem;
    font-weight: 600;
}

.view-details-arrow {
    color: #95a5a6;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.transaction-row:hover .view-details-arrow {
    color: #405189;
    transform: translateX(5px);
}

.no-transactions {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-transactions i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-transactions p {
    font-size: 1.1rem;
    margin: 0;
}

/* Transaction Modal Styles */
.detail-row {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Animation for modal */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.show .modal-dialog {
    animation: slideInUp 0.3s ease-out;
}

/* Modern Select Dropdown */
.modern-select-wrapper {
    position: relative;
    display: inline-block;
}

.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecf5 100%);
    color: #405189;
    border: 1px solid #d1d5e0;
    padding: 8px 35px 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
    min-width: 150px;
}

.modern-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #405189;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f8 100%);
}

.modern-select:focus {
    box-shadow: 0 0 0 3px rgba(64, 81, 137, 0.15);
    border-color: #405189;
}

.modern-select option {
    background: white;
    color: #2c3e50;
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #405189;
    font-size: 0.75rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.modern-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Responsive Design for Transactions */
@media (max-width: 768px) {
    .modern-transactions-section {
        padding: 20px;
    }

    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .transaction-row {
        padding: 15px;
    }

    .transaction-row-right {
        gap: 12px;
    }

    .status-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .amount-number {
        font-size: 1.2rem;
    }

    .transaction-status-badge {
        display: none;
    }
}

@media (max-width: 600px) {
    .transaction-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .transaction-row-left {
        width: 100%;
    }

    .transaction-row-right {
        width: 100%;
        justify-content: space-between;
    }

    .transaction-meta-info {
        font-size: 0.8rem;
    }

    .transaction-category,
    .transaction-station {
        display: none;
    }
}

@media (max-width: 480px) {
    .status-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .transaction-name {
        font-size: 0.9rem;
    }

    .amount-number {
        font-size: 1.1rem;
    }

    .modern-select {
        font-size: 0.75rem;
        padding: 6px 30px 6px 12px;
        min-width: 130px;
    }

    .select-arrow {
        right: 10px;
        font-size: 0.65rem;
    }
}


