/* assets/css/style.css - 1xBet Inspired Design */
:root {
    --bg-primary: #0A0C0F;
    --bg-secondary: #1A1D23;
    --bg-card: #242731;
    --accent-orange: #F8981D;
    --accent-orange-dark: #E07F0C;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: #2F3540;
    --success-green: #10B981;
    --danger-red: #EF4444;
    --info-blue: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo h2 {
    color: var(--accent-orange);
    font-size: 24px;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav-item {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background-color: rgba(248, 152, 29, 0.1);
    color: var(--accent-orange);
    border-left: 3px solid var(--accent-orange);
}

.sidebar-nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 24px;
}

/* Top Header */
.top-header {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.balance-widget {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* Match Cards */
.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    flex-wrap: wrap;
    gap: 20px;
}

.team-display {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.team-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--accent-orange);
}

.team-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.vs-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
}

/* Odds Buttons */
.odds-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.odds-box {
    text-align: center;
    min-width: 80px;
}

.odds-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.back-odds {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--info-blue);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--info-blue);
    transition: all 0.2s;
}

.back-odds:hover {
    background-color: var(--info-blue);
    color: white;
}

.lay-odds {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-red);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--danger-red);
}

.lay-odds:hover {
    background-color: var(--danger-red);
    color: white;
}

/* Fancy Market Cards */
.fancy-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.fancy-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.fancy-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fancy-option {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fancy-yes {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-green);
}

.fancy-yes:hover {
    background-color: var(--success-green);
}

.fancy-no {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-red);
}

.fancy-no:hover {
    background-color: var(--danger-red);
}

.fancy-odds {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* Bet Slip */
.bet-slip {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 24px;
}

.bet-slip-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-orange);
}

.bet-slip-stake input {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    color: white;
    margin-top: 8px;
}

.btn-place-bet {
    width: 100%;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin: 16px 0;
}

.btn-place-bet:hover {
    background-color: var(--accent-orange-dark);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending { background-color: #F59E0B; color: black; }
.status-won { background-color: var(--success-green); color: white; }
.status-lost { background-color: var(--danger-red); color: white; }
.status-cancelled { background-color: var(--text-muted); color: white; }

/* Flash Animation */
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; background-color: var(--accent-orange); }
}

.flash {
    animation: flash 0.5s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .match-card {
        flex-direction: column;
        text-align: center;
    }
    
    .team-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .odds-container {
        width: 100%;
    }
    
    .top-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }