/* Variáveis CSS */
:root {
    --primary-color: #ffc107;
    --secondary-color: #212529;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    padding-top: 76px;
}

/* Header */
.navbar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%) !important;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 2px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.user-info {
    background: rgba(255, 193, 7, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 76px);
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    padding: 4rem 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    border-color: var(--primary-color);
}

.card-header {
    background: linear-gradient(90deg, #343a40 0%, #495057 100%);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Sports List */
.list-group-item {
    background: transparent;
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffffff;
    transition: var(--transition);
}

.list-group-item:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--primary-color);
}

.list-group-item.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.list-group-item i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Matches */
.matches-container {
    display: grid;
    gap: 1rem;
}

.match-card {
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.match-card:hover {
    background: linear-gradient(145deg, #3a3a4e 0%, #2e2e3e 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.team-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary-color);
}

.match-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.odds-btn {
    background: linear-gradient(145deg, #3a3a4e 0%, #2e2e3e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.odds-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.odds-btn .odds-label {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.odds-btn .odds-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* Bet Slip */
.bet-slip {
    position: fixed;
    right: -400px;
    top: 76px;
    width: 380px;
    height: calc(100vh - 76px);
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.bet-slip.open {
    right: 0;
}

.bet-slip-header {
    background: linear-gradient(90deg, #343a40 0%, #495057 100%);
    padding: 1rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-slip-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.bet-slip-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.bet-slip-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Bet Item */
.bet-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.bet-item .remove-bet {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.bet-item .remove-bet:hover {
    color: #ff6b6b;
}

/* Casino Games */
.casino-game-card {
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.casino-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.casino-game-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.casino-game-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

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

.btn-warning {
    background: linear-gradient(145deg, #ffc107 0%, #e0a800 100%);
    color: var(--secondary-color);
}

.btn-success {
    background: linear-gradient(145deg, #28a745 0%, #1e7e34 100%);
}

.btn-danger {
    background: linear-gradient(145deg, #dc3545 0%, #c82333 100%);
}

.btn-outline-warning {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: var(--border-radius);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Badges */
.badge {
    border-radius: 15px;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Modal */
.modal-content {
    background: linear-gradient(145deg, #2a2a3e 0%, #1e1e2e 100%);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.modal-header {
    background: linear-gradient(90deg, #343a40 0%, #495057 100%);
    border-bottom: 2px solid var(--primary-color);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .bet-slip {
        width: 100%;
        right: -100%;
    }
    
    .match-odds {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .matches-container {
        grid-template-columns: 1fr;
    }
    
    .casino-game-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .bet-slip-toggle {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Utilities */
.text-orange {
    color: #fd7e14 !important;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}