/* ═══════════════════════════════════════════════════════════════
   STUDENT PORTAL - ENHANCED STYLES
   Estilos adicionales para funcionalidades de pago reserva
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   PAYMENT INDICATOR (DISCRETO Y AMIGABLE)
   ═══════════════════════════════════════════════════════════════ */

.payment-indicator {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-left: 4px solid #d49832;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.payment-indicator:hover {
    box-shadow: 0 4px 12px rgba(180, 123, 24, 0.15);
    transform: translateY(-2px);
}

.indicator-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.indicator-content {
    flex: 1;
}

.indicator-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.indicator-text {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.indicator-amount {
    font-size: 20px;
    font-weight: 700;
    color: #b47b18;
    margin: 8px 0 0 0;
}

.indicator-deadline {
    font-size: 13px;
    color: #999999;
    margin: 4px 0 0 0;
}

.btn-pay-simple {
    background: linear-gradient(135deg, #b47b18 0%, #d49832 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-pay-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 123, 24, 0.3);
}

.btn-pay-simple:active {
    transform: translateY(0);
}

/* Countdown discreto (opcional) */
.countdown-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

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

.countdown-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

.btn-complete-payment {
    background: white;
    color: #dc2626;
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.btn-complete-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.btn-complete-payment:active {
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   INSCRIPTION ACTIONS
   ═══════════════════════════════════════════════════════════════ */

.inscription-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a3440;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a2129 0%, #0f1419 100%);
    border: 2px solid rgba(180, 123, 24, 0.3);
    border-radius: 10px;
    color: #d49832;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
}

.btn-action:hover {
    border-color: #b47b18;
    background: linear-gradient(135deg, #b47b18 0%, #d49832 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 123, 24, 0.4);
}

.btn-action i {
    font-size: 16px;
}

.btn-action.primary {
    background: linear-gradient(135deg, #b47b18 0%, #d49832 100%);
    border-color: transparent;
    color: white;
}

.btn-action.primary:hover {
    background: linear-gradient(135deg, #d49832 0%, #e5a847 100%);
    box-shadow: 0 8px 30px rgba(180, 123, 24, 0.5);
}

/* Dropdown para calendario */
.action-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dropdown-trigger i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown-trigger.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1a2129;
    border: 2px solid rgba(180, 123, 24, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    min-width: 250px;
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(180, 123, 24, 0.2);
    color: #d49832;
    padding-left: 24px;
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #2a3440;
    margin: 8px 0;
}

/* ═══════════════════════════════════════════════════════════════
   MODULES INFO WITH DATES
   ═══════════════════════════════════════════════════════════════ */

.modules-timeline {
    margin-top: 32px;
}

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

.timeline-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #d49832;
    font-family: 'Outfit', sans-serif;
}

.module-timeline-card {
    background: linear-gradient(135deg, #1a2129 0%, #0f1419 100%);
    border: 2px solid rgba(180, 123, 24, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.module-timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #b47b18 0%, #d49832 100%);
}

.module-timeline-card:hover {
    transform: translateX(5px);
    border-color: rgba(180, 123, 24, 0.5);
    box-shadow: 0 10px 40px rgba(180, 123, 24, 0.2);
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.module-number-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b47b18 0%, #d49832 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(180, 123, 24, 0.4);
}

.module-card-title h5 {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.module-card-title p {
    font-size: 13px;
    color: #909090;
}

.module-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.module-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-detail-item i {
    width: 24px;
    text-align: center;
    color: #d49832;
    font-size: 16px;
}

.module-detail-content {
    flex: 1;
}

.module-detail-label {
    font-size: 11px;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.module-detail-value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.module-status-upcoming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 6px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.module-status-completed {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    color: #81c784;
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT HISTORY TIMELINE
   ═══════════════════════════════════════════════════════════════ */

.payment-history-timeline {
    margin-top: 32px;
}

.payment-history-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #2a3440;
    position: relative;
}

.payment-history-item:last-child {
    border-bottom: none;
}

.payment-history-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a2129 0%, #0f1419 100%);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.payment-history-icon i {
    font-size: 20px;
    color: #81c784;
}

.payment-history-icon::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: #2a3440;
}

.payment-history-item:last-child .payment-history-icon::after {
    display: none;
}

.payment-history-content {
    flex: 1;
}

.payment-history-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-history-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.payment-history-amount {
    font-size: 20px;
    font-weight: 700;
    color: #81c784;
    font-family: 'Outfit', sans-serif;
}

.payment-history-date {
    font-size: 13px;
    color: #909090;
    margin-bottom: 8px;
}

.payment-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #bbbbbb;
}

.payment-history-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-history-meta i {
    color: #909090;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .payment-alert-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .payment-alert-icon {
        font-size: 36px;
    }
    
    .btn-complete-payment {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .countdown-container {
        justify-content: center;
    }
    
    .countdown-number {
        font-size: 36px;
    }
    
    .inscription-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
    
    .module-card-details {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 19, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(180, 123, 24, 0.2);
    border-top-color: #d49832;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #d49832;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: #1a2129;
    border: 2px solid;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-color: rgba(76, 175, 80, 0.5);
}

.toast.error {
    border-color: rgba(244, 67, 54, 0.5);
}

.toast.info {
    border-color: rgba(33, 150, 243, 0.5);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #81c784;
}

.toast.error .toast-icon {
    color: #e57373;
}

.toast.info .toast-icon {
    color: #64b5f6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.toast-message {
    font-size: 13px;
    color: #bbbbbb;
}

.toast-close {
    background: none;
    border: none;
    color: #909090;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #e0e0e0;
}
