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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    display: flex;
}

.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: #667eea;
    font-size: 1.5em;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
}

.menu-item:hover {
    background: #f3f4f6;
    border-left-color: #667eea;
}

.menu-item.active {
    background: #e0e7ff;
    border-left-color: #667eea;
    color: #667eea;
}

.menu-icon {
    font-size: 1.2em;
}

.section-content {
    display: none;
}

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

.aposta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aposta-card .time {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.aposta-card .info {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.95em;
}

.aposta-card .retorno {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.aposta-card .retorno .label {
    font-size: 0.85em;
    opacity: 0.9;
}

.aposta-card .retorno .value {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}

.conta-info {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.conta-info .field {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.conta-info .field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.conta-info .label {
    font-size: 0.85em;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.conta-info .value {
    font-size: 1.1em;
    color: #1f2937;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state div:first-child {
    font-size: 4em;
    margin-bottom: 15px;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    padding-top: 70px;
    /* Espaço para barra superior */
}

.top-bar {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 10px;
    z-index: 1000;
}

.top-bar .user-name {
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    white-space: nowrap;
}

.top-bar .btn-logout {
    background: #ef4444;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.top-bar .btn-logout:hover {
    background: #dc2626;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 20px;
}

.status-aberto {
    background: #10b981;
    color: white;
}

.status-fechado {
    background: #ef4444;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.time-option {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.time-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.time-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.time-option .time-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.time-option .time-prob {
    font-size: 0.9em;
    opacity: 0.8;
}

.retorno-estimado {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.retorno-estimado .label {
    font-size: 0.9em;
    color: #065f46;
    margin-bottom: 5px;
}

.retorno-estimado .value {
    font-size: 1.8em;
    font-weight: bold;
    color: #10b981;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.resumo-mercado {
    margin-top: 20px;
}

.resumo-mercado h3 {
    margin-bottom: 15px;
    color: #333;
}

.time-stats {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.time-stats .name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.time-stats .stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
}

.total-geral {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.total-geral .label {
    font-size: 0.9em;
    opacity: 0.9;
}

.total-geral .value {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.vencedor-badge {
    background: #fbbf24;
    color: #78350f;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

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

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px 0;
    }

    .sidebar-header {
        padding: 10px 20px;
        margin-bottom: 10px;
    }

    .sidebar-header h2 {
        font-size: 1.2em;
    }

    .menu-item {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
        padding-top: 10px;
    }

    .top-bar {
        left: 0;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-bar #userName {
        font-size: 0.9em;
    }

    .top-bar button {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .times-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .top-bar {
        height: auto;
        min-height: 60px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .times-grid {
        gap: 10px;
    }

    .time-option {
        padding: 12px;
    }
}

/* ==================== CARDS DE ESTATÍSTICAS ==================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2em;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 0.9em;
    margin-top: 5px;
}

.stat-card-blue {
    background: #dbeafe;
}

.stat-card-blue .stat-value,
.stat-card-blue .stat-label {
    color: #1e40af;
}

.stat-card-gray {
    background: #f3f4f6;
}

.stat-card-gray .stat-value {
    color: #374151;
}

.stat-card-gray .stat-label {
    color: #6b7280;
}

.stat-card-green {
    background: #d1fae5;
}

.stat-card-green .stat-value,
.stat-card-green .stat-label {
    color: #10b981;
}

.stat-card-orange {
    background: #fed7aa;
}

.stat-card-orange .stat-value,
.stat-card-orange .stat-label {
    color: #f59e0b;
}

/* ==================== BOTÕES SECUNDÁRIOS ==================== */

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-secondary:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}


