/* archivo: ag-styles.css (CSS UNIFICADO COMPLETO) */

/* ====== VARIABLES GLOBALES ====== */
:root {
    --ag-primary: #4CAF50;
    --ag-primary-hover: #45a049;
    --ag-secondary: #6c757d;
    --ag-danger: #dc3545;
    --ag-border: #dee2e6;
    --ag-bg-light: #f8f9fa;
    --ag-text-sm: 13px;
    --ag-text-md: 14px;
    --ag-text-lg: 15px;
}

/* ====== WIDGET PÚBLICO ====== */
.ag-widget-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.5;
}

.ag-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ag-step.active {
    display: block;
}

.ag-step h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

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

/* ====== SERVICIOS WIDGET ====== */
.ag-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ag-service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.ag-service-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.ag-service-card.selected {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.ag-service-card h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.ag-service-price {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0;
}

.ag-service-duration {
    color: #666;
    font-size: 14px;
}

.ag-service-description {
    color: #888;
    font-size: 13px;
    margin: 10px 0;
}

/* ====== CALENDARIO WIDGET ====== */
.ag-calendar-container {
    margin-bottom: 30px;
}

/* Encabezado principal del calendario */
.ag-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ag-current-date {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    min-width: 150px;
    text-align: center;
}

.ag-current-date:hover {
    color: #4CAF50;
}

.ag-btn-nav {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 45px;
}

.ag-btn-nav:hover {
    background: #45a049;
    transform: scale(1.05);
}

.ag-btn-nav:active {
    transform: scale(0.95);
}

/* Leyenda de colores */
.ag-calendar-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.ag-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ag-color-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

.ag-color-box.ag-available {
    background: #4CAF50;
}

.ag-color-box.ag-filling {
    background: #FF6347;
}

.ag-color-box.ag-full {
    background: #dc3545;
}

/* Grid del calendario - Vista de días */
.ag-calendar-grid {
    /* Base - sin estilo, se define en cada vista */
}

.ag-calendar-grid.ag-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* Headers de días de la semana */
.ag-calendar-day-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 5px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

/* Días del calendario */
.ag-calendar-day {
    padding: 15px 5px;
    text-align: center;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.ag-calendar-day.ag-empty {
    background: transparent;
}

.ag-calendar-day.ag-available {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.ag-calendar-day.ag-filling {
    background: #FF6347;
    color: #ffffff;
    border-color: #e55039;
    font-weight: 600;
}

.ag-calendar-day.ag-full,
.ag-calendar-day.ag-closed {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    opacity: 0.6;
    cursor: not-allowed;
}

.ag-calendar-day.ag-clickable {
    cursor: pointer;
}

.ag-calendar-day.ag-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ag-calendar-day.ag-selected {
    border: 3px solid #007bff !important;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Vista de meses */
.ag-calendar-grid.ag-grid-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
}

.ag-month-item {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
    text-align: center;
}

.ag-month-item:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ag-month-item.ag-current {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

/* Vista de años */
.ag-calendar-grid.ag-grid-years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
}

.ag-year-item {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    text-align: center;
}

.ag-year-item:hover {
    background: #e9ecef;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ag-year-item.ag-current {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

/* ====== HORARIOS WIDGET ====== */
.ag-time-slots-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ag-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.ag-time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.ag-time-slot:hover {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.ag-time-slot.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* ====== FORMULARIO WIDGET ====== */
.ag-form-group {
    margin-bottom: 20px;
}

.ag-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: var(--ag-text-lg);
}

.ag-form-group input[type="text"],
.ag-form-group input[type="email"],
.ag-form-group input[type="tel"],
.ag-form-group select,
.ag-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ag-form-group input:focus,
.ag-form-group select:focus,
.ag-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ag-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ag-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ====== RESUMEN WIDGET ====== */
.ag-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ag-summary h3 {
    margin-top: 0;
}

.ag-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ag-summary-item:last-child {
    border-bottom: none;
}

.ag-summary-item .ag-label {
    font-weight: 600;
}

.ag-summary-item .ag-value {
    color: #666;
}

.ag-payment-info {
    margin: 20px 0;
}

/* ====== BOTONES ====== */
.button {
    cursor: pointer;
}

.ag-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: var(--ag-text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.ag-btn-primary {
    background: var(--ag-primary);
    color: white;
}

.ag-btn-primary:hover:not(:disabled) {
    background: var(--ag-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.ag-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.ag-btn-secondary {
    background: var(--ag-secondary);
    color: white;
}

.ag-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.ag-btn-danger {
    background: var(--ag-danger);
    color: white;
}

.ag-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.ag-btn-success {
    background: var(--ag-primary);
    color: white;
}

.ag-btn-success:hover {
    background: var(--ag-primary-hover);
}

.ag-btn-cancel {
    background: var(--ag-secondary);
    color: white;
}

.ag-btn-back {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.ag-btn-back:hover {
    background: #e9ecef;
}

.ag-btn-next, .ag-btn-confirm {
    background: #007bff;
    color: white;
}

.ag-btn-next:hover, .ag-btn-confirm:hover {
    background: #0056b3;
}

.ag-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#btn-cancel {
    margin-left: 10px;
}

.ag-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* ====== PANTALLA DE ÉXITO WIDGET ====== */
.ag-step-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.ag-success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.ag-reservation-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ag-btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    margin-top: 20px;
}

.ag-btn-whatsapp:hover {
    background: #1da851;
}

.ag-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ====== PANEL DE EMPRESA ====== */
.ag-company-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.5;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ag-company-panel h1 {
    padding: 20px;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
}

.ag-panel-container {
    display: flex;
}

.ag-panel-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ag-panel-nav {
    padding: 0;
}

.ag-nav-item {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: var(--ag-text-md);
    font-weight: 500;
}

.ag-nav-item:hover {
    background: #e9ecef;
    color: #333;
}

.ag-nav-item.active {
    background: #fff;
    border-left-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

.ag-panel-content {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 8px;
}

.ag-section {
    display: none;
}

.ag-section.active {
    display: block;
}

.ag-section h2 {
    font-size: 24px;
    margin: 0 0 25px 0;
    color: #333;
    border-bottom: 2px solid var(--ag-primary);
    padding-bottom: 10px;
}

/* ====== FORMULARIOS PANEL ====== */
.ag-admin-wrap {
    margin: 20px 0;
}

.ag-admin-container {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
}

.ag-form-section {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ag-form-section h2 {
    margin-top: 0;
    color: #23282d;
}

.ag-table-section {
    margin-top: 30px;
}

.ag-table-section h2 {
    margin-bottom: 15px;
}

.ag-form {
    max-width: 800px;
}

#ag-company-form .form-table th {
    width: 200px;
}

.ag-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--ag-border);
    border-radius: 6px;
    font-size: var(--ag-text-sm);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ag-input:focus {
    outline: none;
    border-color: var(--ag-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.ag-input:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* ====== DROPDOWNS COMPLETOS ====== */
.ag-company-panel select,
.ag-form-group select,
#filter-status,
#default_duration,
#default_interval {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 2px solid var(--ag-border);
    border-radius: 6px;
    font-size: var(--ag-text-sm);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    min-height: 40px;
}

.ag-company-panel select:focus {
    outline: none;
    border-color: var(--ag-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ====== TABLAS ====== */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-list-table th,
.wp-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wp-list-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.ag-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.ag-actions-cell {
    white-space: nowrap;
}

.ag-actions-cell .button {
    margin: 2px;
}

.btn-edit, .btn-delete, .btn-toggle {
    margin-right: 5px;
    margin-bottom: 5px;
}

.ag-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    color: #856404;
}

.ag-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ag-hours-table th,
.ag-hours-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.ag-hours-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.ag-hours-table input[type="time"] {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ====== TARJETAS (SERVICIOS, PAGOS, ETC) ====== */
.ag-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.ag-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.ag-card-body {
    padding: 20px;
}

.ag-payment-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ag-payment-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ag-payment-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.ag-payment-card p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.ag-payment-card strong {
    color: #2c3e50;
    font-weight: 600;
}

.ag-payment-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.ag-btn-edit-payment,
.ag-btn-delete-payment {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 4px;
}

/* ====== SECCIÓN PAGO (QR Y BANCOS) ====== */
#qr-preview {
    text-align: center;
}

.ag-qr-preview-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.ag-qr-preview {
    margin-bottom: 15px;
}

.ag-qr-preview img {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ag-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ag-btn-change-qr,
.ag-btn-new-qr {
    padding: 10px 20px;
    font-size: 14px;
}

/* ====== INFORMACIÓN DE PAGO VISITANTE ====== */
.ag-payment-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.ag-payment-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.ag-bank-card {
    background: #fff;
    border-left: 4px solid #28a745;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ag-bank-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.ag-bank-card strong {
    color: #2c3e50;
    font-weight: 600;
}

.ag-payment-section img {
    display: block;
    margin: 10px auto;
    max-width: 250px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ====== MODALES ====== */
.ag-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index modal 1100000;
    padding: 20px;
    overflow-y: auto;
}

.ag-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ag-modal-large .ag-modal {
    max-width: 900px;
    width: 95%;
}

.ag-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.ag-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.ag-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ag-modal-body {
    padding: 20px;
}

.ag-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 0 0 0;
    border-top: 1px solid #e0e0e0;
    background: white;
    position: sticky;
    bottom: 0;
}

/* ====== ESTILOS ADICIONALES - CALENDARIO MEJORADO ====== */
.ag-calendar-time-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.ag-time-slots-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.ag-time-slots-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

/* Calendario en modal de modificar */
#modify-calendar-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.ag-mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.ag-day-header {
    text-align: center;
    font-weight: 700;
    color: #666;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 14px;
}

.ag-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    cursor: default;
    transition: all 0.2s ease;
    min-height: 50px;
    position: relative;
}

.ag-day-empty {
    aspect-ratio: 1;
    min-height: 50px;
}

.ag-day.ag-closed {
    background: #f0f0f0;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.ag-day.ag-available {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    cursor: pointer;
}

.ag-day.ag-available:hover {
    background: #a8d5ba;
    border-color: #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.ag-day.ag-filling {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
    cursor: pointer;
}

.ag-day.ag-filling:hover {
    background: #ffe599;
    border-color: #ffc107;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.ag-day.ag-full {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    cursor: not-allowed;
}

.ag-day.ag-selected {
    background: #007bff !important;
    color: #fff !important;
    border-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
    transform: scale(1.08);
}

.ag-day.ag-clickable {
    cursor: pointer;
}

/* Contenedor de horas en el modal */
#modify-time-slots {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.ag-time-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ag-time-btn {
    background: #f0f0f1;
    border: 2px solid #ddd;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: all 0.2s ease;
}

.ag-time-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.ag-time-btn.ag-selected {
    background: #28a745;
    color: #fff;
    border-color: #1e7e34;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.ag-time-btn.ag-occupied {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    cursor: not-allowed;
    opacity: 0.6;
}

.ag-time-btn.ag-occupied:hover {
    background: #f8d7da;
    color: #721c24;
    transform: none;
}

/* Estados */
.ag-status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.ag-status.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ag-status.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== CLASES ESPECÍFICAS PARA MODIFICAR RESERVA ====== */
/* Estas clases son usadas por company-panel.js */
.ag-reservation-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.ag-reservation-info-column h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

.ag-reservation-info-column p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.ag-reservation-info-column strong {
    color: #333;
    min-width: 120px;
    display: inline-block;
    font-weight: 600;
}

.ag-notifications-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.ag-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #856404;
}

.ag-checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ag-modify-calendar-section {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    margin: 20px 0;
}

.ag-modify-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

/* Para móviles */
@media (max-width: 768px) {
    .ag-reservation-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ag-modify-actions {
        flex-direction: column;
    }
    
    .ag-modify-actions .ag-btn {
        width: 100%;
        margin: 5px 0;
        padding: 15px;
        font-size: 16px;
    }
    
    .ag-notifications-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .ag-modal.ag-modal-large {
        width: 95%;
        margin: 10px;
    }
    
    .ag-calendar-time-layout {
        grid-template-columns: 1fr;
    }
    
    .ag-panel-container {
        flex-direction: column;
    }
    
    .ag-panel-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .ag-panel-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .ag-nav-item {
        padding: 10px 15px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .ag-nav-item.active {
        border-left: none;
        border-bottom-color: #007bff;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wp-list-table {
        font-size: 14px;
    }
    
    .wp-list-table th,
    .wp-list-table td {
        padding: 10px;
    }
    
    .ag-hours-table {
        font-size: 13px;
    }
    
    .ag-actions-cell .button {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .ag-nav-item {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Utilitarios */
.copy-shortcode {
    margin-left: 10px;
    font-size: 11px;
}

code {
    background: #f4f4f4;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.d-none {
    display: none !important;
}