/**
 * ============================================
 * 📅 ELITE EDIT MONTHLY EXPENSE MODAL - FULL SCREEN
 * Apple-Inspired Premium Design + Dark/Light Theme
 * ============================================
 */

/* ===================================
   OVERLAY FULL-SCREEN
=================================== */

.elite-edit-monthly-overlay {
    position: fixed;
    inset: 0;
    z-index: 10100;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.6s ease;
}

/* Tema Escuro (padrão) */
.elite-edit-monthly-overlay {
    background: linear-gradient(135deg,
        rgba(10, 10, 25, 0.98) 0%,
        rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
}

/* Tema Claro */
.elite-edit-monthly-overlay.light-theme {
    background: linear-gradient(135deg,
        rgba(250, 250, 252, 0.98) 0%,
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.elite-edit-monthly-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Close Button (Top Right) */
.elite-edit-monthly-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #F5F5F7;
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

.elite-edit-monthly-close:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #6366f1;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.elite-edit-monthly-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===================================
   MAIN CONTENT CONTAINER
=================================== */

.elite-edit-monthly-content {
    max-width: 550px;
    width: 90%;
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 60px 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(99, 102, 241, 0.15);

    animation: elite-edit-monthly-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    position: relative;
    overflow-y: auto;
    max-height: 90vh;

    /* Scrollbar invisível */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.elite-edit-monthly-content::-webkit-scrollbar {
    display: none;
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
                0 0 100px rgba(99, 102, 241, 0.08);
}

@keyframes elite-edit-monthly-slide-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glow Effect Decorativo */
.elite-edit-monthly-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: elite-edit-monthly-glow-rotate 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-content::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
}

@keyframes elite-edit-monthly-glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   HEADER / ICON
=================================== */

.elite-edit-monthly-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.elite-edit-monthly-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4),
                inset 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-icon {
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3),
                inset 0 -5px 20px rgba(0, 0, 0, 0.15);
}

/* Ícone principal - Documento com lápis */
.elite-edit-monthly-icon .icon-main {
    font-size: 3rem;
    color: #fff;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Ícone secundário - Lápis pequeno no canto */
.elite-edit-monthly-icon .icon-edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.2),
                inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: elite-edit-monthly-pulse-edit 2s ease-in-out infinite;
}

/* Partículas decorativas */
.elite-edit-monthly-icon .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    animation: elite-edit-monthly-particles 3s ease-in-out infinite;
    z-index: 4;
}

.elite-edit-monthly-icon .particle:nth-child(1) {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.elite-edit-monthly-icon .particle:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 0.5s;
}

.elite-edit-monthly-icon .particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
}

.elite-edit-monthly-icon .particle:nth-child(4) {
    bottom: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

/* Anel decorativo externo */
.elite-edit-monthly-icon::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: elite-edit-monthly-ring-rotate 8s linear infinite;
    z-index: 0;
}

/* Anel decorativo interno */
.elite-edit-monthly-icon::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: elite-edit-monthly-ring-rotate 6s linear infinite reverse;
    z-index: 1;
}

@keyframes elite-edit-monthly-pulse-edit {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
    }
}

@keyframes elite-edit-monthly-particles {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes elite-edit-monthly-ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.elite-edit-monthly-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #F5F5F7;
    text-align: center;
    letter-spacing: -0.5px;
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-title {
    color: #1D1D1F;
}

/* ===================================
   FORM
=================================== */

.elite-edit-monthly-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.elite-edit-monthly-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-edit-monthly-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(245, 245, 247, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-label {
    color: rgba(29, 29, 31, 0.85);
}

.elite-edit-monthly-label i {
    font-size: 1rem;
    color: #6366f1;
}

.elite-edit-monthly-input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #F5F5F7;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

.elite-edit-monthly-input:focus {
    outline: none;
    background: rgba(99, 102, 241, 0.08);
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-input:focus {
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.elite-edit-monthly-input::placeholder {
    color: rgba(245, 245, 247, 0.4);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-input::placeholder {
    color: rgba(29, 29, 31, 0.3);
}

/* ===================================
   ACTION BUTTONS
=================================== */

.elite-edit-monthly-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.elite-edit-monthly-btn {
    flex: 1;
    padding: 18px 32px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

/* Botão CANCELAR */
.elite-edit-monthly-btn-cancel {
    background: rgba(99, 99, 102, 0.15);
    border: 1px solid rgba(99, 99, 102, 0.3);
    color: #F5F5F7;
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-btn-cancel {
    background: rgba(99, 99, 102, 0.08);
    border-color: rgba(99, 99, 102, 0.2);
    color: #1D1D1F;
}

.elite-edit-monthly-btn-cancel:hover {
    background: rgba(99, 99, 102, 0.25);
    border-color: rgba(99, 99, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 99, 102, 0.2);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-btn-cancel:hover {
    background: rgba(99, 99, 102, 0.15);
    border-color: rgba(99, 99, 102, 0.35);
    box-shadow: 0 8px 20px rgba(99, 99, 102, 0.15);
}

.elite-edit-monthly-btn-cancel:active {
    transform: translateY(0) scale(0.98);
}

/* Botão SALVAR */
.elite-edit-monthly-btn-save {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-btn-save {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
}

.elite-edit-monthly-btn-save:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.elite-edit-monthly-overlay.light-theme .elite-edit-monthly-btn-save:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.elite-edit-monthly-btn-save:active {
    transform: translateY(0) scale(0.98);
}

/* Glow effect no botão salvar */
.elite-edit-monthly-btn-save::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elite-edit-monthly-btn-save:hover::before {
    opacity: 1;
    animation: elite-edit-monthly-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes elite-edit-monthly-glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 640px) {
    .elite-edit-monthly-content {
        padding: 48px 32px;
    }

    .elite-edit-monthly-icon {
        width: 100px;
        height: 100px;
    }

    .elite-edit-monthly-icon .icon-main {
        font-size: 2.5rem;
    }

    .elite-edit-monthly-icon .icon-edit {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
        bottom: 5px;
        right: 5px;
    }

    .elite-edit-monthly-icon .particle {
        width: 6px;
        height: 6px;
    }

    .elite-edit-monthly-icon::before {
        width: 120px;
        height: 120px;
    }

    .elite-edit-monthly-icon::after {
        width: 90px;
        height: 90px;
    }

    .elite-edit-monthly-title {
        font-size: 1.5rem;
    }

    .elite-edit-monthly-actions {
        flex-direction: column;
    }

    .elite-edit-monthly-btn {
        width: 100%;
    }
}
