/**
 * LOUD MISSION PLANNER STYLE - Estilos para Planejador de Missões
 */

/* ── BOTÃO DE MISSÕES ── */
.loud-mission-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.loud-mission-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

/* ── MODAL DE MISSÕES ── */
.loud-mission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fade-in 0.3s ease;
}

.loud-mission-container {
    background: linear-gradient(135deg, #16161a, #1c1c21);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slide-up 0.3s ease;
}

/* ── HEADER ── */
.loud-mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    position: sticky;
    top: 0;
}

.loud-mission-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #3b82f6;
    margin: 0;
    letter-spacing: 2px;
}

.loud-mission-close {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    color: #3b82f6;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loud-mission-close:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* ── TABS ── */
.loud-mission-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    background: rgba(59, 130, 246, 0.05);
}

.loud-mission-tab {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: #6b6b7a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    font-family: 'DM Sans', sans-serif;
}

.loud-mission-tab:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.loud-mission-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* ── TAB CONTENT ── */
.loud-mission-tab-content {
    display: none;
    padding: 24px;
    animation: fade-in 0.3s ease;
}

.loud-mission-tab-content.active {
    display: block;
}

.loud-mission-tab-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #f0f0f4;
    margin: 0 0 16px 0;
    letter-spacing: 1px;
}

/* ── FORM ── */
.loud-mission-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loud-mission-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loud-mission-field label {
    font-weight: 600;
    color: #f0f0f4;
    font-size: 0.95rem;
}

.loud-mission-input,
.loud-mission-select {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #f0f0f4;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.loud-mission-input:focus,
.loud-mission-select:focus {
    outline: none;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.loud-mission-select option {
    background: #16161a;
    color: #f0f0f4;
}

/* ── BOTÕES ── */
.loud-mission-btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
}

.loud-mission-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ── RESULTADO ── */
.loud-mission-result {
    margin-top: 16px;
    min-height: 20px;
}

.loud-mission-success {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.loud-mission-success h3 {
    margin: 0 0 12px 0;
    color: #3b82f6;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

.loud-mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.loud-mission-stat {
    background: rgba(59, 130, 246, 0.15);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.loud-mission-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b6b7a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.loud-mission-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #3b82f6;
}

.loud-mission-message {
    margin: 0;
    color: #d4eaf7;
    font-size: 0.95rem;
    text-align: center;
}

.loud-mission-error {
    color: #ef476f;
    font-weight: 700;
}

/* ── PROGRESSO ── */
.loud-mission-progress {
    margin-top: 16px;
}

.loud-mission-progress-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.loud-mission-progress-card h3 {
    margin: 0 0 12px 0;
    color: #3b82f6;
    font-size: 1.1rem;
}

.loud-mission-progress-card p {
    margin: 8px 0;
    color: #d4eaf7;
    font-size: 0.95rem;
}

.loud-mission-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.loud-mission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.8));
    transition: width 0.5s ease;
}

.loud-mission-daily-goal {
    background: rgba(59, 130, 246, 0.15);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0;
}

/* ── SIMULADOS ── */
.loud-mission-info {
    color: #6b6b7a;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.loud-mission-simulados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.loud-mission-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loud-mission-checkbox:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
}

.loud-mission-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.loud-mission-checkbox span {
    color: #f0f0f4;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── NOTIFICAÇÃO ── */
.loud-mission-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    z-index: 1000;
    animation: slide-in-right 0.4s ease;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
    max-width: 300px;
}

.loud-mission-notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #d4eaf7;
    font-weight: 600;
}

.loud-mission-notification-content button {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.loud-mission-notification-content button:hover {
    transform: scale(1.2);
}

.loud-mission-notification-hide {
    animation: slide-out-right 0.3s ease forwards;
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 600px) {
    .loud-mission-container {
        width: 95%;
        max-height: 90vh;
    }

    .loud-mission-stats {
        grid-template-columns: 1fr;
    }

    .loud-mission-simulados {
        grid-template-columns: 1fr;
    }

    .loud-mission-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
