
:root {
    --bg-color: #111827;
    --text-color: #F9FAFB;
    --accent-color: #4A90E2;
    --secondary-color: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.glass-morph {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 31, 135, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.glass-morph:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 31, 135, 0.3);
}

.btn {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3B82F6;
    border-radius: 25px;
    padding: 8px 20px;
    color: #3B82F6;
}

.btn-outline:hover {
    background: #3B82F6;
    color: white;
}

.btn-admin {
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-admin:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.logo-container {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 20px;
    padding: 15px;
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.form-input {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #D1D5DB;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, -0px); }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #9CA3AF;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
}

.subtab-button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #9CA3AF;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.subtab-button.active {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-badge {
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 10px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}

.toast-success::before {
    background: var(--success-color);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-error::before {
    background: var(--error-color);
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
}

.toast-warning::before {
    background: var(--warning-color);
}

.toast-info {
    border-color: rgba(59, 130, 246, 0.4);
}

.toast-info::before {
    background: var(--accent-color);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info .toast-icon {
    color: var(--accent-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #D1D5DB;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    border-radius: 0 0 12px 12px;
    transition: width 0.1s linear;
}

.toast-success .toast-progress-bar {
    background: var(--success-color);
}

.toast-error .toast-progress-bar {
    background: var(--error-color);
}

.toast-warning .toast-progress-bar {
    background: var(--warning-color);
}

.toast-info .toast-progress-bar {
    background: var(--accent-color);
}

.nav-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-logo:hover {
    background: rgba(59, 130, 246, 0.1);
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        max-width: none;
    }
    
    .nav-header {
        padding: 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        padding: 20px;
        width: calc(100% - 40px);
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .subtab-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}
.mobile-validation-message {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-input.valid {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}
.form-input.warning {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}
.form-input.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}
.submit-blocked {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}
.student-subtype-tabs {
    display: flex;
    border-radius: 10px;
    background: rgba(30, 30, 40, 0.6);
    padding: 4px;
    margin-bottom: 20px;
}
.student-subtype-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}
.student-subtype-tab.active {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    color: white;
}
.student-subtype-tab:not(.active):hover {
    background: rgba(59, 130, 246, 0.2);
}
.custom-bg {
    background-image: url('/uploads/OIP10.jpg');
}
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirm-modal-content {
    text-align: center;
    background: var(--bg-color);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.confirm-modal.active {
    display: flex;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3B82F6;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-danger {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}
.btn-secondary {
    background: linear-gradient(90deg, #6B7280, #4B5563);
} 

.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 10px;
    margin: 4px 0;
}
.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 10px;
    border: 2px solid rgba(31, 41, 55, 0.5);
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 rgba(55, 65, 81, 0.3);
}
.modal-content {
    display: flex;
    flex-direction: column;
}
.modal-body {
    flex: 1;
    padding-bottom: 0;
}
.modal-footer {
    flex-shrink: 0;
}
.selected-year-display {
    margin-top: auto;
    position: relative;
    z-index: 5;
}
#year-validation {
    position: relative;
    z-index: 5;
}