/* --- SIDEBAR COMPONENT STYLES --- */

.sidebar {
    background: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        display: flex !important; /* Force flex when shown on mobile */
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
}

/* Logo Section */
.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
}

.logo-box {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: white;
    font-size: 28px;
    margin-bottom: 8px;
    box-shadow: 0 8px 15px rgba(65, 209, 133, 0.2);
}

.sidebar-logo .brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.sidebar-logo .tagline {
    font-size: 11px;
    color: var(--text-grey);
}

/* Navigation Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: #f0fdf4;
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item.active {
    background: #E6F9F0;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(65, 209, 133, 0.1);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Support Section (Footer) */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.support-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 5px;
}

.support-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-grey);
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.support-menu a i {
    width: 20px;
    font-size: 16px;
    color: var(--text-grey);
    text-align: center;
}

.support-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.support-menu a:hover i {
    color: var(--primary-color);
}


#logout-link:hover {
    background: #fef2f2;
    color: #ef4444 !important;
}

#logout-link:hover i {
    color: #ef4444 !important;
}

/* --- SIDEBAR MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

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

.modal-card {
    background: var(--white);
    width: 90%;
    max-width: 550px;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-grey);
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

.modal-header .modal-icon {
    width: 70px;
    height: 70px;
    background: #E6F9F0;
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-grey);
    font-size: 14px;
    margin-bottom: 30px;
}

.share-link-container {
    display: flex;
    background: #F1F5F9;
    padding: 6px;
    border-radius: 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid #E2E8F0;
}

.share-link-container input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-dark);
    width: 100%;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.copy-btn:hover {
    filter: brightness(1.1);
}

.copy-btn.copied {
    background: #5ED185;
}

.copy-toast {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.copy-toast.show {
    bottom: -50px;
    opacity: 1;
}

.support-modal-content {
    text-align: left;
}

.support-options {
    margin-bottom: 30px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.support-option:last-child {
    border-bottom: none;
}

.support-option i {
    font-size: 20px;
    color: var(--primary-color);
    width: 30px;
}

.support-option h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.support-option p {
    font-size: 14px;
    color: var(--text-grey);
    margin: 0;
}

.support-form h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.support-form label {
    display: block;
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    outline: none;
    transition: 0.3s;
}

.support-form select:focus,
.support-form textarea:focus {
    border-color: var(--primary-color);
}

.support-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Sidebar Responsive Modals */
@media (max-width: 768px) {
    .modal-card {
        width: 95%;
        max-width: 95%;
        padding: 30px 20px;
    }
}

/* Mentor Registration Form Styles */
.mentor-modal-content {
    text-align: left;
    margin-top: 20px;
}

#mentor-registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.highlight {
    background: #f0f9ff;
    margin: 0 -40px;
    padding: 20px 40px;
}

.mentor-modal-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor-modal-content label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.mentor-modal-content label a {
    color: var(--primary-color);
    text-decoration: none;
}

.mentor-modal-content input[type="text"],
.mentor-modal-content input[type="email"],
.mentor-modal-content input[type="tel"],
.mentor-modal-content input[type="password"],
.mentor-modal-content select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: 0.2s;
}

.mentor-modal-content input:focus,
.mentor-modal-content select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(61, 190, 123, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.2s;
    overflow: hidden;
}

.password-input-wrapper:focus-within {
    box-shadow: 0 0 0 4px rgba(61, 190, 123, 0.1);
    background: white;
}

.password-input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 14px;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-dark);
}

.toggle-password-btn {
    background: none;
    border: none;
    color: var(--text-grey);
    padding: 0 15px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    color: var(--primary-color);
}

.mentor-modal-content .terms {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-grey);
}

.mentor-modal-content .terms input {
    width: 18px;
    height: 18px;
}

.btn-confirm {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(61, 190, 123, 0.2);
    margin-top: 10px;
}

.btn-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 190, 123, 0.3);
}

.btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#change-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#password-modal .modal-card {
    max-width: 450px;
}

#password-modal .modal-header p {
    margin-bottom: 20px;
}

#password-modal .btn-confirm {
    margin-top: 10px;
}

#password-error {
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

@media (max-width: 600px) {
    .modal-card {
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile Toggle Button (Burger Menu) */
.mobile-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(65, 209, 133, 0.3);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-grey);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .sidebar-close {
        display: block;
    }
}

/* Overlay for when sidebar is open on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}
