/* ============================================================================
   av-report-designer.css — Report Designer Pro
   AIVEK Vision — Generato automaticamente
   ============================================================================ */

/* Report Designer Pro Modal Styles */
.rdp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    align-items: center;
    justify-content: center;
}
.rdp-modal.open {
    display: flex;
}
.rdp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.rdp-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(102, 126, 234, 0.15);
    animation: rdpSlideIn 0.3s ease-out;
}
@keyframes rdpSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.rdp-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rdp-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.rdp-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rdp-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rdp-description {
    margin: 0;
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.5;
}
.rdp-body {
    padding: 20px 24px;
}
.rdp-section {
    margin-bottom: 24px;
}
.rdp-section:last-child {
    margin-bottom: 0;
}
.rdp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rdp-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}
.rdp-template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}
.rdp-template-card i {
    font-size: 24px;
    color: #9aa0a6;
    transition: color 0.2s ease;
}
.rdp-template-card span {
    font-size: 11px;
    color: #9aa0a6;
    text-align: center;
    font-weight: 500;
}
.rdp-template-card:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}
.rdp-template-card:hover i,
.rdp-template-card:hover span {
    color: #e6e6e6;
}
.rdp-template-card.selected {
    background: rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}
.rdp-template-card.selected i {
    color: #667eea;
}
.rdp-template-card.selected span {
    color: #fff;
}
.rdp-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rdp-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.rdp-toggle input {
    display: none;
}
.rdp-toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.rdp-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #9aa0a6;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.rdp-toggle input:checked + .rdp-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.rdp-toggle input:checked + .rdp-toggle-slider::after {
    left: 23px;
    background: #fff;
}
.rdp-toggle-label {
    margin-left: 12px;
    font-size: 14px;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rdp-toggle-label i {
    color: #9aa0a6;
    font-size: 14px;
}
.rdp-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rdp-btn {
    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;
}
.rdp-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e6e6e6;
}
.rdp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
.rdp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.rdp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.rdp-btn-primary:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .rdp-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .rdp-template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rdp-template-card {
        padding: 12px 6px;
    }
    .rdp-template-card i {
        font-size: 20px;
    }
    .rdp-template-card span {
        font-size: 10px;
    }
}
