/* Authentication UI Styles */

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.auth-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

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

.auth-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-modal small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.auth-modal .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-modal .form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.auth-modal .form-links a {
    color: #3b82f6;
    text-decoration: none;
}

.auth-modal .form-links a:hover {
    text-decoration: underline;
}

.auth-modal .error-message {
    color: #ef4444;
    margin-top: 15px;
    font-size: 14px;
}

.auth-modal .plan-info {
    margin-bottom: 20px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    font-weight: 500;
}

/* User Menu and Logout Button */
.user-nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

.username, .email {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

#logoutBtn {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

#logoutBtn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* User Menu */
.user-menu-container {
    position: fixed;
    z-index: 1000;
    display: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.user-menu {
    background-color: #fff;
    border-radius: 8px;
    min-width: 200px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.user-info .email {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    padding: 0;
    margin: 0;
}

.user-menu li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
}

.user-menu li a:hover {
    background-color: #f5f5f5;
}

.user-menu li.divider {
    height: 1px;
    background-color: #ddd;
    margin: 5px 0;
}

.user-menu-btn {
    display: flex;
    align-items: center;
}

.user-menu-btn .dropdown-icon {
    margin-left: 5px;
    font-size: 10px;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: notification-slide-in 0.3s ease-out forwards;
}

.notification-hiding {
    animation: notification-slide-out 0.3s ease-in forwards;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 15px;
}

.notification-message {
    flex: 1;
    margin-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

@keyframes notification-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notification-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Logout Link in Dropdown */
.logout-link {
    color: #ef4444 !important;
    font-weight: 500;
    display: flex !important;
    align-items: center;
}

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

.logout-icon {
    margin-right: 8px;
    font-size: 16px;
}
