/* Auth Pages Styling */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.auth-card {
    background: #2a2a2a;
    border: 2px solid #DC143C;
    border-radius: 15px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}
/* User Greeting in Navbar */
#userGreeting {
    color: #fff;
    font-weight: 500;
    margin-right: 15px;
    display: none; /* Hidden by default */
}

/* Auth Links Styling */
.navbar .auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .auth-links a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.navbar .auth-links a:hover {
    opacity: 0.8;
}
.user-menu {
    position: relative;
}

.user-menu-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.user-menu-btn:hover {
    background: #333;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu-dropdown a:hover {
    background: #2a2a2a;
}
#logoutLink {
    background-color: #DC143C;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

#logoutLink:hover {
    background-color: #b01030;
}
.auth-card h2 {
    color: #DC143C;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #DC143C;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #888;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    color: #aaa;
}

.auth-links a {
    color: #DC143C;
    text-decoration: none;
    margin: 0 0.5rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links span {
    color: #666;
    margin: 0 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid #333;
    border-top: 4px solid #DC143C;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.notification {
    background: #2a2a2a;
    border: 2px solid;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-color: #28a745;
    color: #28a745;
}

.notification.error {
    border-color: #dc3545;
    color: #dc3545;
}

.notification.info {
    border-color: #17a2b8;
    color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.auth-card {
    background: #2a2a2a;
    border: 2px solid #DC143C;
    border-radius: 15px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.auth-card h2 {
    color: #DC143C;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #DC143C;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    color: #fff;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    color: #aaa;
}

.auth-links a {
    color: #DC143C;
    text-decoration: none;
    margin: 0 0.5rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links span {
    color: #666;
    margin: 0 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid #333;
    border-top: 4px solid #DC143C;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.notification {
    background: #2a2a2a;
    border: 2px solid;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-color: #28a745;
    color: #28a745;
}

.notification.error {
    border-color: #dc3545;
    color: #dc3545;
}

.notification.info {
    border-color: #17a2b8;
    color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}