/**
 * Estilos Frontend - Cliente Validator
 */

/* Contenedor principal */
.cliente-validator-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cliente-validator-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.cliente-validator-form h2 {
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    color: #666;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Botones */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-submit, .btn-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover, .btn-primary:hover {
    background: #005a87;
}

.btn-submit:disabled, .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Enlaces */
.form-links {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.form-links p {
    margin: 0.5rem 0;
}

.form-links a {
    color: #0073aa;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Mensajes */
.form-messages {
    margin-top: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

.message-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.message-content p {
    margin: 0 0 1rem 0;
}

.message-actions {
    margin-top: 1rem;
}

.btn-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    float: right;
    margin-top: -2rem;
}

/* Dashboard */
.cliente-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.welcome-section h1 {
    color: #333;
    margin: 0 0 0.5rem 0;
}

.client-info {
    color: #666;
    margin: 0;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c82333;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

.dashboard-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.dashboard-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Perfil */
.profile-form {
    max-width: 600px;
}

/* Acciones */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-action {
    background: #0073aa;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

/* Información */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.info-card h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* Mensajes del dashboard */
.dashboard-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .cliente-validator-form {
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease-in-out;
    border-left: 4px solid #0073aa;
}

.toast.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.toast.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.toast.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.toast.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.toast.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.toast-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}

.toast-html {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-html a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.toast-html a:hover {
    background: rgba(0, 115, 170, 0.2);
    text-decoration: none;
}

/* Responsive para toast */
@media (max-width: 768px) {
    .toast-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }
} 