/* --- GLOBAL STYLES --- */
:root {
    --bg-body: #eef1f5;
    --text-main: #1c1c1e;
    --text-secondary: #6e6e73;
    --card-bg: #ffffff;
    --border-light: rgba(0,0,0,0.08);
    --blue: #4f46e5;
    --red: #ff3b30;
    --orange: #f59e0b;
    --green: #10b981;
    --purple: #8b5cf6;
    --dock-bg: rgba(255, 255, 255, 0.85);
    --dock-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 25px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    height: 100vh; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Page Layout */
.page-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: -webkit-linear-gradient(45deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255,255,255,0.6);
    padding: 6px 12px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
}

.user-avatar {
    width: 28px; height: 28px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
}

.main-content {
    flex: 1;
    padding: 0 40px 100px 40px; /* Bottom padding for Dock */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* DOCK (Floating Menu) */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.dock {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: var(--dock-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    border: 1px solid var(--dock-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.dock-link { text-decoration: none; position: relative; }

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255,255,255,0.5);
    color: #555;
    position: relative;
}

.dock-icon svg { width: 26px; height: 26px; fill: currentColor; }
.dock-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.dock-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: white;
    color: var(--blue);
}

.dock-icon.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.dock-icon.active svg { fill: white; }

/* Tooltip */
.dock-icon::after {
    content: attr(data-title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    white-space: nowrap;
    pointer-events: none;
}
.dock-icon:hover::after { opacity: 1; visibility: visible; bottom: 125%; }
body.auth-required { 
    visibility: hidden; 
}

body.auth-required.authorized { 
    visibility: visible; 
}