/* ============================================
   🎨 WARMUPZAP DASHBOARD - CSS MELHORADO
   Substitui o dashboard.css atual
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF3 100%);
    color: #1f2937;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== VARIÁVEIS ===== */
:root {
    --primary: #FF6A00;
    --primary-dark: #E65C00;
    --secondary: #FFB800;
    --success: #00c06f;
    --success-dark: #00a85f;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --dark: #0d1117;
    --light: #f9fafb;
    --text: #1f2937;
    --gray: #6b7280;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   🎯 HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, #0d1117 0%, #1a1a1a 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary);
}

header h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    color: white;
}

header h1 span {
    color: var(--primary);
}

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-nav .btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.header-nav .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.5);
}

.header-nav .btn.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.header-nav .btn.outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-logout {
    background: var(--danger) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-logout:hover {
    background: var(--danger-dark) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5) !important;
}

/* ============================================
   📊 MAIN DASHBOARD
   ============================================ */
main.dashboard {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 25px;
}

/* ============================================
   📢 ÁREA DE AVISOS (DESTAQUE)
   ============================================ */
.announcements-section {
    background: linear-gradient(135deg, #FF6A00 0%, #FFB800 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease;
}

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

.announcements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.announcements-section > * {
    position: relative;
    z-index: 2;
}

.announcements-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.announcement-item h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-item p {
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.announcement-date {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

/* Badge de tipo de aviso */
.announcement-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-badge.info {
    background: #3b82f6;
    color: white;
}

.announcement-badge.success {
    background: #10b981;
    color: white;
}

.announcement-badge.warning {
    background: #f59e0b;
    color: white;
}

.announcement-badge.update {
    background: #8b5cf6;
    color: white;
}

/* ============================================
   💳 CARDS
   ============================================ */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

/* ============================================
   📋 PLANO ATUAL
   ============================================ */
.plan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.plan-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.plan-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.plan-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 5px;
}

/* Badge no plano */
.badge {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* ============================================
   📱 NÚMEROS CADASTRADOS
   ============================================ */
.numbers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.numbers-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    max-width: 500px;
}

.numbers-actions input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.numbers-actions input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.numbers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbers-list li {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.numbers-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

/* ============================================
   🎯 BOTÕES
   ============================================ */
button,
.btn {
    display: inline-block;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 192, 111, 0.3);
}

button:hover,
.btn:hover {
    background: var(--success-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 192, 111, 0.45);
}

button:active,
.btn:active {
    transform: translateY(-1px);
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn.small.danger {
    background: var(--danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn.small.danger:hover {
    background: var(--danger-dark);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

#downloadBtn {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

#downloadBtn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.5);
}

/* ============================================
   🔔 MODAIS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.modal-content ol {
    text-align: left;
    line-height: 1.8;
    margin-top: 15px;
    padding-left: 25px;
}

.modal-content ol li {
    margin-bottom: 15px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border);
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.modal-content label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-top: 15px;
    margin-bottom: 5px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.confirm-message {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin: 20px 0;
}

/* ============================================
   🍞 TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 250;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ⚠️ MENSAGENS DE ERRO
   ============================================ */
#editErrorMsg,
#addErrorMsg {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ff9800;
    color: #cc5200;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 12px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   🦶 FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    font-size: 0.95rem;
    margin-top: auto;
    border-top: 3px solid var(--primary);
    font-weight: 600;
}

/* ============================================
   📱 RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }

    .header-nav .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    main.dashboard {
        margin: 25px auto;
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    .plan-info-grid {
        grid-template-columns: 1fr;
    }

    .numbers-header {
        flex-direction: column;
        align-items: stretch;
    }

    .numbers-actions {
        max-width: 100%;
        flex-direction: column;
    }

    .numbers-actions input {
        width: 100%;
    }

    .modal-content {
        padding: 25px;
        max-width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }

    .announcements-section {
        padding: 20px;
    }
}

/* ============================================
   🎯 UTILITÁRIOS
   ============================================ */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   ✨ FIM DO CSS
   ============================================ */