/* Badminton Theme Colors */
:root {
    --badminton-green: #2d5016;
    --badminton-light-green: #4a7c20;
    --badminton-yellow: #f4d03f;
    --badminton-orange: #e67e22;
    --badminton-red: #c0392b;
    --badminton-gradient: linear-gradient(135deg, #2d5016, #4a7c20, #f4d03f);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 50%, #e0f2e0 100%);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background layer with blur effect */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Blur overlay for focus effect */
        radial-gradient(circle at center, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.4) 70%),
        /* Home court image */
        url('../images/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Apply blur effect only to the background */
    filter: blur(3px);
    z-index: -1;
}

.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Additional overlay for focus effect */
    background: radial-gradient(circle at center, transparent 25%, rgba(45, 80, 22, 0.3) 60%);
    z-index: 0;
    pointer-events: none;
}

/* Alternative clay court version - uncomment to use clay court instead of grass */
/*
.login-container {
    background: 
        radial-gradient(ellipse at top left, rgba(210,105,30,0.3) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(160,82,45,0.3) 0%, transparent 30%),
        radial-gradient(ellipse at center, rgba(205,133,63,0.2) 0%, transparent 40%),
        linear-gradient(0deg, rgba(139,69,19,0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,69,19,0.4) 1px, transparent 1px),
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.5) 49%, rgba(255,255,255,0.5) 51%, transparent 52%),
        linear-gradient(135deg, #CD853F 0%, #D2691E 25%, #A0522D 50%, #D2691E 75%, #CD853F 100%),
        repeating-linear-gradient(
            30deg,
            rgba(160,82,45,0.8) 0px,
            rgba(205,133,63,0.8) 1px,
            rgba(210,105,30,0.8) 2px,
            rgba(160,82,45,0.8) 3px
        );
    background-size: 
        150px 150px,
        150px 150px,
        250px 250px,
        60px 60px,
        60px 60px,
        100% 100%,
        100% 100%,
        3px 3px;
    background-position:
        0 0,
        50px 50px,
        100px 100px,
        0 0,
        0 0,
        center center,
        0 0,
        0 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
*/

@keyframes courtGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-card {
    position: relative;
    z-index: 10;
    /* Ensure the login card is clearly above the blurred background */
}

.logo-container {
    margin-bottom: 1rem;
}

.badminton-icon, .badminton-icon-alt {
    font-size: 3rem;
    color: var(--badminton-yellow);
    margin: 0 0.5rem;
    animation: bounce 2s infinite;
}

.badminton-racquet, .shuttlecock {
    display: inline-block;
    font-size: 3rem;
    margin: 0 0.5rem;
    animation: bounce 2s infinite;
}

.shuttlecock {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.club-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.club-subtitle {
    color: var(--badminton-yellow);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.login-card .card {
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.btn-google {
    background: linear-gradient(45deg, #db4437, #dd5144);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 68, 55, 0.3);
}

.btn-google:hover {
    background: linear-gradient(45deg, #c23321, #d23c2f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 68, 55, 0.4);
    color: white;
}

.badminton-graphics {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

.badminton-graphics span {
    margin: 0 1rem;
    animation: swing 3s ease-in-out infinite;
    display: inline-block;
}

.badminton-graphics span:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

/* Dashboard Styles */
.bg-badminton {
    background: var(--badminton-gradient) !important;
}

.bg-dark-green {
    background-color: #2d5016 !important; /* Dark green instead of gradient */
}

.text-badminton {
    color: var(--badminton-green);
}

.dashboard-container {
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f8f0 100%);
    min-height: 100vh;
}

.welcome-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--badminton-green);
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.2);
    border-color: var(--badminton-light-green);
}

.dashboard-icon {
    font-size: 3rem;
    color: var(--badminton-green);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-icon {
    color: var(--badminton-light-green);
    transform: scale(1.1);
}

.dashboard-card h5 {
    color: var(--badminton-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Admin Card Styles */
.admin-card {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #dc3545;
}

.admin-card:hover {
    border-color: #c82333;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.admin-card .dashboard-icon {
    color: #dc3545;
}

.admin-card:hover .dashboard-icon {
    color: #c82333;
}

.admin-card h5 {
    color: #dc3545;
}

.admin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.admin-badge .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
}

.bg-gradient-badminton {
    background: var(--badminton-gradient) !important;
}

/* Navbar Styles */
.navbar-dark .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--badminton-light-green);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.alert-info {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .club-title {
        font-size: 2rem;
    }
    
    .dashboard-card {
        height: 180px;
        padding: 1.5rem;
    }
    
    .dashboard-icon {
        font-size: 2.5rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--badminton-light-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--badminton-green);
}

/* Stats Cards Styling */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card-primary::before {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #28a745, #1e7e34);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #17a2b8, #117a8b);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #ffc107, #e0a800);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.stat-icon i {
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress {
    margin-top: auto;
}

.stat-progress .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    margin-bottom: 8px;
}

.stat-progress .progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

.stat-progress small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Hover effects for stat cards */
.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card-primary:hover .stat-icon {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.stat-card-success:hover .stat-icon {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.stat-card-info:hover .stat-icon {
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

.stat-card-warning:hover .stat-icon {
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Responsive adjustments for stat cards */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .stat-icon i {
        font-size: 1.2rem;
    }
}

/* Members Page Styling */
.members-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.members-header {
    text-align: center;
    padding: 40px 0 20px;
}

.members-stats-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    overflow: hidden;
    position: relative;
}

.members-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22, #e74c3c);
}

.member-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: none;
}

.member-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.online-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.member-photo-container {
    position: relative;
    text-align: center;
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.member-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.member-photo-placeholder i {
    font-size: 2.5rem;
    color: white;
}

.membership-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.membership-badge .badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.member-info {
    padding: 25px;
}

.member-name {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.member-email {
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.member-email:hover {
    color: #3498db !important;
}

.skill-level {
    text-align: center;
}

.skill-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.skill-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
}

.playing-stats {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    width: 20px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.stat-label {
    font-weight: 600;
    color: #7f8c8d;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-value {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.contact-info {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.no-members {
    padding: 60px 20px;
    text-align: center;
}

/* Responsive adjustments for member cards */
@media (max-width: 768px) {
    .member-card {
        margin-bottom: 20px;
    }
    
    .members-stats-card .row > div {
        margin-bottom: 20px;
    }
    
    .members-stats-card .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Additional hover effects for member photos */
.member-photo-container:hover .member-photo,
.member-photo-container:hover .member-photo-placeholder {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Footer Styles */
.footer {
    margin-top: auto;
    border-top: 3px solid var(--badminton-yellow);
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--badminton-yellow) !important;
    text-decoration: underline;
}

/* Privacy Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header.bg-dark-green {
    border-radius: 15px 15px 0 0;
}

.privacy-content h6 {
    color: var(--badminton-green);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-content h6:first-child {
    margin-top: 0;
}

.privacy-content ul {
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.25rem;
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-fluid:has(> *:last-child) {
    flex: 1;
}

/* Court Fee Settlement Styles */
.court-fees-container {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f0 50%, #e8f5f8 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.balance-card {
    background: var(--badminton-gradient) !important;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.stat-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.quick-actions .btn {
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.quick-actions .btn:hover::before {
    left: 100%;
}

.quick-actions .btn:hover {
    border-color: var(--badminton-green);
    transform: translateY(-2px) scale(1.02);
}

/* Session Forms */
.new-session-container,
.session-detail-container,
.record-payment-container,
.payment-history-container {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8f0 50%, #e8f5f8 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.participant-row {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.participant-row:hover {
    border-color: var(--badminton-light-green);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.1);
}

.participant-row .form-control:focus,
.participant-row .form-select:focus {
    border-color: var(--badminton-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

/* Session Detail Cards */
.session-info-card,
.settlement-status-card,
.participants-card,
.payments-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.session-info-card:hover,
.participants-card:hover,
.payments-card:hover {
    transform: translateY(-2px);
}

.settlement-status-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

/* Circular Progress */
.settlement-progress {
    position: relative;
}

.circular-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.circle .mask,
.circle .fill {
    width: 60px;
    height: 120px;
    position: absolute;
    border-radius: 60px 0 0 60px;
    transform-origin: 60px 60px;
}

.circle .mask {
    clip: rect(0px, 120px, 120px, 60px);
}

.circle .mask .fill {
    clip: rect(0px, 60px, 120px, 0px);
    background: var(--badminton-gradient);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle .mask.full,
.circle .fill {
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.inside-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.percentage {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--badminton-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead th {
    background: linear-gradient(135deg, var(--badminton-green), var(--badminton-light-green));
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fffe, #f0f8f0);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    border-radius: 20px;
    padding: 0.5em 0.8em;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #3498db) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--badminton-green), var(--badminton-light-green)) !important;
}

/* Balance Items */
.balance-item {
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.balance-item:hover::before {
    left: 100%;
}

.balance-item:hover {
    transform: translateY(-2px);
    border-color: var(--badminton-green);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

.bg-success-subtle {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    border-color: #28a745 !important;
}

.bg-danger-subtle {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
    border-color: #dc3545 !important;
}

/* Button Enhancements */
.btn {
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--badminton-gradient);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #3498db);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: #000;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--badminton-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: var(--badminton-light-green);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:hover {
    border-color: var(--badminton-light-green);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.court-fees-container .card,
.new-session-container .card,
.session-detail-container .card,
.record-payment-container .card,
.payment-history-container .card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .court-fees-container,
    .new-session-container,
    .session-detail-container,
    .record-payment-container,
    .payment-history-container {
        padding: 1rem 0;
    }
    
    .circular-progress {
        width: 80px;
        height: 80px;
    }
    
    .circle {
        width: 80px;
        height: 80px;
    }
    
    .inside-circle {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 10px;
    }
    
    .percentage {
        font-size: 1rem;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .balance-item {
        margin-bottom: 1rem;
    }
    
    .quick-actions .btn {
        margin-bottom: 0.5rem;
    }
}
