* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
:root {
    --primary-color: #2e7ef7;
    --primary-hover: #1a6de8;
    --success-color: #25c26a;
    --danger-color: #f44c4c;
    --neutral-bg: #f7f9fc;
    --card-bg: #ffffff;
    --border-color: #e1e5eb;
    --text-primary: #262a30;
    --text-secondary: #6e7a8a;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction:column;
    font-family: 'Inter', sans-serif;
    background-color: var(--neutral-bg);
    color: var(--text-primary);

}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}
  
/* Global nav container */
nav.nav-container {
    width: 100%;
    background-color: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ccc;
}

/* Inner layout container */
.nav-inner-container {
    margin: 0 1.5rem;
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap; /* Helps on smaller screens without media queries */
}

/* Logo styling */
.nav-logo a {
    color: #6366f1;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Navigation links */
.nav-links ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
}

.nav-links a:hover {
    color: #4f46e5;
}

/* Right side container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Login/Logout Button */
.auth-button a {
    text-decoration: none;
}

.auth-btn {
    padding: 0.5rem 1rem;
    background-color: #6366f1;
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

.auth-btn:hover {
    background-color: #4f46e5;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #6366f1;
    transition: all 0.3s ease;
}


/* Footer Styles */
.footer {
    background-color: #f3f4f6;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.footer .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.footer span {
    color: #6b7280;
    font-size: 0.875rem;
} 



/* Mobile-specific styles */
@media (max-width: 768px) {
    nav .container {
        padding: 0 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #f3f4f6;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #374151;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Main content container */
.dashboard-container {
    width: 100%;
    padding: 1rem;
    margin: 0;
    background-color: #f3f4f6;
}


.login-panel {
    display: flex;
}


.loginPage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    background: linear-gradient(135deg, #f0f2f5, #dbe4f0);
    padding: 1rem;
}

.loginBox {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.loginTitle {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.loginForm {
    display: flex;
    flex-direction: column;
}

.formGroup {
    margin-bottom: 1.25rem;
}

.formLabel {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.formInput {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.formCheckboxGroup {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.formCheckbox {
    margin-right: 0.5rem;
}

.formCheckboxLabel {
    font-size: 0.95rem;
    color: #444;
}

.submitButton {
    background-color: #6366f1;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submitButton:hover {
    background-color: #0056b3;
}





/* START OF DASHBOARD STUFF  */

/* Dashboard Container */
.dashboard-container {
    width: 100%;
    min-height: calc(100vh - 4rem);
    padding: 1rem;
    background-color: #f3f4f6;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 0;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    height: 2rem;
}

.dashboard-title h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.filter-btn {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #e5e7eb;
}

/* Grid Layout */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    height: auto;
}

.top-section {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: 0.5rem;
    min-height: 60px;
    height: auto;
    max-height: 35vh;
    width: 100%;
    box-sizing: border-box;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.25rem;
    width: 100%;
    height: auto;
    min-height: 200px;
    box-sizing: border-box;
    max-height: 35vh;
}

.graph-widget {
    height: auto;
    min-height: 300px;
    max-height: 35vh;
}

/* Widget Styling */
.widget {
    background-color: #ffffff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    height: auto;
    min-height: 100px;
    padding: 1rem;
    max-height: 35vh;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #6b7280;
    font-size: 0.75rem;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

.widget-header span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.widget-header i:not(.settings-icon i) {
    color: #9ca3af;
    font-size: 1rem;
    background: #f3f4f6;
    padding: 0.375rem;
    border-radius: 0.25rem;
}

.widget-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.settings-icon {
    cursor: pointer;
    display: inline-flex;
}

.settings-icon i {
    font-size: 1.2rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.settings-icon:hover i {
    color: #4f46e5;
    transform: rotate(30deg);
}

/* Remove underline from settings icon link */
a.settings-icon {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.widget-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 0;
    border: none;
    height: auto;
}

/* Metric Styling */
.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.1;
    text-align: left;
}

.metric-value.negative {
    color: #dc2626;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.1;
    margin: 0;
}

.metric-change.positive {
    color: #059669;
}

.metric-change.negative {
    color: #dc2626;
}

.metric-change.positive span:first-child,
.metric-change.negative span:first-child {
    font-weight: 600;
}

.metric-change span:last-child {
    color: #6b7280;
    font-weight: normal;
}

/* Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    box-sizing: border-box;
    table-layout: auto;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 500;
    color: #374151;
    position: sticky;
    top: 0;
    z-index: 1;
}

.positive-row {
    background-color: rgba(5, 150, 105, 0.1);
}

.negative-row {
    background-color: rgba(220, 38, 38, 0.1);
}

.neutral-row {
    background-color: #f9fafb;
}

.data-table tr:hover {
    filter: brightness(0.95);
}

.expandable-row:hover {
    filter: brightness(0.95);
}

/* Graph specific styling */
.graph-widget .widget-content {
    height: auto;
    min-height: 200px;
    max-height: 30vh;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .top-section {
        grid-template-columns: 1fr;
        max-height: none;
        height: auto;
    }

    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        min-height: 200px;
        height: auto;
        max-height: 40vh;
    }

    .graph-widget {
        margin-top: 0.5rem;
        max-height: 40vh;
        height: auto;
        min-height: 250px;
    }

    .graph-widget .widget-content {
        height: auto;
        min-height: 200px;
        max-height: 35vh;
    }
}

@media (max-width: 768px) {
    .bets-section {
        flex-direction: column;
    }
    
    .bets-section .widget {
        width: 100%;
    }
    
    .todays-bet-card, .live-bet-card {
        width: 85%;
    }
}

@media (max-width: 640px) {
    .dashboard-container {
        padding: 0.5rem;
    }

    .widget-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
        max-height: 60vh;
        height: auto;
        min-height: 400px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        height: auto;
        padding: 0.5rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .graph-widget {
        max-height: 40vh;
        height: auto;
        min-height: 200px;
    }

    .graph-widget .widget-content {
        height: auto;
        min-height: 200px;
        max-height: 35vh;
    }

    .bottom-section .widget {
        padding: 0.5rem;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .todays-bet-card, .live-bet-card {
        width: 95%;
    }
}

/* Bottom Section */
.bottom-section {
    width: 100%;
    margin-top: 0.5rem;
}

.bottom-section .widget {
    height: auto;
    min-height: 100px;
    max-height: none;
    overflow: visible;
}

.bottom-section .widget-content {
    height: auto;
    min-height: 100px;
    overflow: visible;
}

/* Expandable Row Styles */
.expandable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.expandable-row:hover {
    background-color: #f3f4f6;
}

.expandable-content {
    display: none;
    background-color: #f9fafb;
}

.expandable-content.active {
    display: table-row;
}

.expandable-content td {
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
}

.fixtures-container {
    padding: 1rem;
    width: 100%;
}

.fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    width: 100%;
}

.fixture-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: #ededed;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
    z-index: 5;
    border-left: none;
}

.fixture-item::before {
    display: none;
}

.fixture-item[data-outcome="won"]::before,
.fixture-item[data-outcome="lost"]::before,
.fixture-item[data-outcome="TBD"]::before {
    display: none;
}

.fixture-teams {
    flex: 1;
    font-weight: 500;
}

.fixture-date,
.fixture-market,
.fixture-value,
.fixture-odds,
.fixture-outcome {
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Acca Info Styling */
.acca-info-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.375rem;
}

.acca-info-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.acca-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.acca-info-item {
    background-color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.acca-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.fold-size {
    font-weight: 500;
    color: #374151;
}

.stake {
    color: #6b7280;
    font-size: 0.875rem;
}

.acca-info-profit {
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
}

.acca-info-profit.positive {
    color: #059669;
}

.acca-info-profit.negative {
    color: #dc2626;
}

.hidden-row {
    display: none;
}

.show-more-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background-color: #e5e7eb;
}

.show-more-btn i {
    transition: transform 0.2s;
}

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

/* Graph Controls Styling */
.graph-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.25rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 1.25rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 0.875rem;
    width: 0.875rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6366f1;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #6366f1;
}

input:checked + .toggle-slider:before {
    transform: translateX(1.25rem);
}

/* Graph Expand Button */
.graph-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    height: 1.75rem;
    width: 1.75rem;
    margin-left: 0.25rem;
}

.graph-expand-btn:hover {
    background-color: #e5e7eb;
}

.graph-expand-btn i {
    font-size: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Graph Overlay */
.graph-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.graph-overlay.active {
    display: flex;
    opacity: 1;
}

.graph-overlay-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.graph-overlay.active .graph-overlay-content {
    transform: scale(1);
}

.graph-overlay-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.graph-overlay-body {
    flex: 1;
    padding: 1rem;
    position: relative;
}

#mainGraphExpanded {
    width: 100% !important;
    height: 100% !important;
}

/* Filter Overlay Styles */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: flex;
    opacity: 1;
}

.filter-overlay-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.filter-overlay.active .filter-overlay-content {
    transform: scale(1);
}

.filter-overlay-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-overlay-header span {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

.filter-close-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.filter-close-btn:hover {
    color: #374151;
}

.filter-overlay-body {
    padding: 1rem;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

.filter-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: #6b7280;
}

.input-group input,
.input-group select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-reset-btn,
.filter-apply-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset-btn {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

.filter-reset-btn:hover {
    background-color: #e5e7eb;
}

.filter-apply-btn {
    background-color: #6366f1;
    border: 1px solid #6366f1;
    color: white;
}

.filter-apply-btn:hover {
    background-color: #4f46e5;
}

@media (max-width: 640px) {
    .filter-overlay-content {
        width: 95%;
        margin: 1rem auto;
    }
}

/* Today's Bets Styles */
.todays-bets-section {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Today's Bets and Live Bets widget content styling */
.todays-bets-widget .widget-content,
.live-bets-widget .widget-content {
    padding: 1rem;
    height: auto;
    max-height: none;
    overflow-x: auto;
}

.todays-bets-grid, .live-bets-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
}

/* Today's Bets and Live Bets card styling */
.todays-bet-card, .live-bet-card {
    border-radius: 0.75rem;
    padding: 1rem;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: visible;
    z-index: 5;
    background-color: #ededed;
    margin-bottom: 0.5rem;
    margin-left: 0;
    border-left: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Add colored shadow for today's bet cards instead of border */
.todays-bet-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.todays-bet-card[data-outcome="won"] {
    box-shadow: inset 4px 0 0 #54da07, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.todays-bet-card[data-outcome="lost"] {
    box-shadow: inset 4px 0 0 #e50000, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.todays-bet-card[data-outcome="TBD"] {
    box-shadow: inset 4px 0 0 #eab308, 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Remove the old pseudo-element indicators */
.todays-bet-card::before, .live-bet-card::before {
    display: none;
}

.todays-bet-card[data-outcome="won"]::before,
.todays-bet-card[data-outcome="lost"]::before,
.todays-bet-card[data-outcome="TBD"]::before,
.live-bet-card[data-outcome="won"]::before,
.live-bet-card[data-outcome="lost"]::before,
.live-bet-card[data-outcome="TBD"]::before {
    display: none;
}

/* Fixture items in data table */
.fixture-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: #ededed;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
    z-index: 5;
    border-left: none;
    width: 100%;
}

/* Add colored shadows for fixture items */
.fixture-item[data-outcome="won"] {
    box-shadow: inset 4px 0 0 #54da07, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fixture-item[data-outcome="lost"] {
    box-shadow: inset 4px 0 0 #e50000, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fixture-item[data-outcome="TBD"] {
    box-shadow: inset 4px 0 0 #eab308, 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Remove the old pseudo-element indicators */
.fixture-item::before {
    display: none;
}

.fixture-item[data-outcome="won"]::before,
.fixture-item[data-outcome="lost"]::before,
.fixture-item[data-outcome="TBD"]::before {
    display: none;
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bet-time {
    color: #6b7280;
    font-size: 1rem;
}

.bet-odds {
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 500;
}

.bet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.bet-teams {
    font-weight: 500;
    font-size: 1.125rem;
    color: #111827;
}

.bet-market {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: right;
}

/* New dual-column layout for bets */
.bets-section {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.bets-section .widget {
    flex: 1;
    width: 50%;
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100px;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 1rem;
}

.next-kickoff-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.next-match-info {
    font-style: normal;
    font-weight: 500;
    color: #374151;
    margin: 0.5rem 0;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.countdown-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
    font-style: normal;
}

.countdown-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
}

@media (max-width: 768px) {
    .bets-section {
        flex-direction: column;
    }
    
    .bets-section .widget {
        width: 100%;
    }
    
    .todays-bet-card, .live-bet-card {
        width: 85%;
    }
}

@media (max-width: 640px) {
    .todays-bet-card, .live-bet-card {
        width: 95%;
    }
}

.live-bet-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.live-bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.live-minute-container {
    display: flex;
    align-items: center;
    min-width: 2.5rem;
    margin-right: 2px;
}

.live-minute {
    font-weight: 500;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.2;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-bet-teams {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    color: #111827;
    line-height: 1.1;
    margin-left: 2px;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-bet-stake {
    color: #4f46e5;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

.live-bet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.live-bet-market {
    color: #6b7280;
    font-size: 0.875rem;
}

.live-bet-stats {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.corners-stat, .cards-stat {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0;
    background: none;
    border-radius: 0;
}

.corners-stat::before {
    content: "Corners: ";
    margin-right: 2px;
}

.cards-stat::before {
    content: "";
}

.card-visual-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.visual-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 16px;
    border-radius: 1px;
    margin: 0 1px;
}

.yellow-card-icon {
    background-color: #fbbf24;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.red-card-icon {
    background-color: #ef4444;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.yellow-card-icon i, .red-card-icon i {
    display: none;
}

.card-count {
    font-weight: 500;
    margin: 0 2px;
}

.yellow-count {
    color: #8c6d1f;
}

.red-count {
    color: #9b2c2c;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: transparent;
    padding: 0;
    font-weight: 400;
    color: #777;
    font-size: 0.85rem;
}

.card-counters {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.home-cards, .away-cards {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.card-separator {
    margin: 0 0.125rem;
    color: #9ca3af;
}

.yellow-card, .red-card {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 2px;
    color: #111827;
}

.yellow-card {
    background-color: #fde68a;
}

.red-card {
    background-color: #fca5a5;
    color: white;
}

.stat-item i {
    color: #4f46e5;
}

.card-details, .corner-details {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

.stat-item:hover .card-details, 
.stat-item:hover .corner-details {
    display: block;
}

/* Remove any pulsing live indicator and animation */
.live-bet-time-indicator::after {
    display: none;
}

@keyframes pulse {
    /* Remove entire animation */
}

/* Refresh Button Styling */
.refresh-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.refresh-form {
    width: 100%;
    max-width: 200px;
}

.refresh-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.refresh-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

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

.refresh-btn i {
    font-size: 0.875rem;
}

/* Add these styles to the CSS section (inside the style tag) */
/* Toggle Switch Styling */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.25rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 1.25rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 0.875rem;
    width: 0.875rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #6366f1;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #6366f1;
}

input:checked + .toggle-slider:before {
    transform: translateX(1.25rem);
}


/* END OF DASHBOARD STUFF  */






/* START OF ADD BET PAGE */

.app-container {
    background-color: var(--neutral-bg);
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 18px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 16px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-select, .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 126, 247, 0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Update button styles to be fully colored */
.btn-outline-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-outline-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.btn-outline-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: #ffffff;
}

.btn-outline-danger:hover {
    background-color: #e13e3e;
    border-color: #e13e3e;
    color: #ffffff;
}

.btn-outline-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-outline-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #ffffff;
}

/* Fix alignment for acca config row */
.acca-config {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
}

.acca-config .form-label {
    margin-bottom: 8px;
}

.acca-config .remove-acca-config {
    height: 48px;
    margin-bottom: 0;
}



/* Updates to form layout */
.input-container > div {
    margin-bottom: 12px;
}

.input-container .form-label {
    margin-bottom: 8px;
}

/* Bet rows styling */
.input-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px;
    margin: 16px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.input-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}






@media (min-width: 768px) {
    .input-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 12px;
    }
    
    /* Set the ratio for fixture search : bet type : odds : remove button */
    .input-container .input-card {
        flex: 2;
        min-width: 0; /* Allows truncating rather than overflow */
    }

    .input-container .input-card.half-width{
        flex: 1;
    }
    
    .input-container .bet-type-container {
        flex: 2;
        min-width: 0;
    }
    
    .input-container .odds-container {
        flex: 2;
        min-width: 0;
    }
    
    .input-container .remove-btn-container {
        flex: 0.5 1 0;
        width: 48px;
    }
    
    .remove-row {
        width: 48px;
        padding: 0;
        justify-content: center;
    }
}

.input-container input,
.input-container select,
.input-container .dropdown {
    width: 100%;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .input-container input,
    .input-container select,
    .input-container .dropdown {
        flex: 1;
    }
}

.remove-btn-container {
    flex: 0.5 0.5 0;
}


.remove-row {
    width: 100%;
    height: 48px;
}



.action-button {
    display: block;
    width: 100%;
    height: 54px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-menu.fixture-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--card-bg);
    z-index: 1050;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 0;
}

.dropdown-menu.fixture-results.show {
    display: block;
}

.dropdown-item {
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--neutral-bg);
}

/* Card element styling */
.input-card {
    position: relative;
    flex: 1 1 0;
    min-width: 220px;
}

.input-container .input-card .half-width{
    flex: 2.5 1 0;
}

.fixture-search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
}


/* Badge styling */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Confirmation modal styling */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

/* Game card in confirmation modal */
.game-card {
    background-color: var(--neutral-bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    font-size: 0.9rem;
}






/* Following stuff is for reusable input boxes */
/* === Base === */
.input { width: 100%; }
.input-field { position: relative; }

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 0.95rem;
}

/* input or select share padding-left for icon room */
/* .input-control { padding-left: 40px !important; } */

/* Shared flyout (used by SEARCH variant) */
.input-results {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  display: none;                 /* toggle with .is-open */
  max-height: 300px;
  overflow-y: auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(15,23,42,.08);
  z-index: 1050;
  padding: 6px 0;
  overscroll-behavior: contain;
}
.input-results.is-open { display: block; }

.input-item {
  display: block;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
  
}
.input-item:hover,
.input-item:focus { background-color: #f3f4f6; }

/* === Variants === */


.input-field:has(.input-icon) .input-control { padding-left: 40px !important; }


.add-row-button{
    width: 25%;
}

@media (max-width: 768px) {
    .add-row-button{
        width: 50%;
    }
}


/* END OF INPUT BOXES CSS */




/* END OF ADD BET PAGE */
