/* Protask: Midnight Architect Design System - REFINED */

:root {
    --bg: #060e20;
    --primary: #bd9dff;
    --primary-dim: #8a4cfc;
    --secondary: #34b5fa;
    --surface: #0f1930;
    --surface-high: #141f38;
    --surface-highest: #192540;
    --on-surface: #dee5ff;
    --text-dim: #717c9b;
    --error: #ff4766;
    --success: #10b981;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 20, 45, 0.4);
    backdrop-filter: blur(50px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #444d66;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 2.5rem 0 1rem 1rem;
}

.nav-item {
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.4rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active, .nav-item:hover {
    color: white;
    background: rgba(189, 157, 255, 0.08);
}

.nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(189, 157, 255, 0.1);
}

/* Main Content & Layout */
.main-content {
    margin-left: 280px;
    padding: 5rem;
    width: calc(100% - 280px);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

header h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 3.5rem;
    margin: 1rem 0 0 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 1rem;
}

/* Dashbaord Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    flex: 1;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem;
    border-radius: 2.5rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.glass-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    font-weight: 700;
}

/* Task Cards */
.task-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.task-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.status-todo { background: #444d66; }
.status-in_progress { background: var(--secondary); box-shadow: 0 0 15px rgba(52, 181, 250, 0.4); }
.status-review { background: #ff86c3; }
.status-completed { background: var(--success); opacity: 0.4; }

.priority-tag {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    animation: bloom 3s infinite ease-in-out;
}

@keyframes bloom {
    0%, 100% { box-shadow: 0 0 5px transparent; }
    50% { box-shadow: 0 0 15px currentColor; }
}

.priority-high { color: #ff6e84; background: rgba(255, 110, 132, 0.15); border: 1px solid rgba(255, 110, 132, 0.2); }
.priority-medium { color: #fbbf24; background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.2); }
.priority-low { color: #34b5fa; background: rgba(52, 181, 250, 0.15); border: 1px solid rgba(52, 181, 250, 0.2); }

/* Buttons & Common */
.btn-fab {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 72px;
    height: 72px;
    border-radius: 24px;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(138, 76, 252, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.btn-fab:hover { transform: scale(1.1) translateY(-5px); }

.role-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.logout { margin-top: auto; color: var(--error); text-decoration: none; font-weight: 700; padding: 1.25rem; border-radius: 1.25rem; transition: all 0.3s; font-size: 0.95rem; }
.logout:hover { background: rgba(255, 71, 102, 0.1); }
