/* ========================================
   UNITE US ONLINE - LAYOUT STYLES
   Complete rewrite for clean, responsive design
   ======================================== */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

:root {
    --header-height: 120px;
    --footer-height: 60px;
    --sidebar-width: 280px;
    --content-padding: 2rem;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.6;
}

/* ========================================
   HEADER - Fixed Top Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: var(--header-height);
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 2rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    gap: 0;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 10px;
}


.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.slogan {
    font-size: 0.875rem;
    color: #a0a0a0;
    margin: 0;
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
    padding: 10px 20px;
    flex-wrap: nowrap;
}

/* Make the ul inside header-nav also flex */
.header-nav ul {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
}


.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Override global li styles for header navigation */
.header-nav li {
    margin: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}

.nav a,
.header-nav a {
    color: #e5e5e5;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    background-color: #404040;
    border: 1px solid #555;
    white-space: nowrap;
}

.nav a:hover,
.header-nav a:hover {
    background-color: #555;
    color: #ffffff;
}

.nav a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Notification bell styling to match hamburger menu */
.notification-bell {
    color: #e5e5e5 !important;
    text-decoration: none;
    font-weight: 500;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1rem;
    background-color: #404040 !important;
    border: 1px solid #555;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    position: fixed !important;
    top: 1rem !important;
    right: 3.5rem !important;
    z-index: 1001 !important;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    box-shadow: var(--shadow);
    visibility: visible !important;
    opacity: 1 !important;
}

.notification-bell:hover {
    background-color: #555;
    color: #ffffff;
    transform: scale(1.05);
}

.notification-bell:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    padding: 0 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.notification-badge.hidden {
    display: none;
}

/* Enhanced notification bell animations */
.notification-bell-enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell-enhanced.has-notifications {
    animation: bellShake 0.5s ease-in-out;
    color: #3b82f6;
}

.notification-badge.pulse {
    animation: badgePulse 1s ease-in-out infinite;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Notification Dropdown */
.notification-dropdown {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    background: #1f1f1f;
    border: 1px solid #404040;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #404040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2a2a2a;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e5e5e5;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.notification-dropdown .notification-item {
    padding: 1rem;
    border-bottom: 1px solid #404040;
    display: flex;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
    position: relative;
    margin: 0;
    animation: none;
    transform: none;
    box-shadow: none;
}

.notification-dropdown .notification-item:hover {
    background: #2a2a2a;
    transform: none;
}

.notification-dropdown .notification-item.unread {
    background: #1a1a2e;
    border-left: 3px solid #3b82f6;
}

.notification-dropdown .notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translateY(-50%);
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-message {
    color: #a0a0a0;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #a0a0a0;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.notification-footer {
    padding: 1rem;
    border-top: 1px solid #404040;
    background: #2a2a2a;
    text-align: center;
}

/* Empty State */
.empty-notifications {
    padding: 2rem;
    text-align: center;
    color: #a0a0a0;
}

.empty-notifications .empty-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.875rem;
}

/* ========================================
   HAMBURGER MENU - Mobile Navigation
   ======================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: #404040;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: fixed;
    top: 1rem;
    right: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.hamburger:hover {
    background: #555;
    transform: scale(1.05);
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   MAIN LAYOUT - 90% Width Container
   ======================================== */

.main-container {
    display: flex;
    width: 90% !important;
    min-width: 90%;
    max-width: 1400px;
    margin: calc(var(--header-height) + 2rem) auto calc(var(--footer-height) + 2rem) auto;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - 4rem);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: #2d2d2d;
}

/* ========================================
   SIDEBAR - Left Navigation Menu
   ======================================== */

.sidebar {
    width: var(--sidebar-width);
    background-color: #1f1f1f;
    border-right: 1px solid #404040;
    padding: 2rem;
    overflow-y: auto;
    flex-shrink: 0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #404040;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav a:hover {
    background-color: #404040;
    color: #ffffff;
}

/* ========================================
   CONTENT AREA - Main Content
   ======================================== */

.content {
    flex: 1;
    padding: 2rem;
    background-color: #2d2d2d;
    overflow-y: auto;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 100px; /* Space for reCAPTCHA */
}

/* ========================================
   FOOTER - Bottom Footer
   ======================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background-color: #1f1f1f;
    border-top: 1px solid #404040;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.footer-content {
    text-align: center;
    color: #a0a0a0;
    font-size: 0.875rem;
}

.footer-content p {
    margin: 0;
}

.debug-indicator {
    color: #f59e0b;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ========================================
   MOBILE OVERLAY
   ======================================== */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ========================================
   LANDSCAPE MOBILE - Header on Left Side
   ======================================== */

@media (orientation: landscape) and (max-width: 768px) {
    /* Header-specific changes for landscape */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        height: 100vh;
        max-height: 100vh;
        padding: 0.25rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        border-right: 1px solid #404040;
        border-top: 1px solid #404040;
        border-bottom: 1px solid #404040;
        border-left: none;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        width: 100%;
        gap: 0.5rem;
        overflow: hidden;
        box-sizing: border-box;
        max-height: 100%;
        padding-top: 0.5rem;
    }
    
    .header-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.25rem;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 2rem);
        overflow: hidden;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    /* Logo and slogan side by side horizontally */
    .logo {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
        writing-mode: vertical-lr;
        text-orientation: upright;
        max-height: calc(100vh - 2rem);
        max-width: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo a {
        display: inline-block;
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .slogan {
        font-size: 0.55rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 35px - 0.5rem);
        max-height: calc(100vh - 2rem);
        writing-mode: vertical-lr;
        text-orientation: upright;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Show and adjust hamburger position (closest to right edge) */
    .hamburger {
        display: flex !important;
        top: 1rem;
        left: auto;
        right: 1rem;
        z-index: 1002;
    }
    
    /* Adjust notification bell (to the left of hamburger) */
    .notification-bell {
        top: 1rem !important;
        right: 3.5rem !important;
        left: auto !important;
        z-index: 1001 !important;
    }
    
    /* Copy all portrait mobile rules (navigation, sidebar, etc.) */
    .header-nav {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .main-container {
        margin-left: 100px;
        width: calc(95% - 100px) !important;
        min-width: calc(95% - 100px);
        margin-top: 1rem;
        margin-bottom: calc(var(--footer-height) + 1rem);
        flex-direction: column;
        min-height: calc(100vh - var(--footer-height) - 2rem);
    }
    
    .sidebar {
        width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        border-right: none;
        border-bottom: 1px solid #404040;
        order: 2;
        display: none !important;
        position: fixed;
        top: 0;
        left: 100px;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: #1f1f1f;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .sidebar.active {
        display: block !important;
    }
    
    .content {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        border-left: none;
        border-top: 1px solid #404040;
        padding: var(--content-padding);
    }
}

/* ========================================
   PORTRAIT MOBILE - Header on Top
   ======================================== */

@media (max-width: 768px) and (orientation: portrait) {
    .header {
        padding: 0.5rem 1rem;
        height: auto;
        min-height: var(--header-height);
    }
    
    .header-brand {
        padding: 8px 15px;
        margin-bottom: 8px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .slogan {
        font-size: 0.75rem;
    }
    
    .header-nav {
        display: none; /* Hide nav on mobile portrait */
    }
    
    .nav a {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    
    .nav {
        display: none; /* Hide desktop nav on mobile */
    }
    
    .hamburger {
        display: flex; /* Show hamburger on mobile */
    }
    
    .main-container {
        width: 95% !important;
        min-width: 95%;
        margin: calc(var(--header-height) + 1rem) auto calc(var(--footer-height) + 1rem) auto;
        flex-direction: column;
        min-height: calc(100vh - var(--header-height) - var(--footer-height) - 2rem);
    }
    
    .sidebar {
        width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        border-right: none;
        border-bottom: 1px solid #404040;
        order: 2;
        display: none !important; /* Hidden by default on mobile */
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background-color: #1f1f1f;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .sidebar.active {
        display: block !important; /* Show when hamburger is clicked */
    }
    
    .content {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        order: 1;
        padding: 1.5rem;
        margin-bottom: 80px;
    }
    
    .footer {
        padding: 0 1rem;
    }
    
    .footer-content {
        font-size: 0.75rem;
    }
}

/* ========================================
   TABLET STYLES
   ======================================== */

@media (min-width: 1025px) and (max-width: 1200px) {
    .main-container {
        width: 95%;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .content {
        padding: 1.5rem;
    }
}

/* ========================================
   FORM STYLES - Compact and Clean
   ======================================== */

/* Form styles inherited from components.css - layout-specific overrides only */

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #404040;
    border-radius: 6px;
    background-color: #1f1f1f;
    color: #e5e5e5;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #6b7280;
}

/* Button styles moved to components.css - this file should only contain layout-specific styles */

/* ========================================
   NOTIFICATION SYSTEM STYLES
   ======================================== */

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    max-width: 400px;
    pointer-events: none;
}

.notification-item {
    background-color: #1f1f1f;
    border: 1px solid #404040;
    color: #e5e5e5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.notification-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-item.unread {
    border-left: 4px solid #3b82f6;
    background-color: #1a1a2e;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item.notification-friend_request {
    border-left-color: #059669;
}

.notification-item.notification-friend_accepted {
    border-left-color: #059669;
}

.notification-item.notification-message {
    border-left-color: #3b82f6;
}

.notification-item.notification-system {
    border-left-color: #d97706;
}

.notification-item.notification-error {
    border-left-color: #dc2626;
    background-color: #2d1b1b;
}

.notification-item.notification-success {
    border-left-color: #059669;
    background-color: #1b2d1b;
}

.notification-item.notification-warning {
    border-left-color: #d97706;
    background-color: #2d251b;
}

.notification-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.notification-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #a0a0a0;
}

.notification-time {
    font-size: 0.7rem;
    color: #6b7280;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background-color: #404040;
    color: #ffffff;
}

/* Duplicate notification dropdown CSS removed - using the first definition above */

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.mark-all-read {
    background: none;
    border: 1px solid #404040;
    color: #a0a0a0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background-color: #404040;
    color: #ffffff;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-list .notification-item {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #404040;
    animation: none;
}

.notification-list .notification-item:last-child {
    border-bottom: none;
}

.notification-list .notification-item:hover {
    transform: none;
    background-color: #2a2a2a;
}

.no-notifications {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem 1rem;
}


/* Duplicate notification badge CSS removed - using the first definition above */

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

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

/* Auto-dismiss animation */
.notification-item.dismissing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   ERROR HANDLING STYLES (Legacy)
   ======================================== */

.error-popup-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    max-width: 400px;
}

.error-box {
    background-color: #dc2626;
    color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.error-box.success {
    background-color: #059669;
}

.error-box.warning {
    background-color: #d97706;
}

.error-box.info {
    background-color: #2563eb;
}

.error-box .error-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading .spinner {
    display: inline-block;
}

/* Specialized Profile Modal - Different from global ModalSystem */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.profile-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-modal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.profile-modal .modal-body {
    padding: 1rem;
}

.profile-modal .modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: #a0a0a0;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}