/* Glassmorphism Poker Tracker Styles */

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #0d0d15 50%, #050510 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Realistic 3D soap bubble effects */
body::before {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    background:
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 95%, rgba(0, 0, 0, 0.2) 0%, transparent 30%),
        radial-gradient(circle, rgba(100, 100, 120, 0.2) 0%, rgba(70, 70, 90, 0.15) 35%, rgba(50, 50, 70, 0.08) 65%, transparent 100%);
    border-radius: 50%;
    top: 80px;
    left: 10%;
    pointer-events: none;
    z-index: 0 !important;
    filter: blur(0.5px);
    box-shadow:
        inset -30px -30px 60px rgba(0, 0, 0, 0.5),
        inset 25px 25px 50px rgba(255, 255, 255, 0.22),
        0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 380px;
    height: 380px;
    background:
        radial-gradient(circle at 74% 74%, rgba(0, 0, 0, 0.35) 0%, transparent 42%),
        radial-gradient(ellipse at 50% 94%, rgba(0, 0, 0, 0.25) 0%, transparent 32%),
        radial-gradient(circle, rgba(95, 95, 115, 0.18) 0%, rgba(65, 65, 85, 0.13) 35%, rgba(45, 45, 65, 0.07) 65%, transparent 100%);
    border-radius: 50%;
    bottom: 100px;
    right: 8%;
    pointer-events: none;
    z-index: 0 !important;
    filter: blur(0.5px);
    box-shadow:
        inset -28px -28px 55px rgba(0, 0, 0, 0.5),
        inset 23px 23px 48px rgba(255, 255, 255, 0.2),
        0 18px 38px rgba(0, 0, 0, 0.3);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.03);
    }
}

/* Additional bubble elements */
.bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(0.5px);
}

/* Ensure all bubbles stay in background */
.bubble-1, .bubble-2, .bubble-3, .bubble-4, .bubble-5 {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Small bubbles with enhanced 3D */
.bubble-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    background:
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 92%, rgba(0, 0, 0, 0.3) 0%, transparent 35%),
        radial-gradient(circle, rgba(100, 100, 120, 0.15) 0%, rgba(70, 70, 90, 0.1) 50%, transparent 100%);
    box-shadow:
        inset -15px -15px 30px rgba(0, 0, 0, 0.6),
        inset 12px 12px 25px rgba(255, 255, 255, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.4);
    animation: float 18s ease-in-out infinite;
}

.bubble-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    background:
        radial-gradient(circle at 74% 74%, rgba(0, 0, 0, 0.38) 0%, transparent 44%),
        radial-gradient(ellipse at 50% 91%, rgba(0, 0, 0, 0.28) 0%, transparent 33%),
        radial-gradient(circle, rgba(95, 95, 115, 0.12) 0%, rgba(65, 65, 85, 0.08) 50%, transparent 100%);
    box-shadow:
        inset -13px -13px 26px rgba(0, 0, 0, 0.6),
        inset 10px 10px 22px rgba(255, 255, 255, 0.18),
        0 8px 22px rgba(0, 0, 0, 0.4);
    animation: float 22s ease-in-out infinite reverse;
}

.bubble-3 {
    width: 90px;
    height: 90px;
    bottom: 8%;
    right: 45%;
    background:
        radial-gradient(circle at 73% 73%, rgba(0, 0, 0, 0.36) 0%, transparent 43%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 0, 0, 0.26) 0%, transparent 31%),
        radial-gradient(circle, rgba(90, 90, 110, 0.14) 0%, rgba(60, 60, 80, 0.09) 50%, transparent 100%);
    box-shadow:
        inset -12px -12px 24px rgba(0, 0, 0, 0.6),
        inset 9px 9px 20px rgba(255, 255, 255, 0.23),
        0 7px 20px rgba(0, 0, 0, 0.4);
    animation: float 19s ease-in-out infinite;
}

/* Medium bubbles with enhanced 3D */
.bubble-4 {
    width: 250px;
    height: 250px;
    top: 33%;
    left: 50%;
    background:
        radial-gradient(circle at 76% 76%, rgba(0, 0, 0, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 96%, rgba(0, 0, 0, 0.22) 0%, transparent 28%),
        radial-gradient(circle, rgba(105, 105, 125, 0.2) 0%, rgba(75, 75, 95, 0.14) 40%, rgba(55, 55, 75, 0.08) 70%, transparent 100%);
    box-shadow:
        inset -25px -25px 50px rgba(0, 0, 0, 0.55),
        inset 20px 20px 42px rgba(255, 255, 255, 0.22),
        0 15px 35px rgba(0, 0, 0, 0.35);
    animation: float 24s ease-in-out infinite reverse;
}

.bubble-5 {
    width: 280px;
    height: 280px;
    bottom: 15%;
    left: 25%;
    background:
        radial-gradient(circle at 77% 77%, rgba(0, 0, 0, 0.33) 0%, transparent 38%),
        radial-gradient(ellipse at 50% 97%, rgba(0, 0, 0, 0.2) 0%, transparent 26%),
        radial-gradient(circle, rgba(108, 108, 128, 0.22) 0%, rgba(78, 78, 98, 0.16) 40%, rgba(58, 58, 78, 0.09) 70%, transparent 100%);
    box-shadow:
        inset -27px -27px 54px rgba(0, 0, 0, 0.55),
        inset 22px 22px 45px rgba(255, 255, 255, 0.22),
        0 17px 37px rgba(0, 0, 0, 0.35);
    animation: float 26s ease-in-out infinite;
}

.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Page Header - Glassmorphism */
.page-header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
    margin: 10px 0 0 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Glass Background Utilities */
.bg-modern {
    background: rgba(102, 126, 234, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-warning {
    background: rgba(255, 167, 81, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-danger {
    background: rgba(248, 80, 50, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Buttons */
.btn-modern {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white;
}

.btn-success {
    background: rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger {
    background: rgba(248, 80, 50, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn-danger:hover {
    background: rgba(248, 80, 50, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 80, 50, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-warning {
    background: rgba(255, 167, 81, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: rgba(255, 167, 81, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 167, 81, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Glass Card Headers */
.card-header-modern {
    background: rgba(102, 126, 234, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header-warning {
    background: rgba(255, 167, 81, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header-danger {
    background: rgba(248, 80, 50, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header-success {
    background: rgba(16, 185, 129, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header-modern h5,
.card-header-warning h5,
.card-header-danger h5,
.card-header-success h5 {
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.card-header-modern i,
.card-header-warning i,
.card-header-danger i,
.card-header-success i {
    margin-right: 8px;
}

/* Glass Cards */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.card-body {
    background: rgba(255, 255, 255, 0.03);
}

/* Month Navigation - Glass */
.month-navigation {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.month-display {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.month-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Filter Panel - Glass */
.filter-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-badge {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.sort-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.sort-active {
    color: white;
    font-weight: 700;
}

/* Navbar - Glass */
.navbar {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Stat Card - Glass */
.stat-card {
    border-left: 4px solid rgba(102, 126, 234, 0.8);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    margin-top: 1rem;
    -webkit-backdrop-filter: blur(20px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Profit Colors */
.profit-positive {
    color: #4ade80;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.profit-negative {
    color: #f87171;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* Table Styles - Glass */
.table {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
}

.table tbody td {
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Form Styles - Glass */
.form-control {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    color: white;
}

.form-label {
    color: white;
    font-weight: 500;
}

.form-label i {
    margin-right: 5px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 1rem;
}

/* Alert Styles - Glass */
.alert {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #4ade80;
}

.alert-danger {
    background: rgba(248, 80, 50, 0.15);
    border: 1px solid rgba(248, 80, 50, 0.3);
    color: #f87171;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.alert-warning {
    background: rgba(255, 167, 81, 0.15);
    border: 1px solid rgba(255, 167, 81, 0.3);
    color: #fbbf24;
}

.alert-info {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #93c5fd;
}

.alert-info-custom {
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 4px solid rgba(102, 126, 234, 0.8);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
}

.alert-info-custom i {
    margin-right: 8px;
}

/* Session Add - Glass */
.limit-form-row {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.limit-form-row:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.add-limit-btn {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.add-limit-btn:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.remove-limit-btn {
    background: rgba(248, 80, 50, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.remove-limit-btn:hover {
    background: rgba(248, 80, 50, 0.25);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Footer - Glass */
footer {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px 0;
}

/* Button Group */
.btn-group .btn {
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Hide smaller bubbles on mobile, keep only body::before and body::after */
    .bubble {
        display: none !important;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

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

    .month-display {
        font-size: 2rem;
    }
}

/* Additional Glass Effects */
.glass-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Select Dropdowns */
select.form-control {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
}

select.form-control option {
    background: #1a1a2e;
    color: white;
}

/* Input Groups */
.input-group-text {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

/* Badges */
.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

/* Enhanced Table Styling */
.data-table {
    margin-bottom: 0;
}

.data-table thead th {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    vertical-align: middle;
}

.data-table thead th i {
    margin-right: 5px;
    opacity: 0.9;
}

.data-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody td {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    border-color: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 1.2rem;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transition: background 0.2s ease;
}

.data-table tfoot tr {
    background: rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.data-table tfoot td {
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.data-table .total-label {
    font-size: 1rem;
}

.data-table .total-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Currency values in tables */
.currency-value {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.empty-value {
    color: rgba(255, 255, 255, 0.4);
}

/* Table badges */
.table-badge {
    background: rgba(102, 126, 234, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    padding: 4px 10px;
    margin: 2px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    display: inline-block;
    border-radius: 6px;
}

/* Profit/Loss emphasis */
.data-table .profit-col {
    font-weight: 600;
    font-size: 1.05rem;
}

.data-table .games-col {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Card header enhancements */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.account-header h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 0;
}

.account-header .account-stats {
    margin-top: 0.5rem;
}

.account-header .account-stats span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

.account-header .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.account-header .stat-value.profit {
    font-weight: 700;
}

/* Section headings in forms and content */
h5 {
    color: white;
    margin-bottom: 1rem;
}

.d-flex h5 {
    margin-bottom: 0;
}

h4 {
    color: white;
}

hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 2rem 0;
}

/* Action buttons in tables */
.btn-table-action {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-table-action:hover {
    background: rgba(102, 126, 234, 0.35);
    color: white;
    transform: translateY(-1px);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state .empty-text {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-size: 1.05rem;
}

.empty-state .btn-add {
    background: rgba(16, 185, 129, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
}

.empty-state .btn-add:hover {
    background: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

/* Info alert */
.alert-info-glass {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
}

.alert-info-glass .alert-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.alert-info-glass .alert-message {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.alert-info-glass .btn {
    margin-top: 1rem;
    background: rgba(102, 126, 234, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-info-glass .btn:hover {
    background: rgba(102, 126, 234, 0.45);
}

/* Date formatting */
.date-cell {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }

    .data-table thead th,
    .data-table tbody td,
    .data-table tfoot td {
        padding: 8px 10px;
    }

    .account-header h4 {
        font-size: 1.3rem;
    }

    .account-header .account-stats {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Form Page Styling */
.section-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    opacity: 0.5;
}

.section-title {
    color: white;
    font-weight: 600;
    margin: 0;
}

.form-label-small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-error {
    color: #f87171;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Variants */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.45);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.nav-container {
    max-width: 106rem;
}

.navbar {
    position: relative;
    z-index: 1030;
}

/* Ensure modals work properly */
body.modal-open {
    overflow: hidden;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1050;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    margin: 0 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dropdown-item i {
    margin-right: 8px;
    opacity: 0.8;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Navbar styling */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 12px !important;
    margin: 0 4px;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Logout button styled as nav-link */
.nav-link.btn-link {
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Alert styling for glassmorphism */
.alert {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(248, 80, 50, 0.15);
    border-color: rgba(248, 80, 50, 0.3);
}

.alert-warning {
    background: rgba(255, 167, 81, 0.15);
    border-color: rgba(255, 167, 81, 0.3);
}

.alert-info {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Footer styling */
footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure proper stacking context */
.container {
    position: relative;
    z-index: 1;
}

/* Dropdown toggle styling */
.dropdown-toggle::after {
    margin-left: 0.5em;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 0.5rem;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        margin: 4px 0;
    }
}

.stat-title {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== ANALYTICS DASHBOARD ==================== */

/* Chart Containers */
.chart-container {
    position: relative;
    height: 350px;
    margin-bottom: 20px;
}

.chart-container-small {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}

/* Stat Boxes */
.stat-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-box-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-box-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Filter Section */
.filter-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

/* Date Range Buttons */
.date-range-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.date-range-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.date-range-btn.active {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block; /* Makes the whole text area easier to click */
}

.project-link:hover {
    color: #a5b4fc; /* Light purple/blue hover color */
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.5);
}

.project-link:hover i {
    opacity: 1 !important;
}

/* ==================== PROJECT PAGE ENHANCEMENTS ==================== */

/* Budget Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.6));
    border-radius: 15px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-fill.warning {
    background: linear-gradient(90deg, rgba(255, 167, 81, 0.8), rgba(255, 167, 81, 0.6));
}

.progress-bar-fill.danger {
    background: linear-gradient(90deg, rgba(248, 80, 50, 0.8), rgba(248, 80, 50, 0.6));
}

.budget-percentage {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white;
}

.sortable i {
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sortable:hover i {
    opacity: 1;
}

.sortable.sorted-asc i::before {
    content: "\f145";
    opacity: 1;
    color: #4ade80;
}

.sortable.sorted-desc i::before {
    content: "\f149";
    opacity: 1;
    color: #4ade80;
}

/* Spending Summary Boxes */
.summary-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.summary-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.summary-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Filter Components */
#category-filter-select,
#date-range-select,
#search-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

#category-filter-select:focus,
#date-range-select:focus,
#search-box:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    color: white;
    outline: none;
}

#category-filter-select option,
#date-range-select option {
    background: #1a1a2e;
    color: white;
}

#search-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.expense-total-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
}

.expense-total-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.expense-total-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.currency-symbol {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Form label small styling */
.form-label-small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .expense-total-amount {
        font-size: 1.6rem;
    }

    .currency-symbol {
        font-size: 1.2rem;
    }

    .summary-value {
        font-size: 1.3rem;
    }

    .progress-bar-container {
        height: 25px;
    }
}

/* ==================== DASHBOARD PROJECT CARDS ==================== */

/* Project Card Container */
.project-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

/* Card Header */
.project-card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.project-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.project-deadline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-deadline i {
    opacity: 0.8;
}

.btn-edit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-edit-card:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
    transform: scale(1.05);
}

/* Card Body */
.project-card-body {
    padding: 20px;
    flex-grow: 1;
}

/* Mini Stat Boxes */
.mini-stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.mini-stat-box.spent {
    border-color: rgba(248, 80, 50, 0.3);
    background: rgba(248, 80, 50, 0.08);
}

.mini-stat-box.remaining {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.mini-stat-box.remaining.negative {
    border-color: rgba(248, 80, 50, 0.3);
    background: rgba(248, 80, 50, 0.08);
}

.mini-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-stat-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.mini-stat-box.spent .mini-stat-value {
    color: #f87171;
}

.mini-stat-box.remaining .mini-stat-value {
    color: #4ade80;
}

.mini-stat-box.remaining.negative .mini-stat-value {
    color: #f87171;
}

/* Project Progress Bar */
.project-progress-container {
    margin-top: 15px;
}

.progress-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-percentage {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.project-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.6));
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
    position: relative;
}

.project-progress-fill.warning {
    background: linear-gradient(90deg, rgba(255, 167, 81, 0.8), rgba(255, 167, 81, 0.6));
}

.project-progress-fill.danger {
    background: linear-gradient(90deg, rgba(248, 80, 50, 0.8), rgba(248, 80, 50, 0.6));
}

/* Card Footer */
.project-card-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.view-details {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.project-card:hover .view-details {
    color: white;
    gap: 10px;
}

.view-details i {
    transition: transform 0.3s ease;
}

.project-card:hover .view-details i {
    transform: translateX(4px);
}

/* Empty State (when no projects) */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.empty-state .empty-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-state .btn-add {
    background: rgba(16, 185, 129, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
}

.empty-state .btn-add:hover {
    background: rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card-title {
        font-size: 1.1rem;
    }

    .mini-stat-label {
        font-size: 0.7rem;
    }

    .mini-stat-value {
        font-size: 1rem;
    }

    .project-card-header,
    .project-card-body,
    .project-card-footer {
        padding: 15px;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state .empty-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .mini-stat-box {
        padding: 10px 6px;
    }

    .mini-stat-label {
        font-size: 0.65rem;
    }

    .mini-stat-value {
        font-size: 0.95rem;
    }

    .project-card:hover {
        transform: translateY(-4px);
    }
}

/* ==================== CATEGORY MANAGEMENT PAGE ==================== */

/* Category Card */
.category-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Category Header */
.category-card-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.expand-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.expand-btn i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    display: block;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Category Info */
.category-info {
    margin-left: 5px;
}

.category-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    user-select: none;
}

.category-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Category Actions */
.category-actions {
    display: flex;
    gap: 8px;
}

.btn-action,
.btn-action-danger {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-action:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-action-danger:hover {
    background: rgba(248, 80, 50, 0.3);
    border-color: rgba(248, 80, 50, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Subcategories Container */
.subcategories-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Subcategory Item */
.subcategory-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.subcategory-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.subcategory-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
}

.subcategory-actions {
    display: flex;
    gap: 6px;
}

/* Empty Subcategories State */
.empty-subcategories {
    text-align: center;
    padding: 30px 20px;
}

.empty-subcategories i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.empty-subcategories p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Modal Pages - Centered container */
.modal-page-container {
    margin-top: 100px;
    margin-bottom: 50px;
}

/* Enhanced Modal Backdrop - Makes modal stand out more */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    opacity: 0.85 !important;
}

/* Glass Modal Styling - Use Bootstrap defaults, just style appearance */
.glass-modal {
    background: rgba(0, 0, 0, 0.65) !important;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    margin-top: 6.25rem;
}

.glass-modal .modal-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
}

.glass-modal .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.glass-modal .modal-body {
    padding: 25px;
}

.glass-modal .modal-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 0 0 20px 20px;
}

.glass-modal .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
}

.glass-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
    color: white !important;
    outline: none;
}

.glass-modal .form-control:disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.6) !important;
}

.glass-modal .form-label,
.glass-modal .form-label-small {
    color: white !important;
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

/* Modal Dialog Enhancement */
.modal-dialog {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
    animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add subtle glow to modal when active */
.modal.show .glass-modal {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 40px rgba(255, 255, 255, 0.3);
}

/* Delete Modal Styling */
.glass-modal .alert-warning {
    background: rgba(255, 167, 81, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 167, 81, 0.3) !important;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.glass-modal .alert-warning .text-danger {
    color: #f87171 !important;
    font-weight: 600;
}

.glass-modal .alert-warning strong {
    color: rgba(255, 255, 255, 1);
}

/* Modal body text */
.glass-modal .modal-body .text-white {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
}

/* Delete button in modal */
.glass-modal .modal-footer .btn-danger {
    background: rgba(248, 80, 50, 0.3);
    border: 1px solid rgba(248, 80, 50, 0.5);
    color: white;
    font-weight: 600;
}

.glass-modal .modal-footer .btn-danger:hover {
    background: rgba(248, 80, 50, 0.5);
    border-color: rgba(248, 80, 50, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 80, 50, 0.4);
}

/* Responsive Design for Categories */
@media (max-width: 768px) {
    .category-card-header {
        padding: 15px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-actions {
        flex-wrap: wrap;
    }

    .btn-action,
    .btn-action-danger {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .subcategories-container {
        padding: 15px;
    }

    .subcategory-item {
        padding: 10px 12px;
    }

    .expand-btn {
        padding: 6px 10px;
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .category-actions {
        gap: 5px;
    }

    .btn-action i,
    .btn-action-danger i {
        font-size: 0.9rem;
    }
}

/* ==================== PAGINATION CONTROLS ==================== */

.pagination-container {
    padding: 0 5px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Glass-styled pagination */
.pagination-glass {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-glass .page-item {
    list-style: none;
}

.pagination-glass .page-link {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.pagination-glass .page-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination-glass .page-item.active .page-link {
    background: rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.pagination-glass .page-item.active .page-link:hover {
    transform: none;
    cursor: default;
}

.pagination-glass .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-glass .page-item.disabled .page-link:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

/* Icon styling in pagination */
.pagination-glass .page-link i {
    font-size: 0.9rem;
    display: inline-block;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination-container {
        margin-top: 1rem;
    }

    .pagination-info {
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .pagination-glass {
        justify-content: center;
        width: 100%;
    }

    .pagination-glass .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 35px;
    }
}