/* Dashboard de Candidatos */
.wpjm-candidate-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header del Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1763ae;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.logout-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    color: #1763ae;
}

/* Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 15px 30px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-link:hover {
    color: #1763ae;
    background: #f5f5f5;
}

.tab-link.active {
    color: #1763ae;
    border-bottom-color: #1763ae;
    font-weight: 600;
}

/* Contenido del Dashboard */
.dashboard-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Lista de Aplicaciones */
.applications-list {
}

.applications-count {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
}

.no-applications {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-applications p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Tarjeta de Aplicación */
.application-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

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

.application-card.status-pending {
    border-left: 4px solid #ffc107;
}

.application-card.status-reviewed {
    border-left: 4px solid #2196f3;
}

.application-card.status-accepted {
    border-left: 4px solid #4caf50;
}

.application-card.status-rejected {
    border-left: 4px solid #f44336;
}

.application-header h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.application-header h4 a {
    color: #1763ae;
    text-decoration: none;
}

.application-header h4 a:hover {
    text-decoration: underline;
}

.company-name {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.application-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.application-meta .date {
    color: #666;
    font-size: 14px;
}

.application-meta .status-badge {
    background: #f5f5f5;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.application-actions {
    margin-top: 15px;
}

.button-secondary {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.button-secondary:hover {
    background: #e0e0e0;
}

/* Gestión de Alertas */
.alerts-management {
}

.no-alerts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-alerts p {
    font-size: 16px;
    margin-bottom: 15px;
}

.activate-alerts-form {
    margin-top: 30px;
}

.activate-alerts-form .toggle-alert-btn {
    font-size: 16px;
    padding: 15px 30px;
}

/* Tarjeta de Alerta */
.alert-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
}

.alert-card.active {
    border-color: #4caf50;
    background: #f1f8f4;
}

.alert-card.inactive {
    border-color: #ccc;
    background: #f9f9f9;
    opacity: 0.8;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alert-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.alert-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.alert-card.active .alert-status {
    background: #4caf50;
    color: white;
}

.alert-card.inactive .alert-status {
    background: #999;
    color: white;
}

.alert-info {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.alert-info p {
    margin: 10px 0;
}

.alert-info .last-sent,
.alert-info .created {
    font-size: 13px;
    color: #999;
}

.alert-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.toggle-alert-btn {
    background: #1763ae;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.toggle-alert-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.alert-card.inactive .toggle-alert-btn {
    background: #4caf50;
}

.alert-card.inactive .toggle-alert-btn:hover {
    background: #45a049;
}

/* Formulario de Login */
.wpjm-login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpjm-login-form h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.wpjm-login-form > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.wpjm-login-form .login-username,
.wpjm-login-form .login-password {
    margin-bottom: 20px;
}

.wpjm-login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.wpjm-login-form input[type="text"],
.wpjm-login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

.wpjm-login-form .login-submit {
    margin-top: 20px;
}

.wpjm-login-form input[type="submit"] {
    width: 100%;
}

.login-help {
    text-align: center;
    margin-top: 20px;
}

.login-help a {
    color: #1763ae;
    text-decoration: none;
    font-size: 14px;
}

.login-help a:hover {
    text-decoration: underline;
}

/* Link de registro */
.register-link,
.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.register-link a,
.login-link a {
    color: #1763ae;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* Formulario de registro */
.register-form .form-field {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.register-form input[type="text"],
.register-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.register-form input[type="text"]:focus,
.register-form input[type="email"]:focus {
    border-color: #1763ae;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2);
}

.register-form input[type="checkbox"] {
    margin-right: 8px;
}

.register-form .form-submit {
    margin-top: 25px;
}

.register-form .button {
    width: 100%;
}

/* Mensajes de registro */
.registration-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.registration-success strong {
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.registration-success a {
    display: inline-block;
    margin-top: 15px;
    background: #155724;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
}

.registration-success a:hover {
    background: #0d3d18;
}

.registration-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.registration-error p {
    margin: 0;
}

/* Pestaña de cuenta */
.account-settings {
}

.account-info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.account-info h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.account-info-table {
    width: 100%;
    border-collapse: collapse;
}

.account-info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-info-table td:first-child {
    width: 150px;
    color: #666;
}

.account-info-table tr:last-child td {
    border-bottom: none;
}

.account-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Zona de peligro */
.account-danger-zone {
    background: #fff5f5;
    border: 2px solid #ffcccc;
    padding: 25px;
    border-radius: 8px;
}

.account-danger-zone h4 {
    margin-top: 0;
    color: #c92a2a;
    font-size: 18px;
}

.account-danger-zone > p {
    color: #666;
    margin-bottom: 20px;
}

.delete-account-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ffcccc;
}

.delete-account-section h5 {
    margin-top: 0;
    color: #c92a2a;
}

.delete-account-section ul {
    color: #666;
    margin: 15px 0;
}

.delete-account-section ul li {
    margin-bottom: 5px;
}

.button-danger {
    background: #c92a2a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.button-danger:hover {
    background: #a61e1e;
}

#delete-confirm-form {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 2px solid #c92a2a;
    border-radius: 6px;
}

.delete-warning {
    color: #c92a2a;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

#delete-confirm-text {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#delete-confirm-text:focus {
    border-color: #c92a2a;
    outline: none;
}

.button-danger-confirm {
    background: #c92a2a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
}

.button-danger-confirm:hover:not(:disabled) {
    background: #a61e1e;
}

.button-danger-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .wpjm-candidate-dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-link {
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }
    
    .tab-link.active {
        border-bottom-color: #ddd;
        border-left-color: #0073aa;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .application-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wpjm-login-form {
        margin: 20px;
        padding: 30px 20px;
    }
}
