/* UBRB Cooperative Theme - Horizon UI Style */
/* Modern, Mobile-First, Glassmorphism */

:root {
    /* Primary Colors - Horizon Theme */
    --ubrb-primary: #047857;
    --ubrb-primary-light: #059669;
    --ubrb-primary-dark: #065f46;
    --ubrb-primary-rgb: 4, 120, 87;
    
    /* Horizon Gradient Colors */
    --horizon-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --horizon-gradient-accent: linear-gradient(135deg, #313860 0%, #151928 100%);
    
    /* Horizon Background */
    --horizon-bg: #f4f7fe;
    --horizon-card-shadow: 0 10px 30px rgba(160, 174, 192, 0.1);
    --horizon-floating-card: 0 12px 30px rgba(0, 0, 0, 0.04);
    
    /* Neutral Colors - Charcoal */
    --ubrb-charcoal: #374151;
    --ubrb-charcoal-light: #4b5563;
    --ubrb-charcoal-dark: #1f2937;
    
    /* Accent */
    --ubrb-accent: #10b981;
    --ubrb-gold: #d4af37;
    
    /* Glassmorphism */
    --ubrb-glass: rgba(255, 255, 255, 0.7);
    --ubrb-blur: blur(12px);
    --ubrb-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Background - Updated to Horizon style */
    --ubrb-bg-light: var(--horizon-bg);
    --ubrb-bg-white: #ffffff;
    --ubrb-bg-dark: #111827;
    
    /* Text */
    --ubrb-text-primary: #1f2937;
    --ubrb-text-secondary: #6b7280;
    --ubrb-text-light: #9ca3af;
    
    /* Border */
    --ubrb-border: #e5e7eb;
    --ubrb-border-light: #f3f4f6;
    
    /* Shadows - Enhanced for Horizon */
    --ubrb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ubrb-shadow: var(--horizon-floating-card);
    --ubrb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ubrb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ubrb-shadow-floating: 0 12px 40px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --ubrb-transition: all 0.3s ease;
}

/* Typography - Outfit Font */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--ubrb-text-primary);
    background: var(--ubrb-bg-light);
}

/* Sidebar Styling - Modern Gradient */
.main-sidebar, .aside-menu {
    background: linear-gradient(180deg, #065f46 0%, #111827 100%) !important;
}

.main-sidebar .sidebar-menu > li > a {
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
    color: var(--ubrb-text-light);
    transition: var(--ubrb-transition);
}

.main-sidebar .sidebar-menu > li.active > a {
    background: var(--ubrb-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.main-sidebar .sidebar-menu > li > a:hover {
    background-color: rgba(var(--ubrb-primary-rgb), 0.2);
    color: var(--ubrb-primary);
}

/* Header Styling */
.main-header {
    border-bottom: 1px solid var(--ubrb-border);
    background-color: var(--ubrb-bg-white);
}

.navbar {
    background-color: var(--ubrb-bg-white) !important;
}

.navbar-badge {
    background-color: var(--ubrb-primary) !important;
}

/* Card Styling - Horizon Floating Cards */
.card, .box {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: var(--horizon-floating-card) !important;
    overflow: hidden;
    transition: var(--ubrb-transition);
}

.card:hover, .box:hover {
    box-shadow: var(--ubrb-shadow-floating) !important;
    transform: translateY(-2px);
}

.card-header, .box-header {
    background: transparent !important;
    border-bottom: 1px solid var(--ubrb-border-light) !important;
    font-weight: 600;
    color: var(--ubrb-charcoal);
    padding: 16px 20px;
}

.card-primary {
    border-top: 3px solid var(--ubrb-primary);
}

.card-success {
    border-top: 3px solid var(--ubrb-accent);
}

/* Button Primary - Horizon Gradient */
.btn-primary {
    background: var(--horizon-gradient);
    border: none;
    font-weight: 600;
    border-radius: 20px;
    padding: 10px 24px;
    transition: var(--ubrb-transition);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}

/* Button Success - Soft Green (Premium) */
.btn-success {
    background-color: #059669;
    border-color: #059669;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: var(--ubrb-transition);
}

.btn-success:hover, .btn-success:focus {
    background-color: #047857;
    border-color: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* Button Danger - Soft Red (Premium) */
.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: var(--ubrb-transition);
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Button Warning - Elegant Gold */
.btn-warning {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: var(--ubrb-transition);
}

.btn-warning:hover, .btn-warning:focus {
    background-color: #b8962e;
    border-color: #b8962e;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Button Info - Soft Teal */
.btn-info {
    background-color: #0d9488;
    border-color: #0d9488;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    transition: var(--ubrb-transition);
}

.btn-info:hover, .btn-info:focus {
    background-color: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

/* Default button - Subtle gray */
.btn-default {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 20px;
    transition: var(--ubrb-transition);
}

.btn-default:hover, .btn-default:focus {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--ubrb-primary);
    border-color: var(--ubrb-primary);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
}

.btn-outline-primary:hover {
    background-color: var(--ubrb-primary);
    border-color: var(--ubrb-primary);
}

/* Button Info - Emerald variant */
.btn-info {
    background-color: var(--ubrb-primary-light);
    border-color: var(--ubrb-primary-light);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
}

.btn-info:hover, .btn-info:focus {
    background-color: var(--ubrb-primary);
    border-color: var(--ubrb-primary);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

/* Button Warning - Gold variant */
.btn-warning {
    background-color: var(--ubrb-gold);
    border-color: var(--ubrb-gold);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
}

.btn-warning:hover, .btn-warning:focus {
    background-color: #b8962e;
    border-color: #b8962e;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Button Danger */
.btn-danger {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
}

/* Nav Tabs - Emerald styling */
.nav-tabs {
    border-bottom: 2px solid var(--ubrb-border);
}

.nav-tabs > li > a {
    color: var(--ubrb-text-secondary);
    font-weight: 500;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    transition: var(--ubrb-transition);
}

.nav-tabs > li > a:hover {
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--ubrb-primary);
    border: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    color: var(--ubrb-primary);
    background-color: var(--ubrb-bg-white);
    border: none;
    border-bottom: 3px solid var(--ubrb-primary);
    font-weight: 600;
}

/* Form Elements - Modern & Airy */
.form-control {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--ubrb-border) !important;
    transition: var(--ubrb-transition) !important;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--ubrb-primary) !important;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--ubrb-text-light) !important;
}

/* Input group */
.input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

.input-group-addon {
    border-radius: 8px 0 0 8px !important;
    background-color: var(--ubrb-bg-light) !important;
    border: 1px solid var(--ubrb-border) !important;
    color: var(--ubrb-primary) !important;
}

/* Select dropdown */
select.form-control {
    border-radius: 8px !important;
    padding: 12px 16px !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23047857' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox & Radio custom */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--ubrb-primary);
}

/* Help block */
.help-block {
    color: var(--ubrb-text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

/* Form horizontal label */
.form-horizontal .control-label {
    font-weight: 600;
    color: var(--ubrb-charcoal);
    padding-top: 12px;
}

/* Required field indicator */
.required::after {
    color: var(--ubrb-gold);
}

/* Table Styling - Premium & Clean */
.grid-view, .table, .dataTable {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    background: transparent !important;
    margin-top: -4px !important; /* Offset spacing */
}

.table thead th, .dataTable thead th {
    background-color: var(--ubrb-charcoal-dark) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 10px 15px !important;
    border: none !important;
    vertical-align: middle !important;
}

.table thead th:first-child {
    border-radius: 12px 0 0 12px !important;
}

.table thead th:last-child {
    border-radius: 0 12px 12px 0 !important;
}

.table tbody tr, .dataTable tbody tr {
    background: var(--ubrb-bg-white) !important;
    box-shadow: var(--ubrb-shadow-sm) !important;
    transition: var(--ubrb-transition);
    border-radius: 12px !important;
}

.table tbody tr:hover, .dataTable tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--ubrb-shadow-md) !important;
    background-color: #f9fafb !important;
}

.table td, .dataTable td {
    padding: 8px 15px !important;
    vertical-align: middle !important;
    border-top: 1px solid var(--ubrb-border-light) !important;
    border-bottom: 1px solid var(--ubrb-border-light) !important;
    color: var(--ubrb-text-primary);
}

.table td:first-child, .dataTable td:first-child {
    border-left: 1px solid var(--ubrb-border-light) !important;
    border-radius: 12px 0 0 12px !important;
}

.grid-view td:last-child, .table td:last-child, .dataTable td:last-child {
    border-right: 1px solid var(--ubrb-border-light) !important;
    border-radius: 0 12px 12px 0 !important;
    white-space: nowrap !important;
    min-width: 100px;
}

/* Action Column - Premium Buttons */
.table td:last-child a, .grid-view td:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin: 0 2px;
    transition: var(--ubrb-transition);
    text-decoration: none;
}

/* View/View Button */
.table td:last-child a[title="view"],
.grid-view td:last-child a[title="view"],
.table td:last-child a[href*="view"],
.grid-view td:last-child a[href*="view"] {
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--ubrb-primary);
}

.table td:last-child a[title="view"]:hover,
.grid-view td:last-child a[title="view"]:hover {
    background-color: var(--ubrb-primary);
    color: #fff;
}

/* Update/Edit Button */
.table td:last-child a[title="update"],
.grid-view td:last-child a[title="update"],
.table td:last-child a[href*="update"],
.grid-view td:last-child a[href*="update"] {
    background-color: rgba(212, 175, 55, 0.15);
    color: #b8962e;
}

.table td:last-child a[title="update"]:hover,
.grid-view td:last-child a[title="update"]:hover {
    background-color: var(--ubrb-gold);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Delete Button */
.table td:last-child a[title="delete"],
.grid-view td:last-child a[title="delete"],
.table td:last-child a[href*="delete"],
.grid-view td:last-child a[href*="delete"],
.table td:last-child button[title="delete"],
.grid-view td:last-child button[title="delete"] {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: none;
    cursor: pointer;
}

.table td:last-child a[title="delete"]:hover,
.grid-view td:last-child a[title="delete"]:hover {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Action buttons glyphicon sizing */
.table td:last-child .glyphicon,
.grid-view td:last-child .glyphicon,
.table td:last-child .fa,
.grid-view td:last-child .fa {
    font-size: 14px;
}

/* DataTables Wrapper & Controls */
.dataTables_wrapper {
    padding: 20px 0 !important;
}

.dataTables_filter {
    margin-bottom: 20px !important;
}

.dataTables_filter input {
    border-radius: 25px !important;
    padding: 8px 20px !important;
    border: 1px solid var(--ubrb-border) !important;
    background: #fff !important;
    width: 250px !important;
    transition: var(--ubrb-transition);
    box-shadow: var(--ubrb-shadow-sm) !important;
}

.dataTables_filter input:focus {
    width: 300px !important;
    border-color: var(--ubrb-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--ubrb-primary-rgb), 0.1) !important;
}

.dataTables_length select {
    border-radius: 10px !important;
    padding: 6px 12px !important;
    border: 1px solid var(--ubrb-border) !important;
    background: #fff !important;
}

.dataTables_info {
    padding-top: 15px !important;
    color: var(--ubrb-text-secondary) !important;
    font-size: 0.85rem !important;
}

.dataTables_paginate {
    padding-top: 15px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid var(--ubrb-border-light) !important;
    background: #fff !important;
    margin: 0 3px !important;
    padding: 6px 12px !important;
    transition: var(--ubrb-transition);
    color: var(--ubrb-text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--ubrb-bg-light) !important;
    border-color: var(--ubrb-primary) !important;
    color: var(--ubrb-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--ubrb-primary) !important;
    border-color: var(--ubrb-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(var(--ubrb-primary-rgb), 0.3) !important;
}

/* Row selection effect */
.table tbody tr.selected, .dataTable tbody tr.selected {
    background-color: rgba(var(--ubrb-primary-rgb), 0.05) !important;
    border: 1px solid var(--ubrb-primary) !important;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--ubrb-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--ubrb-primary-rgb), 0.25);
}

.form-control {
    border-radius: 6px;
    border: 1px solid var(--ubrb-border);
}

.input-group-text {
    background-color: var(--ubrb-bg-light);
    border: 1px solid var(--ubrb-border);
}

/* Label */
label {
    color: var(--ubrb-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Badge */
.badge-primary {
    background-color: var(--ubrb-primary);
}

.badge-success {
    background-color: var(--ubrb-accent);
}

/* Alert */
.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--ubrb-accent);
    color: var(--ubrb-primary-dark);
}

/* Footer */
.main-footer {
    background-color: var(--ubrb-bg-white);
    border-top: 1px solid var(--ubrb-border);
    color: var(--ubrb-text-secondary);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--ubrb-primary-dark) 0%, var(--ubrb-charcoal-dark) 100%);
}

.login-box {
    border-radius: 12px;
    box-shadow: var(--ubrb-shadow-lg);
}

/* Info Box - Widget */
.info-box {
    border-radius: 8px;
    box-shadow: var(--ubrb-shadow);
}

.info-box-icon {
    border-radius: 8px 0 0 8px;
}

.info-box-icon.bg-primary {
    background-color: var(--ubrb-primary) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--ubrb-border);
    box-shadow: var(--ubrb-shadow-md);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: rgba(var(--ubrb-primary-rgb), 0.1);
    color: var(--ubrb-primary);
}

/* Modal */
.modal-header {
    border-bottom: 1px solid var(--ubrb-border);
    background-color: var(--ubrb-bg-light);
}

.modal-title {
    color: var(--ubrb-charcoal);
    font-weight: 600;
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--ubrb-primary);
    border-color: var(--ubrb-primary);
}

.page-link {
    color: var(--ubrb-primary);
}

.page-link:hover {
    color: var(--ubrb-primary-dark);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item.active {
    color: var(--ubrb-primary);
}

/* Content Wrapper */
.content-wrapper {
    background-color: var(--ubrb-bg-light);
}

/* Small Box */
.small-box {
    border-radius: 8px;
    box-shadow: var(--ubrb-shadow);
}

.small-box > .small-box-footer {
    background-color: rgba(0, 0, 0, 0.1);
}

.small-box > .small-box-footer:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
[data-theme="dark"] {
    --ubrb-bg-light: #1f2937;
    --ubrb-bg-white: #374151;
    --ubrb-bg-dark: #111827;
    --ubrb-text-primary: #f9fafb;
    --ubrb-text-secondary: #d1d5db;
    --ubrb-border: #4b5563;
    --ubrb-border-light: #374151;
}

[data-theme="dark"] .card {
    background-color: var(--ubrb-bg-white);
}

[data-theme="dark"] .main-footer,
[data-theme="dark"] .main-header {
    background-color: var(--ubrb-bg-white);
}

[data-theme="dark"] .content-wrapper {
    background-color: var(--ubrb-bg-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-sidebar {
        background-color: var(--ubrb-charcoal-dark) !important;
    }
}

/* Utility Classes */
.text-ubrb {
    color: var(--ubrb-primary) !important;
}

.bg-ubrb {
    background-color: var(--ubrb-primary) !important;
}

.border-ubrb {
    border-color: var(--ubrb-primary) !important;
}

.bg-emerald {
    background-color: var(--ubrb-primary) !important;
}

.text-emerald {
    color: var(--ubrb-primary) !important;
}

/* Currency Display */
.currency-positive {
    color: var(--ubrb-accent);
}

.currency-negative {
    color: #ef4444;
}

/* Status Badge */
.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--ubrb-accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Toastr Custom Styling - Emerald Theme */
#toast-container > div {
    border-radius: 8px !important;
    box-shadow: var(--ubrb-shadow-lg) !important;
    padding: 16px 20px !important;
    font-family: 'Outfit', sans-serif !important;
}

#toast-container > .toast-success {
    background-color: var(--ubrb-primary) !important;
    color: #fff !important;
    border-left: 5px solid var(--ubrb-accent) !important;
}

#toast-container > .toast-error {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-left: 5px solid #b02a37 !important;
}

#toast-container > .toast-warning {
    background-color: var(--ubrb-gold) !important;
    color: #fff !important;
    border-left: 5px solid #b8962e !important;
}

#toast-container > .toast-info {
    background-color: var(--ubrb-primary-light) !important;
    color: #fff !important;
    border-left: 5px solid var(--ubrb-primary) !important;
}

.toast-title {
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.toast-message {
    font-size: 13px !important;
}

/* ===========================================
   HORIZON UI - RESPONSIVE STYLES
   =========================================== */

/* Bottom Navigation Bar - Mobile PWA Style */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0 12px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    color: var(--ubrb-text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--ubrb-transition);
    border-radius: 12px;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    font-weight: 300;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--ubrb-primary);
    background: rgba(4, 120, 87, 0.1);
}

.bottom-nav-item.active i {
    font-weight: 600;
}

/* Mobile: Show bottom nav, hide default footer */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .main-footer {
        display: none;
    }
    
    body {
        padding-bottom: 70px !important;
    }
    
    /* Minimal sidebar for mobile */
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    body.sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    
    /* Full width content on mobile */
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    /* Card adjustments for mobile */
    .card, .box {
        border-radius: 16px !important;
        margin-bottom: 16px;
    }
    
    /* Table responsive */
    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
    }
}

/* Desktop: Sidebar floating style */
@media (min-width: 768px) {
    .main-sidebar {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .main-sidebar .sidebar {
        background: linear-gradient(180deg, #065f46 0%, #111827 100%) !important;
        border-radius: 20px 20px 0 0;
        margin: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    }
    
    .content-wrapper {
        background: var(--horizon-bg);
        border-radius: 20px;
        margin: 10px 20px;
        padding: 20px;
    }
    
    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none !important;
    }
}

/* Sidebar toggle animation */
.sidebar-toggle {
    transition: var(--ubrb-transition);
}

.sidebar-toggle:hover {
    background-color: rgba(4, 120, 87, 0.1);
    border-radius: 8px;
}