/* ===== MODAIS PROFISSIONAIS - SISTEMA MODERNO ===== */

/* CSS Custom Properties para Modais */
:root {
    /* Cores do Modal */
    --modal-bg: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.6);
    --modal-border: #e5e7eb;
    --modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Dimensões */
    --modal-border-radius: 20px;
    --modal-padding: 32px;
    --modal-header-height: 80px;
    
    /* Animações */
    --modal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay do Modal */
.modal-overlay-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--modal-transition);
}

.modal-overlay-modern.show {
    opacity: 1;
    visibility: visible;
}

/* Container do Modal */
.modal-container-modern {
    background: var(--modal-bg);
    border-radius: var(--modal-border-radius);
    box-shadow: var(--modal-shadow);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--modal-transition);
    position: relative;
}

.modal-overlay-modern.show .modal-container-modern {
    transform: scale(1) translateY(0);
}

/* Header do Modal */
.modal-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--modal-padding);
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.modal-header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-title-modern {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.modal-subtitle-modern {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 4px;
}

.modal-close-modern {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 18px;
}

.modal-close-modern:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    transform: scale(1.1);
}

/* Conteúdo do Modal */
.modal-content-modern {
    padding: var(--modal-padding);
    max-height: calc(90vh - var(--modal-header-height));
    overflow-y: auto;
}

.modal-content-modern::-webkit-scrollbar {
    width: 6px;
}

.modal-content-modern::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.modal-content-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-content-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Seções do Modal */
.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-section-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.modal-section-title i {
    font-size: 16px;
    color: #6b7280;
}

/* Grid de Informações */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.modal-info-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.modal-info-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.modal-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.modal-info-value.empty {
    color: #9ca3af;
    font-style: italic;
}

/* Destaque para Locação Ativa */
.modal-locacao-ativa {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.modal-locacao-ativa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.modal-locacao-ativa .modal-section-title {
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 16px;
}

.modal-locacao-ativa .modal-section-title h3 {
    color: #1d4ed8;
}

.modal-locacao-ativa .modal-info-item {
    background: rgba(255, 255, 255, 0.7);
    border-left-color: #1d4ed8;
}

/* Footer do Modal */
.modal-footer-modern {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px var(--modal-padding);
    border-top: 2px solid #f3f4f6;
    background: #f8fafc;
}

.modal-btn-modern {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-overlay-modern {
        padding: 10px;
    }
    
    .modal-container-modern {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header-modern,
    .modal-content-modern,
    .modal-footer-modern {
        padding: 20px;
    }
    
    .modal-title-modern {
        font-size: 20px;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-footer-modern {
        flex-direction: column;
    }
    
    .modal-btn-modern {
        width: 100%;
    }
}

/* Animações de Entrada */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* Estados Especiais */
.modal-loading {
    pointer-events: none;
}

.modal-loading .modal-content-modern {
    opacity: 0.6;
    position: relative;
}

.modal-loading .modal-content-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badges de Status */
.modal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-status-badge.disponivel {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-status-badge.alugada {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-status-badge.manutencao {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.modal-status-badge.vendida {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.modal-status-badge i {
    font-size: 10px;
}
/* ===== SEÇÃO DE LOCAÇÃO ATIVA PREMIUM ===== */

.modal-locacao-ativa-premium {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.modal-locacao-ativa-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #0284c7, #0369a1);
}

/* Header da Locação */
.locacao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.locacao-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.status-pulse {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse-green 2s infinite;
}

.status-pulse::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.locacao-status-indicator i {
    font-size: 20px;
    color: #0284c7;
}

.locacao-title-group h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 4px 0;
}

.locacao-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-locacao-detalhes {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-locacao-detalhes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Conteúdo da Locação */
.locacao-content {
    padding: 24px;
}

/* Card do Cliente */
.locacao-cliente-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(10px);
}

.cliente-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.cliente-info {
    flex: 1;
}

.cliente-nome {
    font-size: 16px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 4px;
}

.cliente-contato {
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
}

/* Grid de Detalhes */
.locacao-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

.detail-card .detail-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.05));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 14px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    word-break: break-word;
}

.detail-value.currency {
    font-size: 16px;
    color: #059669;
}

/* Cards específicos */
.detail-card.vencimento .detail-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    color: #d97706;
}

.detail-card.vencimento::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

/* Seção de Progresso */
.locacao-progress-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
}

.progress-percentage {
    font-size: 16px;
    font-weight: 700;
    color: #0284c7;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .locacao-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .locacao-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .locacao-cliente-card {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Animações de entrada */
.modal-locacao-ativa-premium {
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados especiais */
.detail-card.vencimento-proximo .detail-value {
    color: #dc2626;
    animation: alertBlink 2s infinite;
}

@keyframes alertBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* ===== SEÇÃO DE DOCUMENTOS PREMIUM ===== */

.documentos-container-premium {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    min-height: 120px;
    position: relative;
    transition: all 0.3s ease;
}

.documentos-container-premium.has-documents {
    border-style: solid;
    border-color: #e2e8f0;
    background: #ffffff;
    padding: 0;
}

/* Estado vazio */
.documento-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.documento-empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.documento-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.documento-empty-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Card de documento premium */
.documento-card-premium {
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.documento-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.documento-card-premium:last-child {
    margin-bottom: 0;
}

/* Header do documento */
.documento-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.documento-icon-wrapper {
    position: relative;
}

.documento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.documento-icon.pdf {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.documento-icon.image {
    background: linear-gradient(135deg, #059669, #047857);
}

.documento-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #374151;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.documento-info {
    flex: 1;
}

.documento-nome {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    word-break: break-word;
}

.documento-detalhes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.documento-tipo {
    font-weight: 500;
}

.documento-separador {
    color: #d1d5db;
}

.documento-tamanho {
    font-weight: 500;
}

/* Área de preview */
.documento-preview-area {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f9fafb;
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6b7280;
}

.pdf-preview i {
    font-size: 48px;
    color: #dc2626;
}

.pdf-preview span {
    font-size: 14px;
    font-weight: 500;
}

.documento-thumbnail {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.documento-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ações do documento */
.documento-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.btn-documento-premium {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-documento-premium.view {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-documento-premium.view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-documento-premium.download {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-documento-premium.download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

/* Contador de documentos */
.count-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.count-indicator i {
    font-size: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .documento-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .documento-actions {
        flex-direction: column;
    }
    
    .documento-detalhes {
        justify-content: center;
    }
}

/* Animações */
@keyframes documentSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.documento-card-premium {
    animation: documentSlideIn 0.3s ease-out;
}

/* Estados de loading */
.documento-card-premium.loading {
    pointer-events: none;
    opacity: 0.6;
}

.documento-card-premium.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* ===== MELHORIAS GERAIS DO MODAL ===== */

/* Melhorar seção de título com contador */
.modal-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.modal-section-title .count-indicator {
    margin-left: 0;
}

/* Animação para contadores */
.count-indicator {
    animation: counterPulse 0.5s ease-out;
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Melhorar espaçamento das seções */
.modal-section {
    margin-bottom: 40px;
    padding: 0;
}

.modal-section:last-child {
    margin-bottom: 0;
}

/* Efeito hover para seções */
.modal-section:hover .modal-section-title h3 {
    color: #3b82f6;
    transition: color 0.2s ease;
}

/* Melhorar scrollbar do modal */
.modal-content-modern {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Estados de carregamento para seções */
.modal-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

.modal-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Transições suaves para todos os elementos */
.modal-info-item,
.documento-card-premium,
.gallery-item-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Melhorar foco para acessibilidade */
.modal-btn-modern:focus,
.btn-documento-premium:focus,
.btn-locacao-detalhes:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Estados de sucesso e erro */
.modal-section.success .modal-section-title h3 {
    color: #059669;
}

.modal-section.error .modal-section-title h3 {
    color: #dc2626;
}

.modal-section.success .count-indicator {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.modal-section.error .count-indicator {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}