* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0c4b33;
    --secondary: #6db33f;
    --accent: #f9ca24;
    --light: #f5f7fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    background: #f5f5f5 !important; /* Subtle light gray background */
    color: #0c4b33; /* Dark green text */
    padding: 20px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.logo {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Chat Widget Styles */
body .chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 360px !important;
    height: 500px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 1000 !important;
    transition: transform 0.3s ease !important;
}

body .chat-widget.hidden {
    transform: translateY(20px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Responsive Design for Chat Widget */
@media (max-width: 768px) {
    body .chat-widget {
        width: 300px !important;
        height: 400px !important;
    }
}

body .chat-header {
    padding: 15px 20px !important;
    background: var(--primary) !important;
    color: white !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

body .chat-header h2 {
    font-weight: 600 !important;
    font-size: 18px !important;
}

body .minimize-btn {
    background: none !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

body .chat-tabs {
    display: flex !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: #f5f5f5 !important;
}

body .tab {
    flex: 1 !important;
    text-align: center !important;
    padding: 12px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    color: #65676b !important;
    transition: all 0.3s !important;
    border-bottom: 3px solid transparent !important;
}

body .tab.active {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
    background: white !important;
}

body .ai-tab {
    color: var(--secondary) !important;
}

body .ai-tab.active {
    color: var(--secondary) !important;
    border-bottom: 3px solid var(--secondary) !important;
}

body .chat-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body .tab-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    display: none !important;
}

body .tab-content.active {
    display: flex !important;
    flex-direction: column !important;
}

body .no-chat {
    text-align: center !important;
    color: #65676b !important;
    margin: auto !important;
    padding: 20px !important;
}

body .no-chat i {
    font-size: 50px !important;
    margin-bottom: 15px !important;
    color: #bec3c9 !important;
}

body .no-chat h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: #050505 !important;
}

body .no-chat p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

body .ai-welcome {
    background: #f0f7ff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
}

body .ai-welcome h4 {
    color: var(--primary) !important;
    margin-bottom: 10px !important;
}

body .ai-capabilities {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

body .capability {
    background: #e8f4ff !important;
    padding: 8px 12px !important;
    border-radius: 18px !important;
    font-size: 13px !important;
    color: var(--primary) !important;
}

body .chat-input {
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    align-items: center !important;
}

body .chat-input input {
    flex: 1 !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 14px !important;
}

body .chat-input button {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin-left: 10px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

body .chat-input button:hover {
    background: #0a3a26 !important;
}

body .chat-closed {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    font-size: 24px !important;
    border: 2px solid white !important;
}

body .chat-closed i {
    font-size: 24px !important;
}

body .hidden {
    display: none !important;
}

/* Message styles for AI chat */
body .message-container {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 15px !important;
}

body .message-sender {
    font-size: 12px !important;
    margin-bottom: 5px !important;
    color: #65676b !important;
}

body .message {
    max-width: 80% !important;
    padding: 10px 15px !important;
    border-radius: 18px !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0c4b33; /* Dark green text for nav items */
}

.nav-item:hover {
    background: #e9ecef; /* Light gray background on hover */
    color: #0c4b33; /* Dark green text */
    border-left: 4px solid #6db33f; /* Light green border */
}

.nav-item.active {
    background: #e9ecef; /* Light gray background for active items */
    color: #0c4b33; /* Dark green text */
    border-left: 4px solid #0c4b33; /* Dark green border */
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.welcome-message h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

.welcome-message p {
    color: var(--gray);
    font-size: 0.9rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f0f7f0 0%, #e4efe9 100%);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

.module-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.module-title {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 968px) {
    .module-content {
        grid-template-columns: 1fr;
    }
}

.module-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.module-sections-grid .module-section {
    margin-bottom: 0;
    min-width: 300px;
}

/* Additional responsive handling for admin dashboard */
@media (max-width: 1200px) {
    .module-sections-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .module-sections-grid {
        grid-template-columns: 1fr;
    }
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-action-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
    background: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.action-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Improved responsive grid for module sections */
@media (max-width: 1200px) {
    .module-sections-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .module-sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .module-content {
        grid-template-columns: 1fr;
    }
}

/* Fix for overlapping elements in module sections */
.module-section {
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing within module content */
.module-content {
    margin-bottom: 20px;
}

.module-content:last-child {
    margin-bottom: 0;
}

/* Fix for table containers to prevent overflow */
.table-container {
    overflow-x: auto;
    margin: 15px 0;
    max-width: 100%;
}

/* Improve data table responsiveness */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    table-layout: auto;
    min-width: 600px; /* Ensure table doesn't get too compressed */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--primary);
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Fix for user info alignment */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.user-avatar.small {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

.user-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-id {
    font-size: 0.8rem;
    color: var(--gray);
    white-space: nowrap;
}

/* Fix for stat cards to prevent overlap */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
}

.stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f0f7f0 0%, #e4efe9 100%);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Fix for quick actions grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
}

.quick-action-card {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
    background: white;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.action-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.action-content p {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.4;
    flex-grow: 1;
}

/* Fix for badges to prevent overflow */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--primary);
}

.data-table tr:hover {
    background: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar.small {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

.user-name {
    font-weight: 600;
    color: black;
}

.user-id {
    font-size: 0.8rem;
    color: var(--gray);
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.text-muted {
    color: var(--gray) !important;
}

/* Transaction Navigation Tabs */
.transaction-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.transaction-nav-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-nav-btn.active {
    background: #6db33f;
    color: white;
}

.transaction-nav-btn:hover:not(.active) {
    background: #e9ecef;
}

/* Module Actions - existing class but adding more specific styles */
.module-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.module-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.card-header h3 {
    color: var(--primary);
}

.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: linear-gradient(135deg, #0a3a26 0%, #5a9c2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0a3a26 0%, #5a9c2f 100%);
}

.mt-2 {
    margin-top: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.activity-list {
    list-style: none;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.activity-content {
    flex-grow: 1;
}

.activity-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.activity-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

.activity-amount {
    font-weight: 600;
    color: var(--primary);
}

.positive {
    color: var(--secondary);
}

.negative {
    color: #e74c3c;
}

/* Base template inline styles */
.logo a {
    display: block;
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
}

/* Active navigation item styling - light green background, dark green icon and text */
.nav-item.active {
    background-color: #6db33f !important; /* light green background */
}

.nav-item.active i,
.nav-item.active a,
.nav-item.active a span {
    color: #0c4b33 !important; /* dark green for icon and text */
}

.tab-container {
    margin: 20px 0;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab.active {
    border-bottom: 3px solid var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.task-list {
    list-style: none;
}

.task-item {
    padding: 15px;
    border-radius: 8px;
    background: var(--light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox.checked {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.task-content {
    flex-grow: 1;
}

.task-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.task-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

.task-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Mobile styles with original approach - hiding sidebar on mobile */
@media (max-width: 768px) {
    body {
        font-size: 1.05rem;
        -webkit-text-size-adjust: 100%;
    }
    
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        display: block;
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .module-sections-grid {
        grid-template-columns: 1fr;
    }
    
    .module-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .user-profile {
        justify-content: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .module-section {
        padding: 20px;
    }
    
    .module-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin: 0 auto 10px;
    }
    
    /* Additional responsive improvements for admin dashboard */
    @media (max-width: 480px) {
        .main-content {
            padding: 15px;
        }
        
        .stats-cards {
            gap: 15px;
        }
        
        .stat-card {
            padding: 15px;
        }
        
        .module-section {
            padding: 15px;
        }
        
        .quick-actions-grid {
            gap: 15px;
        }
        
        .quick-action-card {
            padding: 15px;
        }
        
        .action-icon {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        
        .data-table th,
        .data-table td {
            padding: 8px 10px;
            font-size: 0.9rem;
        }
        
        .user-info {
            flex-direction: column;
            text-align: center;
            gap: 5px;
        }
        
        .user-avatar.small {
            margin: 0 auto;
    }
    
    .btn {
        padding: 14px 24px;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .nav-item {
        padding: 18px 20px;
        font-size: 1.1rem;
    }
    
    .nav-item i {
        font-size: 1.3rem;
    }
    
    .quick-action-card,
    .stat-card.clickable {
        min-height: 44px;
    }
}
}

/* Additional styles for the new savings section */
.savings-breakdown {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 15px 0;
}

.savings-item {
    text-align: center;
    flex: 1;
    padding: 10px;
}

.savings-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.savings-label {
    font-size: 0.8rem;
    color: var(--gray);
    display: block;
}

.coverage-meter {
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.coverage-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 10px;
    width: 90%;
    transition: width 2s ease;
}

.coverage-text {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin: 10px 0;
}

/* Anchor link styles for admin dashboard sections */
.module-section:target {
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px rgba(109, 179, 63, 0.3);
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: rgba(109, 179, 63, 0.1); }
    50% { background-color: rgba(109, 179, 63, 0.2); }
    100% { background-color: white; }
}

/* Additional highlight effect for JavaScript */
.target-highlight {
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px rgba(109, 179, 63, 0.3);
    animation: highlight 2s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Fix for anchor links to account for fixed header */
.module-section {
    scroll-margin-top: 80px;
}

/* AI Assist Button Styles */
.ai-assist-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    /* Ensure it's visible above other elements */
    z-index: 9999;
}

.ai-assist-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(109, 179, 63, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(109, 179, 63, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(109, 179, 63, 0);
    }
}

.ai-assist-chat {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-assist-chat.active {
    display: flex;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 10px;
    line-height: 1.4;
}

.ai-message {
    background: var(--light);
    align-self: flex-start;
}

.user-message {
    background: var(--secondary);
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.send-button {
    background: var(--secondary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Family Travel Calculator Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.travel-calculator {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-title {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
}

.calculator-form {
    flex: 1;
    min-width: 350px;
    padding: 25px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.calculator-results {
    flex: 1;
    min-width: 350px;
    padding: 25px;
    background: white;
}

.calculator-form h3, .calculator-results h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.calculator-form h4 {
    margin: 20px 0 15px;
    color: #2c3e50;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.transport-fields {
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s;
}

.btn:hover {
    background: linear-gradient(135deg, #0a3a26 0%, #5a9c2f 100%);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    margin-top: 20px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #0a3a26 0%, #5a9c2f 100%);
}

.added-expenses-section {
    margin: 25px 0;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
}

.expense-desc {
    flex: 2;
    font-weight: 500;
}

.expense-cost {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: #27ae60;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin-left: 10px;
}

.expense-summary, .savings-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.summary-row, .breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.breakdown-item.total {
    border-top: 2px solid #2c3e50;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 15px;
}

.breakdown-item.percentage {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

.savings-info {
    background: #e8f4fc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.savings-info p {
    margin-bottom: 15px;
}

.contact-form {
    margin-top: 20px;
}

.no-expenses {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

small {
    color: #6c757d;
    font-size: 0.85rem;
}

.purpose-totals {
    margin-top: 20px;
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
}

.purpose-total-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ced4da;
}

.purpose-total-item:last-child {
    border-bottom: none;
}

.person-type {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.person-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.person-option.active {
    border-color: #3498db;
    background-color: #e8f4fc;
    font-weight: 600;
}

.person-option i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

/* Filter section for product listings */
.filter-section {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-row .form-group {
    flex: 1;
    min-width: 200px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.results-count {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Product grid for listings */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    align-self: flex-start;
}

.product-info {
    flex-grow: 1;
}

.product-title {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.product-business {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gray);
}

.product-business i {
    width: 12px;
}

.product-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Business store header */
.business-store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.business-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.business-description {
    color: var(--gray);
    margin-bottom: 15px;
}

.business-contact {
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary);
    min-width: 15px;
}

.business-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Form enhancements */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(109, 179, 63, 0.2);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Product detail page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.product-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    border: 2px dashed #ddd;
}

.product-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-info-section {
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.product-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-business {
    margin-bottom: 15px;
    font-size: 1rem;
}

.product-business a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.product-business a:hover {
    text-decoration: underline;
}

.product-price h3 {
    margin-bottom: 20px;
}

.product-availability {
    margin-bottom: 20px;
}

.product-availability h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.product-description {
    margin-bottom: 20px;
}

.product-description h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.product-actions {
    margin-top: auto;
}

/* Business profile grid */
.business-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.business-info,
.business-contact {
    padding: 15px 0;
}

.business-info h3,
.business-contact h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.business-stats {
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: var(--dark);
}

.stat-value {
    font-weight: 500;
}

.contact-list {
    margin-top: 10px;
}

.contact-list .contact-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.contact-list .contact-item:last-child {
    border-bottom: none;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Additional table styles */
.table-actions {
    display: flex;
    gap: 5px;
}

.pagination-nav {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    display: inline-flex;
    justify-content: center;
    margin: 0;
}

/* Floating action button */
.floating-action-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Avatar image */
.avatar-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* Product info grid */
.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 600;
    color: var(--dark);
}

.info-value {
    font-weight: 500;
}

/* Card actions grid */
.card-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    display: block;
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
    background: white;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-content {
    flex-grow: 1;
}

.action-content h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.action-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Additional classes for business components */
.text-muted {
    color: var(--gray) !important;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Results count */
.results-count {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Product card specific styles */
.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Module card hover effect */
.module-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .business-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .business-store-header {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        flex-direction: column;
    }
    
    .calculator-form {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .person-type {
        flex-direction: column;
    }
    
    header {
        padding: 10px 0;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        padding: 15px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* Highlight Box for Knowledge Section */
.highlight-box {
    background: #e4efe9;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.highlight-icon {
    width: 30px;
    height: 30px;
    background: #0c4b33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-text {
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.skill-item {
    padding: 8px;
    background: #f0f7f0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
}

/* Generic highlight box - used in various sections */
.generic-highlight-box {
    background: #e4efe9;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.generic-highlight-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.generic-highlight-icon {
    width: 30px;
    height: 30px;
    background: #0c4b33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generic-highlight-text {
    font-size: 0.9rem;
}

/* Generic skills grid - used in various sections */
.generic-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.generic-skill-item {
    padding: 8px;
    background: #f0f7f0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8rem;
}

/* Stats grid - used in various sections */
.generic-highlight-text-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0c4b33;
}

.generic-highlight-text-medium {
    font-weight: 600;
}

.generic-highlight-text-small {
    font-size: 0.9rem;
    margin: 0;
    color: #2c3e50;
}

/* Chart grid for investment analytics */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    width: 100%;
}

.chart-grid .module-card {
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-grid .chart-container {
    flex-grow: 1;
    height: 300px !important;  /* Override any inline styles */
}

@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-grid .module-card {
        max-height: 500px;
    }
    
    .chart-grid .chart-container {
        height: 350px !important;
    }
}

/* Icon backgrounds for dark green and light green */
.icon-bg-dark-green {
    background-color: #0c4b33 !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.icon-bg-light-green {
    background-color: #6db33f !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Apply icon backgrounds to buttons */
.btn-dark-green i,
.btn-outline-dark-green i {
    background-color: #0c4b33 !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
}

.btn-light-green i,
.btn-outline-light-green i {
    background-color: #6db33f !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
}

/* Custom dark green and light green color classes */
.bg-dark-green {
    background-color: #0c4b33 !important;
}

.btn-dark-green {
    background: #0c4b33 !important;
    border-color: #0c4b33 !important;
    color: white !important;
}

.btn-dark-green:hover {
    background: #0a3a26 !important;
    border-color: #0a3a26 !important;
    color: white !important;
}

.btn-outline-dark-green {
    background-color: transparent !important;
    border-color: #0c4b33 !important;
    color: #0c4b33 !important;
}

.btn-outline-dark-green:hover,
.btn-outline-dark-green.active {
    background-color: #0c4b33 !important;
    border-color: #0c4b33 !important;
    color: white !important;
}

/* Light green color classes */
.bg-light-green {
    background-color: #6db33f !important;
}

.btn-light-green {
    background: #6db33f !important;
    border-color: #6db33f !important;
    color: white !important;
}

.btn-light-green:hover {
    background: #5a9c2f !important;
    border-color: #5a9c2f !important;
    color: white !important;
}

.btn-outline-light-green {
    background-color: transparent !important;
    border-color: #6db33f !important;
    color: #6db33f !important;
}

.btn-outline-light-green:hover,
.btn-outline-light-green.active {
    background-color: #6db33f !important;
    border-color: #6db33f !important;
    color: white !important;
}

/* Mobile enhancements for integrated savings overview */
@media (max-width: 768px) {
    /* Improve stats cards layout */
    .stats-cards,
    .stats-cards.mb-4 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .stat-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 10px !important;
        min-height: auto !important;
    }

    .stat-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin: 0 auto 10px auto !important;
    }

    .stat-content h3 {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }

    /* Improve module sections */
    .module-section {
        padding: 20px 15px !important;
    }

    .module-header {
        text-align: center !important;
    }

    /* Improve buttons layout */
    .about-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .btn {
        width: 100% !important;
        max-width: 300px !important;
    }

    /* Improve image positioning */
    .about-image {
        order: -1 !important; /* Move image above buttons on mobile */
        margin-bottom: 15px !important;
    }

    .about-image img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Improve stat cards in modules */
    .stats-cards,
    .stats-cards.mb-4 {
        gap: 15px !important;
    }

    .stat-card {
        padding: 15px !important;
    }

    /* Improve chart containers */
    .chart-container {
        min-height: 300px !important;
    }

    /* Improve card layouts */
    .card {
        margin-bottom: 15px !important;
    }

    /* Improve list layouts */
    .list-group-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    /* Improve responsive grid */
    .row {
        margin: 0 !important;
    }

    .col-md-4, .col-md-8 {
        padding: 0 10px !important;
    }

    /* Improve tab navigation on mobile */
    .nav-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: auto !important;
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;  /* Firefox */
    }

    .nav-tabs::-webkit-scrollbar {
        display: none !important;  /* Chrome, Safari, Opera */
    }

    .nav-link {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 12px 16px !important;
        margin-right: 5px !important;
        font-size: 0.9rem !important;
    }

    .nav-tabs .nav-item {
        margin-bottom: 0 !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .stat-card {
        padding: 12px 10px !important;
    }

    .stat-content h3 {
        font-size: 1.3rem !important;
    }

    .stat-content p {
        font-size: 0.9rem !important;
    }

    .module-section {
        padding: 15px 10px !important;
    }

    .btn {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
}
