/* Toast Notifications Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    max-width: 400px;
}

/* Toast Notification Styles */
.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    padding: 16px 20px;
    pointer-events: auto;
    position: relative;
    animation: toastSlideIn 0.3s ease-out;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    word-wrap: break-word;
    min-height: 52px;
}

.toast::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 8px 0 0 8px;
}

.toast.success {
    border: 1px solid #c3e6cb;
    color: #155724;
}

.toast.success::before {
    background: #28a745;
}

.toast.error {
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.toast.error::before {
    background: #dc3545;
}

.toast.info {
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.toast.info::before {
    background: #17a2b8;
}

.toast.warning {
    border: 1px solid #ffeaa7;
    color: #856404;
}

.toast.warning::before {
    background: #ffc107;
}

/* Toast Icons */
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.toast.success .toast-icon {
    background: #28a745;
}

.toast.error .toast-icon {
    background: #dc3545;
}

.toast.info .toast-icon {
    background: #17a2b8;
}

.toast.warning .toast-icon {
    background: #ffc107;
}

.toast-content {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #555;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.2s;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 12px;
    z-index: 1;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: scale(1.1);
}

/* Toast Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Global Message Utilities */
.showMessage {
    /* Utility class for JavaScript message showing */
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo Styles */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation Styles */
.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav a:hover {
    color: #2563eb;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.nav a.active {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}


/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User Greeting */
.user-greeting {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    margin-right: 0.5rem;
}

/* Button Styles - Header specific sizes */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* Small buttons for compact areas */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Footer Styles */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.footer-section h4,
.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-legal {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    margin: 0 0.5rem;
    color: #6b7280;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header mobile styles */
    .header-content {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .nav a {
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .user-greeting {
        font-size: 12px;
        margin-right: 0.25rem;
    }
    
    /* Footer mobile styles */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}