/* ==========================================
   FLOATING ACTION BUTTON (FAB)
   ========================================== */

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    
    /* --- ALTERAÇÃO AQUI --- */
    /* Fundo laranja claro e ícone escuro */
    background: #FFF3E0; /* Laranja bem claro */
    color: #D35400; /* Laranja escuro para o ícone */
    border: 2px solid #FDEBD0; /* Borda laranja sutil */
    
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    
    /* Sombra laranja */
    box-shadow: 0 8px 24px rgba(211, 84, 0, 0.3);
    
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    /* Efeito de clique mais sutil */
    background: rgba(211, 84, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.fab-button:hover {
    transform: translateY(-4px) scale(1.05);
    /* Sombra laranja mais forte no hover */
    box-shadow: 0 12px 32px rgba(211, 84, 0, 0.4);
    background: #FDEBD0; /* Laranja um pouco mais escuro no hover */
}

.fab-button:hover::before {
    width: 100%;
    height: 100%;
}

.fab-button:active {
    transform: translateY(-2px) scale(1.02);
}

.fab-button.rotate {
    transform: rotate(45deg);
}

.fab-button.rotate:hover {
    transform: rotate(45deg) translateY(-4px) scale(1.05);
}

/* Menu de Opções do FAB */
.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    border: 2px solid transparent;
}

.fab-option:hover {
    transform: translateX(-8px);
    /* --- ALTERAÇÃO AQUI --- */
    border-color: #D35400; /* Borda laranja no hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-option-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;

    /* --- ALTERAÇÃO AQUI --- */
    /* Padroniza todos os fundos para laranja claro */
    background: #FFF3E0;
    border: 1px solid #FDEBD0;
}

/* --- ALTERAÇÃO AQUI --- */
/* Nova regra para definir a cor do ícone (letra) */
.fab-option-icon i {
    color: #D35400; /* Laranja escuro */
}

/* Removemos as classes de cor específicas 
   ou garantimos que sejam sobrescritas 
*/
.fab-option-icon.client,
.fab-option-icon.revenue,
.fab-option-icon.expense {
    background: #FFF3E0; /* Garante fundo laranja claro */
}

.fab-option-text {
    font-weight: 500;
    color: var(--gray-800);
    font-size: var(--font-size-sm);
}

/* ==========================================
   MODAL DE REGISTRO RÁPIDO
   ========================================== */

.quick-add-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.quick-add-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-add-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.quick-add-modal.active .quick-add-content {
    transform: scale(1);
}

.quick-add-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.quick-add-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-add-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    
    /* --- ALTERAÇÃO AQUI --- */
    /* Padroniza o ícone do modal */
    background: #FFF3E0;
}

/* --- ALTERAÇÃO AQUI --- */
/* Nova regra para o ícone (letra) dentro do modal */
.quick-add-icon i {
    color: #D35400;
}

/* Remove as classes de cor específicas */
.quick-add-icon.client,
.quick-add-icon.revenue,
.quick-add-icon.expense {
    background: #FFF3E0; /* Garante fundo laranja claro */
}


.quick-add-title h3 {
    margin: 0;
    color: var(--dark);
    font-size: var(--font-size-2xl);
}

.quick-add-title p {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.modal-close-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    color: var(--gray-500);
    transition: all var(--transition-base);
}

.modal-close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    transform: rotate(90deg);
}

.quick-add-body {
    padding: var(--spacing-xl);
}

.quick-add-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: var(--white);
}

/* ==========================================
   FORMULÁRIO DO MODAL
   ========================================== */

.quick-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.quick-form .form-row.full {
    grid-template-columns: 1fr;
}

.quick-form .form-group {
    margin-bottom: 0;
}

.quick-form label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.quick-form input,
.quick-form select,
.quick-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: var(--white);
    font-family: var(--font-family);
}

/* --- ALTERAÇÃO AQUI --- */
/* Foco do formulário em laranja */
.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
    outline: none;
    border-color: #D35400; /* Laranja escuro */
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.quick-form .required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.quick-form .form-hint {
    display: block;
    margin-top: 4px;
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: var(--gray-200);
}

/* --- ALTERAÇÃO AQUI --- */
/* Checkbox laranja */
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D35400;
}

.checkbox-item.checked {
    background: rgba(211, 84, 0, 0.1);
    border-color: #D35400;
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(211, 84, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(211, 84, 0, 0.5);
    }
}

.fab-button.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================
   TABS NO MODAL
   ========================================== */

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
}

.modal-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    top: 2px;
}

.modal-tab:hover {
    color: var(--gray-800);
}

/* --- ALTERAÇÃO AQUI --- */
/* Cor da aba ativa laranja */
.modal-tab.active {
    color: #D35400;
    border-bottom-color: #D35400;
}

.modal-tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.modal-tab-content.active {
    display: block;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .fab-menu {
        bottom: 70px;
    }
    
    .fab-option {
        padding: 10px 16px;
    }
    
    .quick-add-content {
        max-width: 100%;
        border-radius: var(--radius-lg);
        max-height: 100vh;
    }
    
    .quick-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fab-container {
        bottom: 16px;
        right: 16px;
    }
    
    .fab-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .quick-add-header,
    .quick-add-body,
    .quick-add-footer {
        padding: var(--spacing-md);
    }
    
    .fab-option-text {
        font-size: var(--font-size-xs);
    }
}