/* student/assets/css/student-modal.css */
/* Student Login Modal Styles */
.student-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 53, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-login-modal.show {
    display: flex;
    opacity: 1;
}

.student-login-content {
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--color-accent-1, #0fd2bf);
}

.student-login-modal.show .student-login-content {
    transform: translateY(0);
}

.student-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
}

.student-login-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-primary, #163f62);
    font-weight: 700;
}

.student-login-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.student-login-close:hover {
    color: #ef4444;
}

.student-login-body {
    padding: 30px;
}

.student-login-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #ef4444;
}

.student-form-group {
    margin-bottom: 20px;
}

.student-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary, #163f62);
    font-size: 0.95rem;
}

.student-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s;
    background: #f8fafc;
}

.student-form-group input:focus {
    outline: none;
    border-color: var(--color-accent-1, #0fd2bf);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 210, 191, 0.1);
}

.student-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary, #163f62), #2A438F);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(22, 63, 98, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.student-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(22, 63, 98, 0.25);
    background: linear-gradient(135deg, #1e5282, #3b5cb8);
}

/* Student Profile Dropdown */
.header-profile-menu {
    position: relative;
    margin-left: 20px;
}

.profile-avatar-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary, #163f62), var(--color-accent-1, #0fd2bf));
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.profile-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 63, 98, 0.2);
    border-color: var(--color-accent-1, #0fd2bf);
}

.profile-dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    width: 250px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-profile-menu.active .profile-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.profile-dropdown-header h4 {
    margin: 0;
    color: var(--color-primary, #163f62);
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-dropdown-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.profile-dropdown-links {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.profile-dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.profile-dropdown-links li a i {
    width: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
    text-align: center;
    transition: color 0.2s;
}

.profile-dropdown-links li a:hover {
    background: #f8fafc;
    color: var(--color-primary, #163f62);
}

.profile-dropdown-links li a:hover i {
    color: var(--color-accent-1, #0fd2bf);
}

.profile-dropdown-links li a.logout-link {
    color: #ef4444;
}

.profile-dropdown-links li a.logout-link i {
    color: #ef4444;
}

.profile-dropdown-links li a.logout-link:hover {
    background: #fef2f2;
}