/* Modern Dark Blue Theme CSS for Sidebar */

:root {
    /* Main colors from the image */
    --primary-dark: #00296b;
    --primary-medium: #00509d;
    --primary-light: #fdc500;
    --accent-blue: #fdc500;
    --accent-green: #00d2ff;
    --accent-purple: #8b5cf6;
    --text-light: #0000;
    --text-medium: #f8fafc;
    --text-info: rgb(222 240 13);
    --text-muted: #fdc500;


    --text-dark: #1e293b;

    /* Layout variables */
    --sidebar-width: 250px;
    --sidebar-width-collapsed: 70px;
    --header-height: 60px;
    --card-border-radius: 12px;
    --button-border-radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark) !important;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ===== HEADER STYLES ===== */
.app-header {
    height: var(--header-height);
    background-color: var(--primary-medium);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s;
    background-color: var(--primary-dark) !important;
}

.text-info {
    color: var(--text-info) !important;
}

.main-content.expanded {
    margin-left: var(--sidebar-width-collapsed);
}

/* ===== CARD STYLES ===== */
.app-card {
    background-color: var(--primary-medium);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--primary-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.app-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-light);
}

.app-card-body {
    padding: 20px;
}

/* Stat Cards */
.stat-card {
    height: var(--stat-card-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
    color: var(--text-light);
}

.stat-card .stat-label {
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* ===== TABLE STYLES ===== */
.table {
    color: var(--text-light);
    margin-bottom: 0;
}

.table thead {
    background-color: var(--primary-light);
}

.table th {
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-medium);
    border-bottom: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-color: var(--primary-light);
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* ===== FORM STYLES ===== */
.form-control,
.form-select {
    background-color: var(--primary-light);
    border: 1px solid var(--primary-light);
    color: var(--text-light);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background-color: var(--primary-dark);
    color: white !important;
}

.form-control::placeholder {
    color: var(--text-medium);
}

.input-group-text {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--text-medium);
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--button-border-radius);
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-primary-custom-reg {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    width: 100%;
}

.btn-primary-custom-reg:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-dark-primary {
    background-color: var(--primary-light);
    color: var(--text-light);
    border: none;
}

.btn-dark-primary:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* ===== BADGE STYLES ===== */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    border-radius: 20px;
}

.badge-light {
    background-color: var(--primary-light);
    color: var(--text-medium);
}

.badge-outline-success {
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    background-color: transparent;
}

.badge-outline-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    background-color: transparent;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-menu {
    background-color: var(--primary-medium);
    border: 1px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px;
}

.dropdown-menu-dark {
    background-color: var(--primary-medium);
    border: 1px solid var(--primary-light);
}

.dropdown-item {
    color: var(--text-medium);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.dropdown-item:active {
    background-color: var(--accent-blue);
    color: white;
}

.dropdown-divider {
    border-top: 1px solid var(--primary-light);
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
    color: var(--accent-blue) !important;
}

.bg-primary-custom {
    background-color: var(--accent-blue) !important;
}

/* ===== CHARTS & VISUALIZATIONS ===== */
.chart-container {
    min-height: 300px;
    position: relative;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.circular-progress .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
}

.circular-progress .label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* ===== ACTIVITY FEED ===== */
.activity-item {
    border-bottom: 1px solid var(--primary-light);
    padding: 0.75rem 0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User stats boxes */
.user-stat-box {
    background-color: var(--primary-light);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

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

.user-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 8px 0;
    color: var(--text-light);
}

.user-stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        display: none;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .app-card-body {
        padding: 15px;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .app-card {
        border-radius: 10px;
    }

    .app-card-header {
        padding: 12px 15px;
    }

    .app-card-body {
        padding: 12px;
    }
}

/* ===== MISC COMPONENTS ===== */
a {
    color: var(--accent-blue) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light) !important;
}

/* Added for the avatar and progress bars */
.avatar-group .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-medium);
    margin-left: -10px;
}

.projects-table .progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--primary-light);
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: var(--card-border-radius);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* For crisp edges on graphics */
svg,
img {
    shape-rendering: crispEdges;
}

/* Add these styles to your app.css or create a new CSS file */

/* Match Card Styling */
.match-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.team-logo {
    transition: transform 0.3s ease;
    border-radius: 50%;
    background-color: #f8f9fa;
    padding: 5px;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-logo:hover {
    transform: scale(1.1);
}

.vs-badge {
    z-index: 1;
}

.vs-badge .badge {
    font-weight: bold;
    font-size: 1rem;
}

.bookmaker-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.bookmaker-tabs .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem 0.25rem 0 0;
}

.bookmaker-tabs .nav-link.active {
    font-weight: bold;
    background-color: var(--primary-dark) !important;
}

.odds-badge {
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    font-weight: bold;
}

.place-bet-btn {
    transition: all 0.2s ease;
}

.place-bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Bet Modal Styling */
.bet-summary .card-header {
    font-weight: bold;
}

#potentialWinnings {
    font-size: 1.25rem;
    font-weight: bold;
}

/* My Bets Page Styling */
.status-badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .teams-container {
        flex-direction: row;
    }

    .vs-badge {
        margin: 1rem 0;
    }

    .team-logo {
        width: 60px;
        height: 60px;
    }

    .bookmaker-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .set_width_responsive {
        margin-top: -40px;
    }

    /* .vs-badge .badge {
        margin-right: 35px;
    } */

}


@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar.mobile-open+.main-content {
        opacity: 0.7;
        pointer-events: none;
    }
}
