/* Authentication Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.auth-modal-content::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

.auth-modal-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    color: #374151;
    border-radius: 20px 20px 0 0;
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.auth-close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
}

.auth-close:hover {
    opacity: 1;
    background: #e5e7eb;
}

.auth-form {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
}

.divider span {
    background-color: white;
    padding: 0 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.btn-google {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.2);
}

.btn-google i {
    font-size: 1.125rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
}

.auth-switch p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* User Dashboard Styles */
.user-dashboard {
    padding: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #667eea;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.user-details p {
    margin: 0 0 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-actions .btn {
    padding: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Enhancements */
.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.auth-form {
    position: relative;
    z-index: 1;
}

/* Form Row Enhancement */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Enhanced Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Auth Switch Enhancement */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.auth-switch p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    text-decoration: underline;
    color: #5a67d8;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
    min-width: auto;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    color: white;
}

.notification-success {
    background-color: #10b981;
}

.notification-error {
    background-color: #ef4444;
}

.notification-info {
    background-color: #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 520px;
        max-height: 95vh;
    }

    .auth-modal-header {
        padding: 0.75rem 1.5rem;
    }

    .auth-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        margin: 2% auto;
        width: 98%;
    }

    .auth-modal-header {
        padding: 0.5rem 1rem;
    }

    .auth-form {
        padding: 1rem;
    }

    .user-dashboard {
        padding: 1rem;
    }
}

/* ==========================================
   Auth Minimal Theme Overrides (2025)
   - Clean, modern, compact
   - Works across login/register modals
   - Mobile-first refinements
   ========================================== */
:root {
    --auth-primary: #1e293b; /* slate-800 */
    --auth-accent: #3b82f6;  /* blue-500 */
    --auth-danger: #ef4444;  /* red-500 */
    --auth-bg: #ffffff;
    --auth-muted: #6b7280;   /* gray-600 */
    --auth-border: #e5e7eb;  /* gray-200 */
    --auth-border-strong: #d1d5db; /* gray-300 */
    --auth-shadow: 0 8px 30px rgba(0,0,0,0.12);
    --auth-shadow-sm: 0 4px 14px rgba(0,0,0,0.08);
    --auth-radius: 16px;
    --auth-radius-sm: 10px;
}

/* Modal Container */
.auth-modal {
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

/* Card */
.auth-modal-content {
    background: var(--auth-bg);
    border-radius: var(--auth-radius);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-modal-header {
    background: #fff;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--auth-border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.auth-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--auth-primary);
}

.auth-close {
    color: var(--auth-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.auth-close:hover {
    background: #f3f4f6; /* gray-100 */
}

/* Body */
.auth-form {
    padding: 1.5rem;
    background: #fff;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--auth-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    padding: 0.75rem 0.9rem;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-group textarea {
    min-height: 100px;
}

/* Options row */
.form-options {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
}

.checkbox-label {
    color: var(--auth-muted);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--auth-accent);
}

.checkbox-label a { color: var(--auth-accent); }
.checkbox-label a:hover { text-decoration: underline; }

/* Buttons (scoped to auth modals to avoid collisions) */
#loginModal .btn,
#registerModal .btn,
#userDashboardModal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: var(--auth-primary);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

#loginModal .btn:hover,
#registerModal .btn:hover,
#userDashboardModal .btn:hover {
    box-shadow: var(--auth-shadow-sm);
    transform: translateY(-1px);
}

#loginModal .btn-full,
#registerModal .btn-full { width: 100%; }

#loginModal .btn-primary,
#registerModal .btn-primary,
#userDashboardModal .btn-primary {
    background: var(--auth-accent);
    color: #fff;
    border-color: var(--auth-accent);
}

#loginModal .btn-primary:hover,
#registerModal .btn-primary:hover,
#userDashboardModal .btn-primary:hover { background: #2563eb; }

#userDashboardModal .btn-outline {
    background: #fff;
    color: var(--auth-accent);
    border-color: var(--auth-accent);
}

#userDashboardModal .btn-outline:hover { background: rgba(59,130,246,0.06); }

/* Social */
.btn-google {
    background: #fff;
    border: 1px solid var(--auth-border-strong);
    color: #374151;
}
.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

/* Danger */
.btn-danger {
    background: var(--auth-danger);
    border-color: var(--auth-danger);
}
.btn-danger:hover { background: #dc2626; }

/* Divider */
.divider { margin: 1.5rem 0; }
.divider span {
    color: var(--auth-muted);
}

/* Dashboard small elements */
.stat-item { border-color: var(--auth-border); }

/* Notifications (already present) keep as-is */

/* Responsive refinements */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 94%;
        margin: 4% auto;
        border-radius: 14px;
    }
    .auth-modal-header { padding: 0.75rem 1rem; }
    .auth-form { padding: 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0.9rem; }
    .btn { padding: 0.7rem 0.9rem; }
}

@media (max-width: 480px) {
    .auth-modal-header h2 { font-size: 1rem; }
    .auth-form { padding: 1rem; }
    .btn { padding: 0.65rem 0.85rem; font-size: 0.95rem; }
    .btn-google { gap: 0.5rem; }
}