/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.1rem;
    margin-top: 2rem;
    opacity: 0.9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}


/* Navigation Bar */
.Navigation_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1.0rem 0;
    backdrop-filter: blur(20px);
    background: rgba(229, 230, 238, 0.973);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color:rgb(161, 158, 212);
}

#menu-toggler {
    display: none;
}

#hamburger-btn {
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

#hamburger-btn span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.all-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.all-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.all-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}

.all-links a:hover {
    color: #4F46E5;
}

.all-links a:hover::after {
    width: 100%;
}

/* Profile Container */
.profile-container {
    position: relative;
}

#profile-toggler {
    display: none;
}

/* Sign In Button (Not Logged In) */
.sign-in-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Profile Button (Logged In) */
.profile-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg,rgb(75, 229, 70),rgb(58, 237, 67));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.profile-btn:hover {
    border-color:rgb(19, 206, 29);
    transform: scale(1.05);
}

.profile-btn i {
    color: white;
    font-size: 1.2rem;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#profile-toggler:checked ~ .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 0.25rem;
}

.profile-avatar-overlay i {
    font-size: 1.5rem;
    color: white;
}

.profile-avatar-overlay span {
    font-size: 0.7rem;
    color: white;
}

.profile-info {
    text-align: center;
}

.profile-info h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.profile-info p {
    color: #666;
    font-size: 0.9rem;
}

.profile-menu {
    list-style: none;
    padding: 0.5rem 0;
}

.profile-menu li {
    margin-bottom: 0;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-menu a:hover {
    background: rgba(79, 70, 229, 0.1);
}

.profile-menu a i {
    color: #666;
    width: 24px;
    font-size: 1.1rem;
}

/* Full Screen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: #f3f4f6;
    transform: rotate(90deg);
}

.image-modal-actions {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.image-modal-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.image-modal-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.image-modal-btn.delete {
    background: #ef4444;
    color: white;
}

.image-modal-btn.delete:hover {
    background: #dc2626;
}

/* Change Photo Modal */
.change-photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.change-photo-modal.active {
    display: flex;
}

.change-photo-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.change-photo-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.change-photo-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.change-photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.change-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.change-photo-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.change-photo-btn.upload {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
}

.change-photo-btn.upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.change-photo-btn.view {
    background: #f3f4f6;
    color: #333;
}

.change-photo-btn.view:hover {
    background: #e5e7eb;
}

.change-photo-btn.delete {
    background: #fee2e2;
    color: #991b1b;
}

.change-photo-btn.delete:hover {
    background: #fecaca;
}

.change-photo-btn.cancel {
    background: transparent;
    color: #666;
    border: 2px solid #e5e7eb;
}

.change-photo-btn.cancel:hover {
    border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 886px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .navbar-left {
        gap: 1rem;
    }

    #hamburger-btn {
        display: flex;
    }

    .all-links {
        position: fixed;
        top: 75px;
        left: -100%;
        flex-direction: column;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0 20px 20px 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 75px);
        padding: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .all-links a {
        color: #333;
    }

    #menu-toggler:checked ~ .all-links {
        left: 0;
    }

    .profile-dropdown {
        right: -10px;
        min-width: 280px;
    }
}

@media (max-width: 422px) {
    .navbar {
        padding: 0 1rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .sign-in-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .sign-in-btn span {
        display: none;
    }

    .profile-btn {
        width: 40px;
        height: 40px;
    }

    .profile-dropdown {
        min-width: calc(100vw - 2rem);
        right: -1rem;
    }

    .all-links {
        width: 85%;
        padding: 2rem 1.5rem;
    }

    .change-photo-content {
        padding: 1.5rem;
    }
}

/* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-modal.active {
    display: flex;
}

.auth-container {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #333;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-body {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 0.5rem;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.dob-row select {
    padding: 0.875rem 0.75rem;
}

.image-upload-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e5e7eb;
}

.image-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview i {
    font-size: 3rem;
    color: white;
}

.image-upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-weight: 500;
}

.image-upload-label:hover {
    background: #e5e7eb;
    color: #333;
}

.image-upload-input {
    display: none;
}

.image-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: #4F46E5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}