/**
 * Main CSS file for Ludo Tournament Application
 */

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-dark .navbar-toggler:focus {
    box-shadow: none;
}

/* Bottom Navigation */
.fixed-bottom .btn-link {
    text-decoration: none;
    transition: all 0.2s;
    padding: 0.5rem 0.25rem;
}

.fixed-bottom .btn-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.fixed-bottom .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.fixed-bottom .btn-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Ensure bottom nav fits on small screens */
@media (max-width: 360px) {
    .fixed-bottom .btn-link i {
        font-size: 1rem;
    }

    .fixed-bottom .btn-link .small {
        font-size: 0.65rem !important;
    }
}

/* Sidebar Menu */
.offcanvas-header {
    padding: 1rem 1.5rem;
}

.offcanvas-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between; /* This will push the social links to the bottom */
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.list-group-item.active {
    background-color: #0d6efd;
    color: white;
}

.list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

/* Card Styles */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: none;
    overflow: hidden;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

.btn-success {
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.25);
}

.btn-danger {
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Avatar Container */
.avatar-container {
    position: relative;
}

.avatar-container .badge {
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid #fff;
}

/* Verified Badge */
.verified-badge-container {
    position: absolute;
    bottom: -4px;
    right: -4px;
    z-index: 100;
}

.avatar-wrapper {
    position: relative;
    z-index: 20;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #000000 !important;
    z-index: 100;
    transform: scale(1.2);
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 1px white) drop-shadow(0 0 1px white);
    background: transparent !important;
    border: none !important;
}

.verified-badge i {
    font-size: 16px;
    color: #000000 !important;
    background: transparent !important;
}

/* Sidebar verified badge */
#sidebar-verified-badge {
    bottom: -4px;
    right: -4px;
}

#sidebar-verified-badge .verified-badge {
    width: 16px;
    height: 16px;
}

#sidebar-verified-badge .verified-badge i {
    font-size: 16px;
    color: #1e88e5 !important;
}

/* Profile page verified badge */
.profile-avatar .verified-badge-container {
    bottom: 0;
    right: 0;
}

.profile-avatar .verified-badge {
    width: 22px;
    height: 22px;
}

.profile-avatar .verified-badge i {
    font-size: 22px;
    color: #1e88e5 !important;
}

/* Lobby page verified badge */
#lobby-verified-badge {
    bottom: -4px;
    right: -4px;
}

#lobby-verified-badge .verified-badge {
    width: 16px;
    height: 16px;
}

#lobby-verified-badge .verified-badge i {
    font-size: 16px;
    color: #1e88e5 !important;
}

/* Social Buttons */
.social-links a {
    transition: all 0.2s;
}

.social-links a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Banner Slider */
.banner-slider-container {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 3px;
}

.carousel-indicators button.active {
    background-color: #fff;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Slider loading placeholder */
.slider-loading {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

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

    .carousel-item img {
        max-height: 150px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
}

/* Refresh Button */
.refresh-button {
    position: fixed;
    z-index: 1031; /* Higher than the bottom nav */
    bottom: 6.5rem; /* Position it higher above the bottom nav */
    right: 1rem;
}

.refresh-button .btn {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Match Cards */
.match-card {
    transition: all 0.3s;
    border-radius: 0.75rem;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Progress Bar */
.progress {
    border-radius: 1rem;
    overflow: hidden;
    height: 0.75rem;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.75rem + 2px);
    padding: 1.25rem 1rem;
}

.form-floating > label {
    padding: 1.25rem 1rem;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    color: #6c757d;
    border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    isolation: isolate;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 4.5rem; /* Standard padding for bottom navigation */
        padding-top: 4.5rem; /* Add padding to the top as well */
    }

    .card-title {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .card-header, .card-body, .card-footer {
        padding: 1rem;
    }

    .refresh-button {
        bottom: 6.5rem; /* Position it higher above the bottom nav */
        right: 1rem;
        z-index: 1031; /* Higher than the bottom nav */
    }

    .refresh-button .btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Matches Page Styles */
/* Matches page specific styles */
.matches-page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove these styles as the header is no longer needed */
/*
.matches-header h1 {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0d6efd, #0a58ca);
    border-radius: 2px;
}
*/

.matches-tabs-container {
    margin-bottom: 1rem;
}

/* Fixed tabs for matches page */
.matches-tabs-container.fixed-top {
    border-radius: 0;
    margin-bottom: 0;
    z-index: 1020;
    border-top: none;
}

.matches-tabs-container.fixed-top .matches-tabs {
    border-radius: 0;
}

/* Adjust for small screens */
@media (max-width: 576px) {
    .matches-tabs-container.fixed-top {
        top: 50px !important; /* Adjust based on navbar height on small screens */
    }
}

/* Adjust for extra small screens */
@media (max-width: 360px) {
    .matches-tabs-container.fixed-top {
        top: 45px !important; /* Further adjust for very small screens */
    }
}

.matches-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.matches-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.matches-tab-item:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.matches-tab-item.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 600;
}

.matches-tab-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.matches-tab-item:hover .matches-tab-icon,
.matches-tab-item.active .matches-tab-icon {
    transform: scale(1.1);
}

.matches-tab-text {
    font-size: 0.8rem;
}

.match-card {
    background-color: #fff;
    border-radius: 8px; /* Further reduced from 12px */
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Further reduced shadow */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem; /* Further reduced margin */
}

.match-card:hover {
    transform: translateY(-3px); /* Reduced from -5px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

/* Smaller match cards */
.small-match-card {
    border-radius: 12px;
}

.small-match-card .match-card-header {
    padding: 0.75rem;
}

.small-match-card .match-card-body {
    padding: 0.75rem;
}

.small-match-card .match-card-footer {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.small-match-card .match-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.small-match-card .match-category .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.small-match-card .match-prize-container,
.small-match-card .match-players-container {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.small-match-card .match-prize-value {
    font-size: 1rem;
}

.match-card-header {
    padding: 0.5rem; /* Further reduced from 0.75rem */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.match-title {
    font-weight: 600;
    margin-bottom: 0.15rem; /* Further reduced from 0.25rem */
    color: #212529;
    font-size: 0.85rem; /* Further reduced font size */
}

.match-category {
    margin-bottom: 0.15rem; /* Further reduced from 0.25rem */
    font-size: 0.75rem; /* Added smaller font size */
}

.match-card-body {
    padding: 0.4rem; /* Further reduced from 0.5rem */
    flex: 1;
}

.match-prize-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-radius: 6px; /* Further reduced from 8px */
    padding: 0.35rem; /* Further reduced from 0.5rem */
    margin-bottom: 0.35rem; /* Further reduced margin */
}

.small-match-card .match-prize-container {
    padding: 0.3rem; /* Further reduced from 0.4rem */
    border-radius: 4px; /* Further reduced from 6px */
}

.match-prize-item {
    text-align: center;
    flex: 1;
}

.match-prize-divider {
    width: 1px;
    height: 25px; /* Reduced from 30px */
    background-color: rgba(0, 0, 0, 0.1);
}

.small-match-card .match-prize-divider {
    height: 20px; /* Reduced from 25px */
}

.match-prize-label {
    font-size: 0.65rem; /* Further reduced from 0.7rem */
    color: #6c757d;
    margin-bottom: 0.05rem; /* Further reduced from 0.1rem */
}

.small-match-card .match-prize-label {
    font-size: 0.6rem; /* Further reduced from 0.65rem */
}

.match-prize-value {
    font-weight: 700;
    font-size: 0.85rem; /* Further reduced from 0.95rem */
}

.small-match-card .match-prize-value {
    font-size: 0.75rem; /* Further reduced from 0.85rem */
}

.match-prize-value.entry-fee {
    color: #0d6efd;
}

.match-prize-value.winning-prize {
    color: #198754;
}

.match-players-container {
    background-color: #f8f9fa;
    border-radius: 6px; /* Further reduced from 8px */
    padding: 0.3rem; /* Further reduced from 0.35rem */
    margin-bottom: 0.3rem; /* Further reduced margin */
}

.small-match-card .match-players-container {
    padding: 0.3rem; /* Reduced from 0.5rem */
    border-radius: 4px; /* Reduced from 8px */
}

.match-players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.match-title-container {
    max-width: 70%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.2rem;
}

.match-players-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.small-match-card .match-players-label {
    font-size: 0.7rem;
}

.match-players-count {
    font-weight: 600;
    font-size: 0.9rem;
}

.small-match-card .match-players-count {
    font-size: 0.8rem;
}

.match-players-count .current {
    color: #0d6efd;
}

.match-players-count .separator {
    color: #6c757d;
    margin: 0 0.25rem;
}

.match-players-count .max {
    color: #6c757d;
}

.match-players-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.match-players-progress .progress-bar {
    border-radius: 4px;
    transition: width 0.5s ease;
}

.match-players-progress .progress-low {
    background: linear-gradient(to right, #0dcaf0, #0d6efd);
}

.match-players-progress .progress-medium {
    background: linear-gradient(to right, #0d6efd, #6f42c1);
}

.match-players-progress .progress-high {
    background: linear-gradient(to right, #6f42c1, #d63384);
}

.match-actions {
    margin-top: 0.75rem;
}

.small-match-card .match-actions {
    margin-top: 0.5rem;
}

.match-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    width: 100%;
    text-align: center;
}

.small-match-card .match-status-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.match-status-badge.joined {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.match-status-badge.full {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.match-action-button {
    display: block;
    padding: 0.35rem 0.45rem; /* Further reduced from 0.5rem 0.6rem */
    border-radius: 6px; /* Further reduced from 8px */
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem; /* Further reduced from 0.85rem */
    text-decoration: none;
    transition: all 0.3s ease;
}

.small-match-card .match-action-button {
    padding: 0.3rem 0.3rem; /* Further reduced from 0.4rem 0.4rem */
    font-size: 0.7rem; /* Further reduced from 0.75rem */
    border-radius: 4px; /* Further reduced from 6px */
}

.match-action-button.join {
    background-color: #0d6efd;
    color: white;
}

.match-action-button.join:hover {
    background-color: #0a58ca;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.match-action-button.cancel {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.match-action-button.cancel:hover {
    background-color: #dc3545;
    color: white;
}

.match-action-button.disabled {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    cursor: not-allowed;
}

.match-room-code {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.match-room-code-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.match-room-code-container {
    display: flex;
    align-items: center;
}

.match-room-code-value {
    flex: 1;
    background-color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    font-family: monospace;
    font-weight: 600;
    color: #212529;
}

.match-room-code-copy {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-room-code-copy:hover {
    background-color: #0a58ca;
}

.match-room-code-copy.copied {
    background-color: #198754;
}

.match-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.match-action-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.match-action-grid-item.win {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.match-action-grid-item.win:hover {
    background-color: #198754;
    color: white;
    transform: translateY(-3px);
}

.match-action-grid-item.lose {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.match-action-grid-item.lose:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-3px);
}

.match-action-grid-item.report {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.match-action-grid-item.report:hover {
    background-color: #ffc107;
    color: #212529;
    transform: translateY(-3px);
}

.match-action-grid-item.disabled {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.match-action-grid-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.match-action-grid-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status-alert {
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.match-status-alert.success {
    background-color: rgba(25, 135, 84, 0.1);
}

.match-status-alert.info {
    background-color: rgba(13, 202, 240, 0.1);
}

.match-status-alert.warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.match-status-alert-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.match-status-alert.success .match-status-alert-icon {
    background-color: #198754;
    color: white;
}

.match-status-alert.info .match-status-alert-icon {
    background-color: #0dcaf0;
    color: white;
}

.match-status-alert.warning .match-status-alert-icon {
    background-color: #ffc107;
    color: #212529;
}

.match-status-alert-content {
    flex: 1;
}

.match-status-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.match-status-alert.success .match-status-alert-title {
    color: #198754;
}

.match-status-alert.info .match-status-alert-title {
    color: #0dcaf0;
}

.match-status-alert.warning .match-status-alert-title {
    color: #ffc107;
}

.match-status-alert-message {
    font-size: 0.9rem;
    color: #6c757d;
}

.match-result-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.match-result-status.winner {
    background-color: rgba(25, 135, 84, 0.1);
}

.match-result-status.loser {
    background-color: rgba(220, 53, 69, 0.1);
}

.match-result-status.refunded {
    background-color: rgba(13, 202, 240, 0.1);
}

.match-result-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
}

.match-result-status-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.match-result-status.winner .match-result-status-icon {
    background-color: #198754;
    color: white;
}

.match-result-status.loser .match-result-status-icon {
    background-color: #dc3545;
    color: white;
}

.match-result-status.refunded .match-result-status-icon {
    background-color: #0dcaf0;
    color: white;
}

.match-result-status.pending .match-result-status-icon {
    background-color: #ffc107;
    color: #212529;
}

.match-result-status-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.match-result-status.winner .match-result-status-text {
    color: #198754;
}

.match-result-status.loser .match-result-status-text {
    color: #dc3545;
}

.match-result-status.refunded .match-result-status-text {
    color: #0dcaf0;
}

.match-result-status.pending .match-result-status-text {
    color: #ffc107;
}

.match-view-details {
    margin-top: auto;
}

.match-view-details-button {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.match-view-details-button:hover {
    background-color: #0d6efd;
    color: white;
}

.match-card-footer {
    padding: 0.4rem 0.5rem; /* Further reduced from 0.6rem 0.75rem */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    color: #6c757d;
    font-size: 0.7rem; /* Further reduced from 0.75rem */
}

.refresh-button-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.refresh-button-inner:hover {
    transform: rotate(30deg);
    background-color: #0a58ca;
}

.refresh-button-inner.refreshing {
    background-color: #198754;
}

.custom-alert {
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.custom-alert.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.custom-alert.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
}

.alert-success .alert-icon {
    background-color: #198754;
    color: white;
}

.alert-danger .alert-icon {
    background-color: #dc3545;
    color: white;
}

.alert-content {
    flex: 1;
}

.empty-state-container {
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    animation: pulse 2s infinite;
}

/* Dark Mode Matches Page */
body.dark-mode .matches-tabs {
    background-color: #2a2a2a;
}

body.dark-mode .match-card {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .match-card-header,
body.dark-mode .match-card-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .match-title {
    color: #e9ecef;
}

body.dark-mode .match-prize-container,
body.dark-mode .match-players-container,
body.dark-mode .match-room-code {
    background-color: #212529;
}

body.dark-mode .match-room-code-value {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

body.dark-mode .match-players-progress .progress {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .empty-state-container {
    background-color: #2a2a2a;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

.animated.shake {
    animation: shake 0.8s;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);}
    0% {opacity: 0; transform: scale3d(.3, .3, .3);}
    20% {transform: scale3d(1.1, 1.1, 1.1);}
    40% {transform: scale3d(.9, .9, .9);}
    60% {opacity: 1; transform: scale3d(1.03, 1.03, 1.03);}
    80% {transform: scale3d(.97, .97, .97);}
    100% {opacity: 1; transform: scale3d(1, 1, 1);}
}

.animated.bounceIn {
    animation: bounceIn 0.8s;
}

/* Wallet Page Styles */
.wallet-stats-container {
    margin-bottom: 2rem;
}

.wallet-stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.wallet-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.wallet-stat-card.balance {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
}

.wallet-stat-card.deposit {
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
}

.wallet-stat-card.withdraw {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    color: white;
}

.wallet-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.wallet-stat-card:hover .wallet-stat-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.wallet-stat-content {
    flex: 1;
}

.wallet-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.wallet-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.wallet-tabs-container {
    margin-bottom: 2rem;
}

.wallet-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.wallet-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #6c757d;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wallet-tab-item:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.wallet-tab-item.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 600;
}

.wallet-tab-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.wallet-tab-item:hover .wallet-tab-icon,
.wallet-tab-item.active .wallet-tab-icon {
    transform: scale(1.2);
}

.wallet-tab-text {
    font-size: 0.9rem;
}

.wallet-form-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.wallet-form-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.wallet-form-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-form-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.deposit-form .wallet-form-icon {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.withdraw-form .wallet-form-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.wallet-form-card:hover .wallet-form-icon {
    transform: scale(1.1);
}

.wallet-form-title {
    font-weight: 600;
    margin-bottom: 0;
}

.wallet-form-body {
    padding: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Enhanced Form Styling */
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select option {
    padding: 10px;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1.25rem 1rem;
}

.form-floating > label {
    padding: 1rem;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #0d6efd;
}

/* Dark mode form styles */
body.dark-mode .form-select,
body.dark-mode .form-control {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

body.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23adb5bd' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

body.dark-mode .form-floating > label {
    color: #adb5bd;
}

body.dark-mode .form-floating > .form-control:focus ~ label,
body.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.dark-mode .form-floating > .form-select ~ label {
    color: #0dcaf0;
}

.payment-details {
    margin-bottom: 1.5rem;
}

.payment-method-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.payment-method-image {
    text-align: center;
    margin-bottom: 1rem;
}

.payment-method-image img {
    max-height: 80px;
    max-width: 100%;
}

.payment-method-info {
    flex: 1;
}

.payment-address-container {
    margin-bottom: 1rem;
}

.payment-address-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-address-copy {
    display: flex;
    align-items: center;
}

.payment-address-copy input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: white;
    font-family: monospace;
}

.payment-address-copy .copy-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-address-copy .copy-btn:hover {
    background-color: #0a58ca;
}

.payment-address-copy .copy-btn.copied {
    background-color: #198754;
}

#payment_description_container label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#payment_description {
    margin-bottom: 0;
}

.wallet-balance-indicator {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.wallet-balance-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.wallet-balance-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.wallet-balance-value {
    font-weight: 700;
    color: #0d6efd;
}

.wallet-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wallet-submit-button.deposit {
    background-color: #198754;
    color: white;
}

.wallet-submit-button.deposit:hover {
    background-color: #157347;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.wallet-submit-button.withdraw {
    background-color: #dc3545;
    color: white;
}

.wallet-submit-button.withdraw:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.wallet-submit-icon {
    margin-right: 0.5rem;
}

.wallet-info-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.wallet-info-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.wallet-info-title {
    font-weight: 600;
    margin-bottom: 0;
}

.wallet-info-body {
    padding: 1.5rem;
}

.wallet-info-steps {
    margin-bottom: 1.5rem;
}

.wallet-info-step {
    display: flex;
    margin-bottom: 1.5rem;
}

.wallet-info-step:last-child {
    margin-bottom: 0;
}

.wallet-info-step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wallet-info-step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wallet-info-step-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.wallet-info-notice {
    display: flex;
    padding: 1.5rem;
    background-color: #fff4e5;
    border-radius: 12px;
}

.wallet-info-notice-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffc107;
    color: #212529;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wallet-info-notice-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.wallet-info-notice-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.wallet-info-notice-content li {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.wallet-info-notice-content li:last-child {
    margin-bottom: 0;
}

.transaction-history-container {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.transaction-history-header {
    margin-bottom: 1.5rem;
}

.transaction-history-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-history-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-id {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.transaction-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.transaction-method, .transaction-note {
    font-size: 0.85rem;
    color: #6c757d;
}

.transaction-meta {
    text-align: right;
    margin-left: 1rem;
}

.transaction-amount {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.transaction-amount.positive {
    color: #198754;
}

.transaction-amount.negative {
    color: #dc3545;
}

.transaction-status {
    margin-bottom: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.transaction-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Dark Mode Wallet Page */
body.dark-mode .wallet-tabs {
    background-color: #2a2a2a;
}

body.dark-mode .wallet-form-card,
body.dark-mode .wallet-info-card,
body.dark-mode .transaction-history-container {
    background-color: #2a2a2a;
}

body.dark-mode .wallet-form-header,
body.dark-mode .wallet-info-header {
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .payment-method-card,
body.dark-mode .wallet-balance-indicator,
body.dark-mode .transaction-item {
    background-color: #212529;
}

body.dark-mode .payment-address-copy input {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

body.dark-mode .form-hint,
body.dark-mode .wallet-info-step-content p,
body.dark-mode .transaction-id,
body.dark-mode .transaction-method,
body.dark-mode .transaction-note,
body.dark-mode .transaction-date {
    color: #adb5bd;
}

body.dark-mode .wallet-info-notice {
    background-color: rgba(255, 193, 7, 0.1);
}

body.dark-mode .wallet-info-notice-content h4 {
    color: #e9ecef;
}

body.dark-mode .wallet-info-notice-content li {
    color: #adb5bd;
}

/* Lobby Page Styles */
.user-profile-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.user-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.user-profile-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.user-avatar {
    margin-right: 1.5rem;
    position: relative;
}

.user-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-profile-card:hover .user-avatar img {
    transform: scale(1.05);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #212529;
}

.user-phone {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.user-balance {
    margin-left: auto;
}

.balance-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #198754, #157347);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.balance-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
    color: white;
}

.balance-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.balance-button:hover .balance-icon {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.balance-text {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.quick-link-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

/* Dark mode lobby styles */
body.dark-mode .user-profile-card {
    background-color: #2a2a2a;
}

body.dark-mode .user-name {
    color: #e9ecef;
}

body.dark-mode .user-phone {
    color: #adb5bd;
}

body.dark-mode .user-avatar img {
    border-color: #2a2a2a;
}

body.dark-mode .quick-link-card {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .quick-link-card h5 {
    color: #e9ecef;
}

body.dark-mode .quick-link-card p {
    color: #adb5bd !important;
}

body.dark-mode .quick-link-card::before {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0));
}

/* Profile Page Styles */
.profile-header h1 {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.profile-banner {
    height: 120px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -60px;
    display: flex;
    justify-content: center;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar:hover img {
    transform: scale(1.05);
}

.profile-stats {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

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

.win-rate-container .progress {
    border-radius: 50px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
}

.win-rate-container .progress-bar {
    border-radius: 50px;
    background: linear-gradient(to right, #198754, #20c997);
}

.balance-item {
    transition: all 0.3s ease;
}

.balance-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.balance-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.balance-item:hover .balance-icon {
    transform: scale(1.1);
}

.profile-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-form .input-group:focus-within {
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.profile-form .input-group-text {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-form .form-control {
    height: 50px;
}

.password-toggle {
    cursor: pointer;
    width: 50px;
}

.section-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    color: #0d6efd;
}

.image-preview-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Dark mode profile styles */
body.dark-mode .profile-card {
    background-color: #2a2a2a;
}

body.dark-mode .profile-stats,
body.dark-mode .balance-item,
body.dark-mode .image-preview-container {
    background-color: #212529 !important;
}

body.dark-mode .profile-form .input-group-text,
body.dark-mode .profile-form .form-control,
body.dark-mode .profile-form .btn-light {
    background-color: #2a2a2a !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #e9ecef;
}

body.dark-mode .stat-item:not(:last-child)::after {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .win-rate-container .progress {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Leaderboard Page Styles */
/* Modern Leaderboard Styles */
.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Leaderboard Header */
.leaderboard-header {
    margin-bottom: 2rem;
}

.trophy-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    animation: pulse 2s infinite;
}

.trophy-icon {
    font-size: 2.5rem;
    color: white;
    animation: bounce 2s infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Podium Section */
.podium-container {
    margin-bottom: 2.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.01));
    border-radius: 16px;
}

.podium-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.podium-player:hover {
    transform: translateY(-8px);
}

.position-medal {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gold-winner .position-medal {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #212529;
}

.silver-winner .position-medal {
    background: linear-gradient(135deg, #adb5bd, #ced4da);
    color: #212529;
}

.bronze-winner .position-medal {
    background: linear-gradient(135deg, #cd7f32, #b36a2b);
    color: white;
}

.player-avatar {
    position: relative;
    margin-bottom: 0.75rem;
    z-index: 1;
}

.player-avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gold-winner .player-avatar img {
    width: 80px;
    height: 80px;
}

.border-gold {
    border-color: #ffd700 !important;
}

.border-silver {
    border-color: #adb5bd !important;
}

.border-bronze {
    border-color: #cd7f32 !important;
}

.crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: float 2s ease-in-out infinite;
    z-index: 3;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-winnings {
    font-weight: 700;
    color: #198754;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.gold-winner .player-winnings {
    font-size: 1.1rem;
    color: #0d6efd;
}

.podium-block {
    width: 100%;
    height: 60px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05);
}

.gold-winner .podium-block {
    height: 80px;
    background: linear-gradient(to bottom, #ffd700, #ffc107);
}

.silver-winner .podium-block {
    height: 60px;
    background: linear-gradient(to bottom, #adb5bd, #ced4da);
}

.bronze-winner .podium-block {
    height: 40px;
    background: linear-gradient(to bottom, #cd7f32, #b36a2b);
}

.win-ratio-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Your Rank Card */
.your-rank-card {
    margin-bottom: 2rem;
}

.rank-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-container {
    position: relative;
}

.avatar-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background-color: rgba(13, 110, 253, 0.2);
}

.stat-details {
    flex: 1;
}

.stat-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

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

/* Leaderboard Table */
.leaderboard-table-container {
    margin-bottom: 2rem;
}

.leaderboard-row {
    transition: all 0.2s ease;
}

.leaderboard-row.current-user {
    background-color: rgba(13, 110, 253, 0.05);
}

.leaderboard-row.row-highlight {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffc107);
    color: #212529;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #adb5bd, #ced4da);
    color: #212529;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b36a2b);
    color: white;
}

.rank-number {
    font-weight: 600;
    color: #6c757d;
}

.user-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #0d6efd;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    overflow: hidden;
    position: relative;
}

.avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    line-height: 1.2;
}

.winnings-amount {
    color: #198754;
}

.win-rate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.win-rate-value {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(13, 110, 253, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-5px) translateX(-50%);
    }
    100% {
        transform: translateY(0) translateX(-50%);
    }
}

/* Dark mode leaderboard styles */
body.dark-mode .podium-container {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

body.dark-mode .card {
    background-color: #2a2a2a;
}

body.dark-mode .card-header.bg-white {
    background-color: #2a2a2a !important;
    color: #e9ecef;
}

body.dark-mode .table {
    color: #e9ecef;
}

body.dark-mode .table-light {
    background-color: #343a40;
    color: #e9ecef;
}

body.dark-mode .player-name {
    color: #e9ecef;
}

body.dark-mode .stat-label {
    color: #adb5bd;
}

body.dark-mode .leaderboard-row.current-user {
    background-color: rgba(13, 110, 253, 0.15);
}

body.dark-mode .leaderboard-row.row-highlight {
    background-color: rgba(13, 110, 253, 0.2);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .trophy-icon-container {
        width: 60px;
        height: 60px;
    }

    .trophy-icon {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .player-avatar img {
        width: 50px;
        height: 50px;
    }

    .gold-winner .player-avatar img {
        width: 60px;
        height: 60px;
    }

    .gold-winner .podium-block {
        height: 60px;
    }

    .silver-winner .podium-block {
        height: 45px;
    }

    .bronze-winner .podium-block {
        height: 30px;
    }
}

/* Notifications Page Styles */
.notifications-header h1 {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.notification-header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.notification-icon-wrapper {
    position: relative;
}

.notification-icon {
    transition: all 0.3s ease;
}

.list-group-item:hover .notification-icon {
    transform: scale(1.1);
}

.notification-time {
    color: #6c757d;
}

.notification-action {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.list-group-item:hover .notification-action {
    opacity: 1;
    transform: translateX(0);
}

.empty-state-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Dark mode notifications styles */
body.dark-mode .card {
    background-color: #2a2a2a;
}

body.dark-mode .list-group-item {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .list-group-item.bg-light {
    background-color: #212529 !important;
}

body.dark-mode .notification-time,
body.dark-mode .text-muted {
    color: #adb5bd !important;
}

body.dark-mode .btn-light {
    background-color: #343a40;
    border-color: #343a40;
    color: #e9ecef;
}

body.dark-mode .btn-light:hover {
    background-color: #495057;
    border-color: #495057;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.quick-link-icon {
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.activity-icon {
    transition: all 0.3s ease;
}

.list-group-item:hover .activity-icon {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animated.pulse.infinite {
    animation: pulse 2s infinite;
}

/* Modern Sidebar Styles */
.sidebar-menu {
    max-width: 320px;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 120px; /* Add more padding at the bottom to ensure content isn't cut off */
}

.sidebar-profile-section {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    padding: 1rem 0.75rem !important; /* Further reduced padding */
}

.sidebar-profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.avatar-edit-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-edit-button:hover {
    transform: scale(1.1);
    background-color: #0a58ca;
    color: white;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.sidebar-menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced gap */
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 6px 10px; /* Further reduced padding */
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2px; /* Add small margin between items */
}

.sidebar-menu-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.sidebar-menu-item.active {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    font-weight: 600;
}

.sidebar-menu-icon {
    width: 20px; /* Reduced size */
    height: 20px; /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* Reduced margin */
    font-size: 14px; /* Smaller font size */
    transition: all 0.3s ease;
}

.sidebar-menu-item:hover .sidebar-menu-icon,
.sidebar-menu-item.active .sidebar-menu-icon {
    transform: scale(1.1);
}

.sidebar-menu-text {
    flex: 1;
    font-size: 0.85rem; /* Smaller text size */
}

.sidebar-menu-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 0 6px;
}

.sidebar-menu-active-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: #0d6efd;
    border-radius: 4px 0 0 4px;
}

.sidebar-section-title {
    color: #6c757d;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.social-link.telegram {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.social-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.social-text {
    font-size: 12px;
    font-weight: 600;
}

.logout-button {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background-color: #dc3545;
    color: white;
}

@keyframes swing {
    15% {
        transform: translateX(5px);
    }
    30% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(3px);
    }
    65% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

.animated.swing {
    animation: swing 1s ease;
}

/* Dark Mode Sidebar */
body.dark-mode .sidebar-menu-item {
    color: #e9ecef;
}

body.dark-mode .sidebar-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode .sidebar-menu-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

body.dark-mode .sidebar-section-title {
    color: #adb5bd;
}

body.dark-mode .sidebar-divider {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Responsive sidebar fixes */
@media (max-width: 375px) {
    .sidebar-menu {
        max-width: 100%;
    }

    .sidebar-profile-section {
        padding: 1rem !important;
    }

    .avatar-wrapper {
        width: 70px !important;
        height: 70px !important;
    }

    .sidebar-menu-item {
        padding: 10px 12px;
    }

    .sidebar-menu-icon {
        margin-right: 8px;
    }

    .sidebar-social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-social-links .social-link {
        padding: 5px;
        margin: 2px;
    }

    /* Make social links more compact */
    .sidebar-social-links h6 {
        font-size: 0.7rem;
        margin-bottom: 5px !important;
    }

    .social-icon {
        font-size: 0.8rem !important;
    }

    .social-text {
        font-size: 0.7rem !important;
    }

    /* Reduce spacing between sections */
    .sidebar-nav-container {
        margin-bottom: 0.5rem;
    }

    .sidebar-menu-items {
        gap: 4px;
    }
}

/* Make sure contact details are visible and properly formatted */
.sidebar-contact-info {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

.sidebar-contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.sidebar-contact-info .contact-icon {
    flex-shrink: 0;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.sidebar-contact-info .contact-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .logout-button {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
}

body.dark-mode .logout-button:hover {
    background-color: #dc3545;
    color: white;
}

/* Notifications Page Styles */
.notification-icon-wrapper {
    position: relative;
}

.notification-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.list-group-item:hover .notification-icon {
    transform: scale(1.1);
}

.notification-time {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.notification-action {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.list-group-item:hover .notification-action {
    opacity: 1;
}

.empty-state-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notifications-header h1 {
    animation: fadeInDown 0.8s;
}

.notifications-header p {
    animation: fadeInUp 0.8s;
}

.notifications-header .header-line {
    animation: expandWidth 1s forwards;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* Profile Page Styles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Profile Header */
.profile-header {
    padding: 2rem 0;
}

.text-gradient {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    border-radius: 2px;
}

/* Profile Card */
.profile-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-banner {
    height: 80px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.profile-avatar-wrapper {
    margin-top: -40px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar:hover img {
    filter: blur(1px);
}

.profile-stats {
    background-color: #f8f9fa;
    border-radius: 1rem;
    padding: 1rem 0;
}

.stat-value {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.win-rate-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.win-rate-container .progress {
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.win-rate-container .progress-bar {
    transition: width 1.5s ease;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* Form Styling */
.profile-form .form-label {
    margin-bottom: 0.5rem;
    color: #495057;
}

.profile-form .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.profile-form .input-group-text {
    padding: 0.75rem 1rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(20px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInRight {
    animation-name: fadeInRight;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #121212;
        color: #f8f9fa;
    }

    body.dark-mode .card {
        background-color: #1e1e1e;
        border-color: #333;
    }

    body.dark-mode .card-header {
        background-color: #1e1e1e;
        border-color: #333;
    }

    body.dark-mode .card-footer {
        background-color: #1e1e1e;
        border-color: #333;
    }

    body.dark-mode .list-group-item {
        background-color: #1e1e1e;
        border-color: #333;
        color: #f8f9fa;
    }

    body.dark-mode .list-group-item:hover:not(.active) {
        background-color: #2a2a2a;
    }

    body.dark-mode .form-control,
    body.dark-mode .form-select {
        background-color: #2a2a2a;
        border-color: #444;
        color: #f8f9fa;
    }

    body.dark-mode .table {
        color: #f8f9fa;
    }

    body.dark-mode .table th {
        background-color: #2a2a2a;
    }

    body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * {
        color: #f8f9fa;
        background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .nav-tabs .nav-link.active {
        background-color: #1e1e1e;
        color: #86b7fe;
        border-color: #444 #444 #1e1e1e;
    }

    body.dark-mode .nav-tabs {
        border-color: #444;
    }

    body.dark-mode .profile-stats,
    body.dark-mode .win-rate-container {
        background-color: #2a2a2a;
    }

    body.dark-mode .win-rate-container .progress {
        background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .section-icon {
        background-color: rgba(13, 110, 253, 0.2);
    }

    body.dark-mode .input-group-text {
        background-color: #2a2a2a;
        border-color: #444;
        color: #f8f9fa;
    }
}
