/**
 * Estilos públicos para formularios de Alumni
 */

/* Contenedor principal */
.alumni-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.alumni-form-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.alumni-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    text-align: center;
    font-size: 28px;
}

/* Mensajes de error/éxito */
.alumni-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alumni-error {
    background-color: #fef2f2;
    border-left: 4px solid #dc3232;
    color: #991b1b;
}

.alumni-success {
    background-color: #f0fdf4;
    border-left: 4px solid #46b450;
    color: #166534;
}

/* Formularios */
.alumni-form {
    margin-top: 30px;
}

.alumni-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

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

.alumni-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.alumni-form-group input[type="text"],
.alumni-form-group input[type="email"],
.alumni-form-group input[type="password"],
.alumni-form-group input[type="tel"],
.alumni-form-group input[type="number"],
.alumni-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.alumni-form-group input:focus,
.alumni-form-group select:focus {
    outline: none;
    border-color: #489e53;
    box-shadow: 0 0 0 1px #489e53;
}

/* Botones */
.alumni-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.alumni-button-primary {
    background-color: #ffffff !important;
    color: #489e53 !important;
    border: 2px solid #489e53 !important;
    width: 100%;
}

.alumni-button-primary:hover {
    background-color: #489e53 !important;
    color: #ffffff !important;
    border: 2px solid #489e53 !important;
    transform: translateY(-1px);
}

.alumni-button-secondary {
    background-color: #f0f0f1;
    color: #1d2327;
}

.alumni-button-secondary:hover {
    background-color: #dcdcde;
}

/* Footer del formulario */
.alumni-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.alumni-form-footer p {
    margin: 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.alumni-form-footer a {
    color: #489e53;
    text-decoration: none;
    font-weight: 600;
}

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

/* Dashboard */
.alumni-dashboard {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.alumni-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.alumni-dashboard-header h2 {
    margin: 0;
    font-size: 32px;
    color: #1d2327;
}

.alumni-dashboard-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
}

.alumni-info-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.alumni-info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-size: 20px;
    border-bottom: 2px solid #489e53;
    padding-bottom: 10px;
}

.alumni-dashboard-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.alumni-dashboard-actions .alumni-button {
    width: 100%;
    text-align: center;
}

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

.alumni-info-table tr {
    border-bottom: 1px solid #e5e7eb;
}

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

.alumni-info-table th,
.alumni-info-table td {
    padding: 15px 10px;
    text-align: left;
}

.alumni-info-table th {
    font-weight: 600;
    color: #6b7280;
    width: 200px;
}

.alumni-info-table td {
    color: #1d2327;
}

/* Status badges */
.alumni-status {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alumni-status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.alumni-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .alumni-form-wrapper {
        padding: 30px 20px;
    }

    .alumni-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .alumni-dashboard-content {
        grid-template-columns: 1fr;
    }

    .alumni-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .alumni-dashboard-header .alumni-button {
        width: 100%;
    }

    .alumni-info-table th,
    .alumni-info-table td {
        padding: 10px 5px;
        font-size: 14px;
    }

    .alumni-info-table th {
        width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .alumni-form-container {
        padding: 0 10px;
    }

    .alumni-form-wrapper {
        padding: 20px 15px;
    }

    .alumni-form-wrapper h2 {
        font-size: 24px;
    }

    .alumni-info-table {
        font-size: 13px;
    }
}

/* Pop-up de registro exitoso */
.alumni-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.alumni-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alumni-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.alumni-popup-overlay.active .alumni-popup {
    transform: scale(1);
}

.alumni-popup-header {
    background-color: #489e53;
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.alumni-popup-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.alumni-popup-body {
    padding: 30px;
    text-align: center;
    line-height: 1.6;
}

.alumni-popup-body p {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
}

.alumni-popup-body p:last-child {
    margin-bottom: 0;
}

.alumni-popup-footer {
    padding: 0 30px 30px 30px;
    text-align: center;
}

.alumni-popup-close {
    width: 100%;
    cursor: pointer;
}

/* Responsive para pop-up */
@media screen and (max-width: 480px) {
    .alumni-popup {
        width: 95%;
    }

    .alumni-popup-header {
        padding: 20px;
    }

    .alumni-popup-header h2 {
        font-size: 22px;
    }

    .alumni-popup-body {
        padding: 25px 20px;
    }

    .alumni-popup-body p {
        font-size: 15px;
    }

    .alumni-popup-footer {
        padding: 0 20px 25px 20px;
    }
}
