/**
 * Main CSS for Digital Invitations Plugin
 */

/* Estilos generales */
.id-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Botones */
.btn-confirmar {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.btn-confirmar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* QR Container */
.qr-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.qr-date-info {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.qr-image {
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 15px;
    background: rgba(37, 211, 102, 0.1);
    border: 2px solid #25D366;
}

.qr-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.2);
    border-radius: 20px;
    z-index: -1;
}

.qr-image img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-instruction {
    margin-top: 15px;
    font-size: 14px;
    color: #25D366;
    font-weight: 600;
    background: rgba(37, 211, 102, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* Estado expirado */
.qr-container.expired .qr-image {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.qr-container.expired .qr-image::before {
    background: rgba(220, 53, 69, 0.2);
}

.qr-container.expired .qr-instruction {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

/* Fecha límite */
.fecha-limite {
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Nombres y pases */
.invitacion-nombre,
.invitacion-pases {
    font-weight: 600;
    color: #0073aa;
}

/* Dashboard del cliente */
.id-client-dashboard {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.id-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.id-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
}

.id-dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.id-dashboard-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.id-section-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.id-section-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Formulario de generación */
.id-generar-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.id-form-group {
    display: flex;
    flex-direction: column;
}

.id-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.id-form-group input,
.id-form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.id-form-group input:focus,
.id-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.id-btn-generar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.id-btn-generar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Resultado de URL */
.id-url-result {
    background: #f8f9ff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.id-url-result h4 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.id-url-output {
    background: white;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.id-url-output::before {
    content: '🔗';
    margin-right: 8px;
}

.id-url-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.id-url-actions .button {
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.id-url-actions .button:hover {
    transform: scale(1.05);
}

/* Lista de invitaciones */
.id-invitaciones-list {
    max-height: 400px;
    overflow-y: auto;
}

.id-invitacion-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.id-invitacion-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.id-invitacion-info {
    flex: 1;
}

.id-invitacion-nombre {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.id-invitacion-detalles {
    font-size: 13px;
    color: #666;
}

.id-invitacion-estado {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-invitacion-estado.pendiente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.id-invitacion-estado.confirmado {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.id-invitacion-estado.asistio {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Botón de escáner */
.id-btn-escanear {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    width: 100%;
    margin-top: 20px;
}

.id-btn-escanear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Modales */
.id-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.id-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.id-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.id-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    line-height: 1;
    transition: color 0.2s ease;
}

.id-modal-close:hover {
    color: #f0f0f0;
}

.id-modal-body {
    padding: 30px;
}

.id-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Notificaciones */
.id-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    animation: notificationSlideIn 0.3s ease;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.id-notification-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.id-notification-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.id-notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsivo */
@media (max-width: 768px) {
    .id-generar-form {
        grid-template-columns: 1fr;
    }
    
    .id-url-actions {
        flex-direction: column;
    }
    
    .id-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .id-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .id-invitacion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .id-invitacion-estado {
        align-self: flex-end;
    }
}

/* Estado vacío */
.id-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.id-empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Utilidades */
.id-text-center { text-align: center; }
.id-text-right { text-align: right; }
.id-mb-20 { margin-bottom: 20px; }
.id-mt-20 { margin-top: 20px; }

/* Animaciones adicionales */
.id-fade-in {
    animation: fadeIn 0.5s ease;
}

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

.id-slide-up {
    animation: slideUp 0.3s ease;
}

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

/* ===== ESTILOS PARA FORMULARIO DE LOGIN ===== */
.id-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.id-login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.id-login-form .form-group {
    margin-bottom: 20px;
}

.id-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.id-login-form input[type="text"],
.id-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.id-login-form input[type="text"]:focus,
.id-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.id-login-form .btn {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.id-login-form .btn:hover {
    background: #005a87;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

.login-help {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-help p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Estilos responsive para el login */
@media (max-width: 600px) {
    .id-login-container {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .id-login-form h2 {
        font-size: 20px;
    }
}

/* ===== ESTILOS ADICIONALES PARA DASHBOARD DEL CLIENTE ===== */
.id-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.id-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.id-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
}

.id-dashboard-header .subtitle {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.id-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.id-stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.id-stat-box .number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.id-stat-box .label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.id-actions-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.id-actions-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.id-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.id-action-btn {
    padding: 15px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.id-action-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.id-action-btn.secondary {
    background: #6c757d;
}

.id-action-btn.secondary:hover {
    background: #5a6268;
}

/* ===== MENSAJES Y ALERTAS ===== */
.id-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.id-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.id-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.id-alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.id-alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}