/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #0b0b17;
    color: #d4d4e0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    overflow-x: hidden;
}
/* Time */
.team-slot {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #2a2a44;
    transition: all 0.3s;
}
.team-slot:hover {
    border-color: #f7b731;
    background: #1f1f35;
}
.team-slot .slot-number {
    background: #2a2a44;
    color: #f7b731;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Checkboxes do time */
.team-check {
    accent-color: #f7b731;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-check-label {
    cursor: pointer;
}
.form-check-label:hover {
    color: #f7b731;
}
/* ===== BARRA SUPERIOR ===== */
.top-bar {
    background: #15152a;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #2a2a44;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 62px;
}
.top-bar .left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-bar .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #f7b731;
    object-fit: cover;
    background: #2a2a44;
}
.top-bar .username {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.top-bar .resources {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
}
.top-bar .resources span {
    background: rgba(255,255,255,0.05);
    padding: 2px 14px;
    border-radius: 20px;
    color: #e0e0f0;
}
.top-bar .resources i {
    margin-right: 5px;
    color: #f7b731;
}
.top-bar .level-exp {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-bar .level-badge {
    background: #f7b731;
    color: #0b0b17;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.top-bar .exp-bar {
    width: 150px;
    height: 16px;
    background: #2a2a44;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.top-bar .exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #43e97b, #38f9d7);
    border-radius: 12px;
    width: 0%;
}
.top-bar .exp-text {
    position: absolute;
    right: 8px;
    top: 0;
    font-size: 0.65rem;
    line-height: 16px;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
    font-weight: 500;
}
.top-bar .quick-actions {
    display: flex;
    gap: 6px;
}
.top-bar .quick-actions .btn {
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #b0b0c8;
    font-size: 1rem;
}
.top-bar .quick-actions .btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 62px);
}

/* ===== MENU LATERAL ===== */
.sidebar {
    width: 200px;
    background: #111125;
    border-right: 2px solid #1f1f35;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}
.sidebar .nav-link {
    color: #a0a0b8;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}
.sidebar .nav-link i {
    font-size: 1.3rem;
    width: 26px;
    text-align: center;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255,255,255,0.04);
    border-left-color: #f7b731;
}
.sidebar .nav-link.active {
    font-weight: 500;
}

/* ===== ÁREA DE CONTEÚDO ===== */
.content-area {
    flex: 1;
    padding: 25px 30px;
    background: #0b0b17;
    overflow-y: auto;
}

/* ===== CARDS ===== */
.card-game {
    background: #15152a;
    border: 1px solid #252540;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.card-game .card-title {
    color: #f7b731;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-game .card-title i {
    font-size: 1.3rem;
}

/* Missões */
.mission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1f1f35;
}
.mission-item:last-child {
    border-bottom: none;
}
.mission-item .badge {
    font-size: 0.75rem;
    padding: 4px 12px;
}
.badge.bg-success {
    background-color: #28a745 !important;
}
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #111125 !important;
}
.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Progresso */
.progress {
    background-color: #252540;
    border-radius: 10px;
    height: 8px;
}
.progress-bar {
    border-radius: 10px;
}

/* ===== BOTÃO RANKING FLUTUANTE ===== */

.monster-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.monster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
.team-slot {
    background: #1f1f35;
    border-radius: 8px;
}
.gacha-box {
    transition: transform 0.3s, box-shadow 0.3s;
}
.gacha-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}
.gacha-result-item {
    animation: fadeInLeft 0.5s ease;
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.ranking-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}
.ranking-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    border-radius: 50%;
    color: #0b0b17;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(255, 210, 0, 0.3);
    transition: transform 0.2s;
    text-decoration: none;
}
.ranking-float a:hover {
    transform: scale(1.08);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar .nav-link span {
        display: none;
    }
    .sidebar .nav-link {
        justify-content: center;
        padding: 12px 0;
        gap: 0;
    }
    .sidebar .nav-link i {
        font-size: 1.5rem;
        width: auto;
    }
    .content-area {
        padding: 15px;
    }
    .top-bar .resources {
        gap: 10px;
        font-size: 0.8rem;
    }
    .top-bar .exp-bar {
        width: 100px;
    }
}
@media (max-width: 576px) {
    .top-bar .level-exp .level-badge {
        font-size: 0.7rem;
        padding: 1px 8px;
    }
    .top-bar .exp-bar {
        width: 70px;
    }
    .top-bar .resources span {
        padding: 1px 8px;
        font-size: 0.7rem;
    }
    .top-bar .quick-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .ranking-float a {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
}

.sidebar .nav-link.text-danger {
    color: #ff6b6b !important;
    margin-top: 20px;
    border-top: 1px solid #2a2a44;
}
.sidebar .nav-link.text-danger:hover {
    background: rgba(255,0,0,0.08);
    color: #ff0000 !important;
}