/**
 * Estilos para DRTR Reserved Area
 * Login personalizado y dashboard con permisos
 */

/* =============================================================================
   CONTENEDOR GENERAL
   ============================================================================= */

.drtr-ra-login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* =============================================================================
   NO BOOKINGS STATE
   ============================================================================= */

.drtr-no-bookings {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    animation: fadeInUp 0.5s ease-out;
}

.drtr-no-bookings-icon {
    margin: 0 auto 2rem;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.drtr-no-bookings-icon svg {
    color: #ffffff;
}

.drtr-no-bookings h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.drtr-no-bookings p {
    font-size: 1.1rem;
    color: #718096;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.drtr-no-bookings .drtr-ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.drtr-no-bookings .drtr-ra-btn svg {
    flex-shrink: 0;
}

.drtr-no-bookings-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.drtr-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 500;
    font-size: 0.95rem;
}

.drtr-feature-item svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .drtr-no-bookings {
        padding: 3rem 1.5rem;
    }
    
    .drtr-no-bookings-icon {
        width: 100px;
        height: 100px;
    }
    
    .drtr-no-bookings-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .drtr-no-bookings h3 {
        font-size: 1.5rem;
    }
    
    .drtr-no-bookings p {
        font-size: 1rem;
    }
    
    .drtr-no-bookings-features {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =============================================================================
   FORMULARIO DE LOGIN
   ============================================================================= */

.drtr-ra-login-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drtr-ra-logo {
    text-align: center;
}

.drtr-ra-logo img {
    max-height: 80px;
    width: auto;
}

.drtr-ra-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.drtr-ra-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.drtr-ra-subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
}

/* Alertas */
.drtr-ra-alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.drtr-ra-alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border-left: 4px solid #f56565;
}

.drtr-ra-alert-success {
    background-color: #c6f6d5;
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

/* Formulario */
.drtr-ra-form {
    margin-top: 1.5rem;
}

.drtr-ra-form-group {
    margin-bottom: 1.5rem;
}

.drtr-ra-form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.drtr-ra-form-group label .dashicons {
    margin-right: 0.5rem;
    color: #667eea;
    font-size: 1.2rem;
}

.drtr-ra-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f7fafc;
}

.drtr-ra-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Password wrapper con bottone toggle */
.drtr-ra-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.drtr-ra-password-input {
    padding-right: 3rem;
}

.drtr-ra-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drtr-ra-toggle-password:hover {
    color: #667eea;
}

.drtr-ra-toggle-password:focus {
    outline: none;
    color: #667eea;
}

.drtr-ra-toggle-password .dashicons {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

.drtr-ra-remember {
    margin-bottom: 1.5rem;
}

.drtr-ra-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 0.9rem;
    color: #4a5568;
}

.drtr-ra-checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botones */
.drtr-ra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
}

.drtr-ra-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
}

.drtr-ra-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.drtr-ra-btn-primary .dashicons {
    font-size: 1.2rem;
}

.drtr-ra-btn-secondary {
    background: linear-gradient(135deg, #003284 0%, #1ba4ce 100%);
    color: #ffffff;
    border: none;
}

.drtr-ra-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 50, 132, 0.4);
}

.drtr-ra-btn-outline {
    background-color: transparent;
    color: #667eea;
    border-color: #667eea;
}

.drtr-ra-btn-outline:hover {
    background-color: #667eea;
    color: #ffffff;
}

/* Pulsanti più piccoli per header pagine */
.drtr-ra-page-header .drtr-ra-btn {
    width: auto;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.drtr-ra-links {
    text-align: center;
    margin-top: 1.5rem;
}

.drtr-ra-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.drtr-ra-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* =============================================================================
   DASHBOARD
   ============================================================================= */

.drtr-ra-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.drtr-ra-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.drtr-ra-welcome h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.drtr-ra-user-role {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.drtr-ra-user-menu .drtr-ra-btn {
    width: auto;
}

/* Grid de Cards */
.drtr-ra-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.drtr-ra-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #f7fafc;
}

.drtr-ra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.drtr-ra-card-highlight {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.drtr-ra-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.drtr-ra-card-icon .dashicons {
    font-size: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    color: #4a5568;
}

.drtr-ra-icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.drtr-ra-icon-primary .dashicons {
    color: #ffffff;
}

.drtr-ra-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.625rem 0;
}

.drtr-ra-card p {
    color: #718096;
    font-size: 0.85rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.drtr-ra-card .drtr-ra-btn {
    width: 100%;
}

/* Estadísticas */
.drtr-ra-stats {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.drtr-ra-stats h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
}

.drtr-ra-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.drtr-ra-stat-item {
    text-align: center;
}

.drtr-ra-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.drtr-ra-stat-label {
    display: block;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============================================================================
   BOOKINGS SECTION
   ============================================================================= */

.drtr-ra-bookings-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.drtr-ra-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.drtr-ra-page-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #003284;
    font-weight: 700;
}

.drtr-ra-login-required {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.drtr-ra-login-required p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.drtr-ra-bookings-section {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.drtr-ra-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.drtr-ra-section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #003284;
    font-weight: 700;
}

.drtr-bookings-table-wrapper {
    overflow-x: auto;
}

.drtr-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.drtr-bookings-table thead {
    background: linear-gradient(135deg, #003284 0%, #1ba4ce 100%);
    color: #fff;
}

.drtr-bookings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drtr-bookings-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.drtr-bookings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.drtr-booking-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.drtr-status-pending {
    background: #fff3cd;
    color: #856404;
}

.drtr-status-deposit {
    background: #d1ecf1;
    color: #0c5460;
}

.drtr-status-paid {
    background: #d4edda;
    color: #155724;
}

.drtr-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.drtr-status-completed {
    background: #d4edda;
    color: #155724;
}

/* Admin Bookings Table */
.drtr-admin-bookings-table .drtr-customer-info {
    line-height: 1.5;
}

.drtr-admin-bookings-table .drtr-customer-info small {
    color: #6c757d;
    display: block;
}

.drtr-admin-bookings-table .drtr-customer-info i.dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.drtr-status-select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.85rem;
    min-width: 150px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Stati prenotazione - Colori dinamici */
.drtr-status-select[data-current-status="booking_pending"],
.drtr-status-select option[value="booking_pending"] {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.drtr-status-select[data-current-status="booking_deposit"],
.drtr-status-select option[value="booking_deposit"] {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

.drtr-status-select[data-current-status="booking_paid"],
.drtr-status-select option[value="booking_paid"] {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.drtr-status-select[data-current-status="booking_completed"],
.drtr-status-select option[value="booking_completed"] {
    background-color: #cce5ff;
    color: #004085;
    border-color: #007bff;
}

.drtr-status-select[data-current-status="booking_cancelled"],
.drtr-status-select option[value="booking_cancelled"] {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.drtr-status-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 50, 132, 0.1);
}

.drtr-ra-btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.drtr-ra-btn-small i.dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.drtr-ra-btn-small i.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.drtr-admin-alert {
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

/* =============================================================================
   PAGINAZIONE
   ============================================================================= */

.drtr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.drtr-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drtr-pagination-number,
.drtr-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #003284;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.drtr-pagination-number:hover,
.drtr-pagination-btn:hover {
    background: #003284;
    border-color: #003284;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 50, 132, 0.2);
}

.drtr-pagination-current {
    background: linear-gradient(135deg, #003284 0%, #1ba4ce 100%);
    border-color: #003284;
    color: white;
    pointer-events: none;
}

.drtr-pagination-dots {
    color: #999;
    padding: 0 4px;
}

.drtr-pagination-info {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 1rem;
}

.drtr-pagination-prev,
.drtr-pagination-next {
    padding: 0 16px;
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .drtr-ra-login-box {
        padding: 2rem 1.5rem;
    }
    
    .drtr-ra-title {
        font-size: 1.5rem;
    }
    
    .drtr-ra-dashboard {
        padding: 1.5rem 0.875rem;
    }
    
    .drtr-ra-dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
    
    .drtr-pagination {
        gap: 0.5rem;
    }
    
    .drtr-pagination-number,
    .drtr-pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .drtr-pagination-prev,
    .drtr-pagination-next {
        font-size: 12px;
    }
    
    .drtr-pagination-info {
        font-size: 12px;
    }
    
    .drtr-ra-user-menu {
        width: 100%;
    }
    
    .drtr-ra-user-menu .drtr-ra-btn {
        width: 100%;
    }
    
    .drtr-ra-welcome h2 {
        font-size: 1.5rem;
    }
    
    .drtr-ra-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .drtr-ra-card {
        padding: 1.25rem 1rem;
    }
    
    .drtr-ra-card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.875rem;
    }
    
    .drtr-ra-card-icon .dashicons {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .drtr-ra-card h3 {
        font-size: 1rem;
    }
    
    .drtr-ra-card p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .drtr-ra-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .drtr-ra-stat-number {
        font-size: 2rem;
    }
    
    .drtr-ra-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .drtr-ra-page-header h1 {
        font-size: 1.5rem;
    }
    
    .drtr-ra-page-header .drtr-ra-btn {
        width: 100%;
        justify-content: center;
    }
    
    .drtr-ra-bookings-page {
        padding: 1.5rem 0.875rem;
    }
    
    .drtr-ra-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .drtr-ra-section-header .drtr-ra-btn {
        width: 100%;
    }
    
    .drtr-bookings-table {
        font-size: 0.85rem;
    }
    
    .drtr-bookings-table th,
    .drtr-bookings-table td {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .drtr-ra-login-container {
        padding: 1rem 0.5rem;
    }
    
    .drtr-ra-dashboard {
        padding: 1rem 0.5rem;
    }
    
    .drtr-ra-bookings-page {
        padding: 1rem 0.5rem;
    }
    
    .drtr-ra-page-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .drtr-ra-page-header h1 {
        font-size: 1.25rem;
    }
    
    .drtr-ra-welcome h2 {
        font-size: 1.25rem;
    }
    
    .drtr-ra-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .drtr-ra-card {
        padding: 1rem 0.875rem;
    }
    
    .drtr-ra-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .drtr-ra-stat-number {
        font-size: 2rem;
    }
    
    .drtr-bookings-table {
        font-size: 0.75rem;
    }
    
    .drtr-bookings-table th,
    .drtr-bookings-table td {
        padding: 0.4rem;
    }
}

/* =============================================================================
   FILTRI PRENOTAZIONI
   ============================================================================= */

.drtr-bookings-filters {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.drtr-filters-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drtr-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.drtr-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drtr-filter-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #003284;
}

.drtr-filter-field input[type="text"],
.drtr-filter-field select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.drtr-filter-field input[type="text"]:focus,
.drtr-filter-field select:focus {
    outline: none;
    border-color: #003284;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 50, 132, 0.1);
}

.drtr-filters-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .drtr-filters-row {
        grid-template-columns: 1fr;
    }
    
    .drtr-filters-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .drtr-filters-actions .drtr-ra-btn {
        width: 100%;
    }
}

/* =============================================================================
   PROFILE PAGE
   ============================================================================= */

.drtr-profile-form {
    margin-top: 1.5rem;
}

.drtr-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.drtr-profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drtr-profile-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
}

.drtr-field-hint {
    font-size: 0.8rem;
    color: #718096;
    font-style: italic;
}

/* Preferenze */
.drtr-preferences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.drtr-preference-item {
    background: #f7fafc;
    border-radius: 10px;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.drtr-preference-item:hover {
    border-color: #667eea;
    background: #ffffff;
}

.drtr-preference-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
    font-weight: normal !important;
}

.drtr-preference-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.drtr-preference-content strong {
    display: block;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.drtr-preference-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
}

/* GDPR Section */
.drtr-gdpr-section {
    border: 2px solid #fed7d7;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.drtr-gdpr-content {
    margin-top: 1rem;
}

.drtr-gdpr-info {
    background: #ffffff;
    border-left: 4px solid #667eea;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.drtr-gdpr-info p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.drtr-gdpr-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.drtr-ra-btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #ffffff;
    border: none;
}

.drtr-ra-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.4);
}

.drtr-gdpr-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff3cd;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.drtr-gdpr-warning .dashicons {
    color: #d97706;
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.drtr-gdpr-warning p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modal */
.drtr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.drtr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.drtr-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.drtr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.drtr-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drtr-modal-header .dashicons {
    color: #e53e3e;
    font-size: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
}

.drtr-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.drtr-modal-close:hover {
    background: #f7fafc;
    border-radius: 8px;
}

.drtr-modal-close .dashicons {
    color: #718096;
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.drtr-modal-body {
    padding: 2rem;
}

.drtr-modal-body p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.drtr-modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.drtr-modal-body li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.drtr-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.drtr-modal-actions .drtr-ra-btn {
    flex: 1;
}

/* Profile Responsive */
@media (max-width: 768px) {
    .drtr-profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .drtr-gdpr-actions {
        flex-direction: column;
    }
    
    .drtr-gdpr-actions .drtr-ra-btn {
        width: 100%;
    }
    
    .drtr-modal-content {
        width: 95%;
    }
    
    .drtr-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .drtr-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .drtr-modal-body {
        padding: 1.5rem;
    }
    
    .drtr-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .drtr-preference-label {
        gap: 0.75rem;
    }
    
    .drtr-preference-item {
        padding: 1rem;
    }
}

