/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
}

.container-fluid {
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    min-width: 320px;
    background: linear-gradient(180deg, #1a1a1a 0%, #151515 100%);
    border-right: 1px solid #2a2a2a;
    overflow: hidden;
}

.search-container {
    border-bottom: 1px solid #2a2a2a;
}

.search-box {
    width: 100%;
}

.search-input {
    padding-left: 45px !important;
    background: #252525 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #00ff88 !important;
    background: #2a2a2a !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.search-input::placeholder {
    color: #666;
}

.search-icon {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.providers-list {
    padding: 10px;
}

.providers-list::-webkit-scrollbar {
    width: 6px;
}

.providers-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.providers-list::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.providers-list::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.provider-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #252525;
}

.provider-item:hover {
    background: #2a2a2a;
}

.provider-item.active {
    background: #00ff88;
    color: #000000;
}

.provider-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: #00ff88;
    border-radius: 3px 0 0 3px;
}

.provider-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 12px;
    background: #1a1a1a;
    color: #ffffff;
    flex-shrink: 0;
}

.provider-item.active .provider-logo {
    background: #000000;
    color: #00ff88;
}

.provider-name {
    font-size: 14px;
    font-weight: 500;
}

.provider-count {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 8px;
}

/* Main Content Styles */
.main-content {
    background: #0f0f0f;
}

.filters-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.filters-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-icon-svg {
    color: #00ff88;
    flex-shrink: 0;
}

.filters-title {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    letter-spacing: -0.3px;
}

.filters-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    font-weight: 400;
}

.filters-controls {
    width: 100%;
}

.filters-row {
    align-items: flex-end;
}

.btn-statistics {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
    color: #000000 !important;
    border: none !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-statistics::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-statistics:hover::before {
    left: 100%;
}

.btn-statistics:hover {
    background: linear-gradient(135deg, #00cc6a 0%, #00aa55 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    color: #000000 !important;
}

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

.btn-statistics svg {
    stroke-width: 2.5;
}

.filter-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #2a2a2a, transparent);
    opacity: 0.5;
}

.toggle-container {
    padding: 4px 0;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
}

.hash-symbol {
    color: #00ff88;
    font-weight: 700;
    font-size: 15px;
    font-family: monospace;
}

.toggle-label {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: #2a2a2a;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.toggle-switch:hover {
    border-color: #3a3a3a;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.toggle-switch::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    left: 26px;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.5);
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-label-modern {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    margin-bottom: 8px;
}

.dropdown-modern {
    position: relative;
    display: inline-block;
}

.dropdown-select-modern {
    background: #252525 !important;
    border: 1.5px solid #2a2a2a !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 14px;
    min-width: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 40px 12px 16px !important;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
}

.dropdown-select-modern:hover {
    border-color: #3a3a3a !important;
    background: #2a2a2a !important;
}

.dropdown-select-modern:focus {
    border-color: #00ff88 !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1) !important;
    background: #2a2a2a !important;
    color: #ffffff !important;
    outline: none;
}

.dropdown-select-modern option {
    background: #252525;
    color: #ffffff;
    padding: 12px;
}

.dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.dropdown-modern:hover .dropdown-arrow {
    color: #00ff88;
}

.dropdown-select-modern:focus + .dropdown-arrow {
    color: #00ff88;
    transform: translateY(-50%) rotate(180deg);
}

/* Responsive for filters */
@media (max-width: 992px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 20px !important;
    }

    .filter-divider {
        display: none;
    }

    .btn-statistics {
        width: 100%;
        justify-content: center;
    }

    .toggle-container {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-group {
        width: 100%;
        flex-direction: column;
    }

    .dropdown-wrapper {
        width: 100%;
    }

    .dropdown-select-modern {
        width: 100%;
        min-width: 100%;
    }
}

/* Bets Grid (Flex) */
.bets-grid {
    align-content: flex-start;
}

.bets-grid::-webkit-scrollbar {
    width: 8px;
}

.bets-grid::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.bets-grid::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.bets-grid::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.bet-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a !important;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 0 calc(50% - 12px);
    min-width: 400px;
    max-width: calc(50% - 12px);
}

.bet-card:hover {
    border-color: #3a3a3a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bet-date {
    font-size: 12px;
    color: #888;
}

.bet-provider-name {
    font-size: 14px;
    font-weight: 600;
    color: #00ff88;
}

.bet-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    background: #252525;
    color: #ffffff;
    flex-shrink: 0;
}

.bet-event {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.bet-proposition {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
    padding: 8px 12px;
    background: #252525;
    border-radius: 8px;
    display: inline-block;

    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.bet-proposition.highlighted {
    background: #00aaff;
    color: #ffffff;
}

.bet-odds {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
}

/* Responsive */
@media (max-width: 1200px) {
    .bet-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 350px;
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 992px) {
    .bet-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: 300px;
    }

    .filters-section {
        padding: 20px 24px;
        margin: 16px !important;
    }

    .bet-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
