/* 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;
    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;
    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;
    z-index: 0;
    filter: blur(0.5px);
}

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

.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;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

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

.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);
}

/* Textarea styling */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

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

.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);
}

.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);
}