/* ==========================================================================
   Apex Agency Hub - Premium Glassmorphism Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & CORE SETTINGS
   -------------------------------------------------------------------------- */
:root {
    --bg-color: hsl(222, 47%, 7%);
    --bg-gradient: radial-gradient(circle at 50% 0%, hsl(224, 60%, 15%) 0%, hsl(222, 47%, 7%) 80%);
    
    /* Glassmorphism token system */
    --glass-bg: hsla(223, 47%, 11%, 0.45);
    --glass-bg-hover: hsla(223, 47%, 15%, 0.6);
    --glass-border: hsla(217, 32%, 18%, 0.6);
    --glass-border-focus: hsla(250, 95%, 65%, 0.5);
    
    /* Color Palette */
    --primary-color: hsl(250, 95%, 65%);
    --primary-glow: hsla(250, 95%, 65%, 0.15);
    --primary-light: hsl(250, 95%, 75%);
    
    --secondary-color: hsl(190, 95%, 50%);
    --secondary-glow: hsla(190, 95%, 50%, 0.15);
    
    --accent-color: hsl(322, 85%, 60%);
    
    --success-color: hsl(142, 70%, 45%);
    --success-glow: hsla(142, 70%, 45%, 0.15);
    
    --warning-color: hsl(38, 92%, 50%);
    --warning-glow: hsla(38, 92%, 50%, 0.15);
    
    --error-color: hsl(346, 84%, 55%);
    --error-glow: hsla(346, 84%, 55%, 0.15);

    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 16%, 52%);
    
    /* Effects */
    --blur-intensity: 16px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-inner: inset 0 1px 1px 0 hsla(0, 0%, 100%, 0.05);
    --shadow-glow-purple: 0 0 20px 2px hsla(250, 95%, 65%, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Helpers */
.hidden {
    display: none !important;
}

.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--error-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.opacity-50 { opacity: 0.5; }
.width-full { width: 100%; }
.height-full { height: 100%; }

/* Custom Glow Classes */
.bg-indigo-glow { background: var(--primary-glow); }
.bg-cyan-glow { background: var(--secondary-glow); }
.bg-emerald-glow { background: var(--success-glow); }
.text-indigo { color: var(--primary-color); }
.text-cyan { color: var(--secondary-color); }
.text-emerald { color: var(--success-color); }

/* --------------------------------------------------------------------------
   2. REUSABLE GLASS COMPONENTS
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft), var(--shadow-inner);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: hsl(222, 47%, 7%);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg-hover);
    border-color: var(--text-muted);
}

.btn-success {
    background: var(--success-color);
    box-shadow: 0 0 15px hsla(142, 70%, 45%, 0.25);
}

.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-color);
}

.btn-logout {
    background: hsla(346, 84%, 55%, 0.1);
    border: 1px solid hsla(346, 84%, 55%, 0.25);
    color: var(--error-color);
}

.btn-logout:hover {
    background: var(--error-color);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.btn-icon:hover {
    background: var(--glass-bg-hover);
    color: var(--primary-color);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
}

.btn-text:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary-glow); color: var(--primary-color); }
.badge-secondary { background: var(--secondary-glow); color: var(--secondary-color); }
.badge-accent { background: hsla(322, 85%, 60%, 0.15); color: var(--accent-color); }
.badge-success { background: var(--success-glow); color: var(--success-color); }
.badge-warning { background: var(--warning-glow); color: var(--warning-color); }
.badge-error { background: var(--error-glow); color: var(--error-color); }

/* Forms */
.standard-form .input-group,
.login-form .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.standard-form label,
.login-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.standard-form input,
.standard-form select,
.standard-form textarea,
.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: hsla(223, 47%, 6%, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.input-wrapper input {
    padding-left: 44px;
}

.standard-form input:focus,
.standard-form select:focus,
.standard-form textarea:focus,
.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: hsla(223, 47%, 4%, 0.8);
}

.input-row {
    display: flex;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   3. SCREEN CONTROLS & ROUTING
   -------------------------------------------------------------------------- */
.screen {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity var(--transition-smooth);
    display: flex;
    overflow: hidden;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* --------------------------------------------------------------------------
   4. LOGIN CARD PANEL
   -------------------------------------------------------------------------- */
#login-screen {
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 10% 20%, hsla(250, 95%, 65%, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, hsla(190, 95%, 50%, 0.08) 0%, transparent 40%);
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: var(--shadow-glow-purple);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-options {
    margin: -10px 0 20px 0;
    text-align: center;
}

.tip-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tip-text b {
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   5. WORKPLACE SYSTEM LAYOUT
   -------------------------------------------------------------------------- */
.app-container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

#dashboard-screen {
    display: flex;
    flex-direction: row;
}

/* Glass Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: var(--primary-glow);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.brand-logo i {
    width: 20px;
    height: 20px;
}

.brand-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.role-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

/* User profile details in sidebar */
.user-profile-widget {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, hsla(250, 95%, 45%, 1) 100%);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.user-meta h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-meta p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Navigation items in sidebar */
.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}

.nav-item div,
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-item:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

.nav-item:hover i {
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-glow);
    color: var(--primary-color);
    border: 1px solid hsla(250, 95%, 65%, 0.15);
}

.nav-item.active i {
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

/* --------------------------------------------------------------------------
   6. MAIN PANEL ELEMENTS
   -------------------------------------------------------------------------- */
.main-content {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px 30px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.page-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.page-title p {
    font-size: 0.85rem;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Date Display Widget */
.date-widget {
    background: hsla(223, 47%, 5%, 0.4);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Live clocking controller widget */
.clock-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: hsla(223, 47%, 5%, 0.5);
    border: 1px solid var(--glass-border);
    padding: 5px 6px 5px 14px;
    border-radius: var(--radius-sm);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
    animation: pulse 2s infinite;
}

.status-offline {
    background-color: var(--text-muted);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.clock-timer {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: hsla(190, 95%, 50%, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Tabs Switchers */
.tab-panel {
    display: none;
    animation: fadeIn var(--transition-fast);
}

.tab-panel.active {
    display: block;
}

/* --------------------------------------------------------------------------
   7. CORE STAT CARDS GRID
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 26px;
    height: 26px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-content h2 {
    font-size: 1.6rem;
    font-weight: 750;
    line-height: 1;
}

.stat-sub {
    font-size: 0.75rem;
}

/* Progress indicator bars */
.progress-bar-container {
    width: 130px;
    height: 6px;
    background: hsla(222, 47%, 18%, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   8. CARD LAYOUT AND STRUCTURES
   -------------------------------------------------------------------------- */
.dashboard-row {
    display: flex;
    gap: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.border-bottom {
    border-bottom: 1px solid var(--glass-border);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title i {
    width: 22px;
    height: 22px;
}

.header-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

/* --------------------------------------------------------------------------
   9. TARGET LISTS & CHECKLIST SYSTEM
   -------------------------------------------------------------------------- */
.target-quick-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.target-quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: hsla(223, 47%, 6%, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.target-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.target-checkbox.checked {
    border-color: var(--success-color);
    background: var(--success-color);
}

.target-checkbox i {
    width: 14px;
    height: 14px;
    color: var(--bg-color);
    display: none;
}

.target-checkbox.checked i {
    display: block;
}

.target-text {
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}

.target-text.completed {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Target checklists panel view */
.inline-add-form {
    display: flex;
    gap: 10px;
}

.inline-add-form input {
    flex: 1;
    padding: 10px 14px;
    background: hsla(223, 47%, 5%, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.inline-add-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.target-checklist-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.target-full-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: hsla(223, 47%, 6%, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.btn-delete-target {
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 4px;
    display: flex;
    border-radius: 4px;
}

.btn-delete-target:hover {
    color: var(--error-color);
    background: hsla(346, 84%, 55%, 0.1);
}

/* --------------------------------------------------------------------------
   10. HOLIDAY & DOUGHNUT GRAPH SYSTEM
   -------------------------------------------------------------------------- */
.holiday-donut-chart-container {
    width: 140px;
    height: 140px;
    margin: 10px auto;
    position: relative;
}

.donut-chart {
    width: 100%;
    height: 100%;
}

.donut-ring {
    stroke: hsla(222, 47%, 18%, 0.5);
}

.donut-segment {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray 0.8s ease;
}

.donut-text-group {
    fill: var(--text-primary);
}

.donut-number {
    font-size: 1.45rem;
    font-weight: 800;
}

.donut-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    fill: var(--text-muted);
    letter-spacing: 1px;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.bg-cyan { background-color: var(--secondary-color); }
.legend-dot.bg-indigo { background-color: var(--primary-color); }

.legend-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* calculated days in holiday request */
.calculated-days-preview {
    background: var(--primary-glow);
    border: 1px dashed var(--primary-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   11. DATA TABLES
   -------------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 16px 24px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.table td {
    padding: 16px 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid hsla(217, 32%, 18%, 0.3);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: hsla(223, 47%, 16%, 0.15);
}

.table-avatar-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar-cell .mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. ADMIN CORE UTILITIES (NOTIFICATIONS & EVENT FEED)
   -------------------------------------------------------------------------- */
/* Notifications dropdown header indicator */
.notification-widget {
    position: relative;
}

.notification-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--error-color);
    box-shadow: 0 0 6px var(--error-color);
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 380px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-radius: var(--radius-md);
    animation: slideDown var(--transition-fast);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.dropdown-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

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

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid hsla(217, 32%, 18%, 0.3);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: hsla(223, 47%, 16%, 0.3);
}

.notification-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
}

.notification-item-content p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.notification-item-content span {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Event Logs Sidebar in Admin Main dashboard */
.admin-event-log-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.event-log-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: hsla(223, 47%, 6%, 0.25);
    border: 1px solid var(--glass-border);
}

.event-log-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.event-log-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Targets Summary Dashboard Cards Grid */
.target-progress-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.target-summary-card {
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: hsla(223, 47%, 6%, 0.2);
}

.target-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.target-summary-title h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.target-summary-title p {
    font-size: 0.75rem;
}

.target-summary-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.target-summary-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.target-summary-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.78rem;
}

/* Detailed Target monitoring board (Admin) */
.admin-targets-board-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.admin-member-targets-card {
    padding: 20px;
    background: hsla(223, 47%, 6%, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.member-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.member-targets-list-section h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.member-targets-list-section {
    margin-bottom: 16px;
}

.member-targets-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-target-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 6px 10px;
    background: hsla(223, 47%, 5%, 0.3);
    border-radius: 4px;
}

.member-target-row span.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. MODALS CONTAINER
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   14. TOAST ALERTS & ANIMATIONS
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    animation: slideIn var(--transition-fast) forwards;
    min-width: 250px;
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--error-color);
}

.toast-warning {
    background: var(--warning-color);
}

/* keyframes details */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 hsla(142, 70%, 45%, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px hsla(142, 70%, 45%, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 hsla(142, 70%, 45%, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* --------------------------------------------------------------------------
   15. RESPONSIVE MEDIA WRAPPERS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dashboard-row {
        flex-direction: column;
    }
    .sidebar {
        width: 80px;
    }
    .brand-text, .user-profile-widget .user-meta, .nav-item span {
        display: none !important;
    }
    .user-profile-widget {
        justify-content: center;
        padding: 16px 0;
    }
    .nav-item {
        justify-content: center;
        padding: 14px;
    }
    .nav-item i {
        margin: 0;
    }
    .sidebar-footer button span {
        display: none !important;
    }
    .sidebar-footer {
        padding: 16px 8px;
    }
}

@media (max-width: 768px) {
    #dashboard-screen {
        flex-direction: column;
    }
    .sidebar {
        width: 100vw;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    .sidebar-nav {
        padding: 12px;
    }
    .nav-group {
        flex-direction: row;
        justify-content: space-around;
    }
    .user-profile-widget, .sidebar-footer {
        display: none !important;
    }
    .top-bar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .top-bar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .main-content {
        padding: 16px;
        height: calc(100vh - 120px);
    }
}
}

/* ==========================================================================
   UPPTICK TEAM V2 - EXTRA INTERACTIVE STYLES
   ========================================================================== */

/* 1. Stopwatch glowing and widget styles */
.active-stopwatch-card {
    background: linear-gradient(135deg, hsla(250, 95%, 65%, 0.15) 0%, hsla(190, 95%, 50%, 0.08) 100%);
    border: 1px solid var(--primary-glow);
    box-shadow: var(--shadow-glow-purple), var(--shadow-soft);
    border-radius: var(--radius-md);
    animation: fadeIn var(--transition-fast);
}

.active-stopwatch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.active-stopwatch-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.active-stopwatch-details h3 {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.active-stopwatch-clock-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stopwatch-digits {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 0 12px hsla(190, 95%, 50%, 0.35);
    background: hsla(223, 47%, 4%, 0.6);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    letter-spacing: 1px;
}

/* 2. Priority badges customized colors */
.priority-badge {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.5px;
}
.priority-urgent {
    background: hsla(346, 84%, 55%, 0.15) !important;
    color: var(--error-color) !important;
    border: 1px solid hsla(346, 84%, 55%, 0.3) !important;
}
.priority-high {
    background: hsla(38, 92%, 50%, 0.15) !important;
    color: var(--warning-color) !important;
    border: 1px solid hsla(38, 92%, 50%, 0.3) !important;
}
.priority-medium {
    background: hsla(250, 95%, 65%, 0.15) !important;
    color: var(--primary-color) !important;
    border: 1px solid hsla(250, 95%, 65%, 0.3) !important;
}
.priority-low {
    background: hsla(215, 16%, 52%, 0.15) !important;
    color: var(--text-secondary) !important;
    border: 1px solid hsla(215, 16%, 52%, 0.3) !important;
}

/* 3. Task Terminal work queue */
.tasks-queue-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-queue-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: all var(--transition-fast);
}

.task-queue-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-focus);
}

.task-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.task-queue-info {
    flex: 1;
}

.task-queue-info h4 {
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--text-primary);
}

.task-queue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-meta-divider {
    color: var(--glass-border);
}

.task-queue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid hsla(217, 32%, 18%, 0.4);
    padding-top: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.task-time-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: hsla(223, 47%, 4%, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.task-timer-digits {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.task-action-btns {
    display: flex;
    gap: 8px;
}

/* Waiting for dependency style */
.task-blocked {
    border-left: 4px solid var(--warning-color) !important;
    background: hsla(38, 92%, 50%, 0.03) !important;
}

.task-blocked-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-color);
    font-weight: 600;
}

/* 4. Collaborative live chat styles */
.chat-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.chat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 20px;
}

.chat-feed-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: hsla(223, 47%, 4%, 0.4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.chat-message {
    max-width: 65%;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    position: relative;
    box-shadow: var(--shadow-inner);
    animation: fadeIn 0.25s ease;
}

.chat-message-left {
    background: hsla(223, 47%, 14%, 0.85);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message-right {
    background: var(--primary-glow);
    border: 1px solid hsla(250, 95%, 65%, 0.25);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-message-sender {
    font-weight: 750;
    font-size: 0.76rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
    letter-spacing: 0.3px;
}

.chat-message-text {
    line-height: 1.45;
    word-break: break-word;
}

.chat-message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 18px;
    background: hsla(223, 47%, 5%, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* 5. Client Manager Checkboxes List */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-item input {
    width: auto !important;
    cursor: pointer;
}

.checkbox-item:hover {
    color: var(--text-primary);
}

.summary-preview-area {
    animation: fadeIn var(--transition-fast);
}

.completed-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.completed-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: hsla(142, 70%, 45%, 0.05);
    border: 1px solid hsla(142, 70%, 45%, 0.15);
    border-radius: 4px;
    font-size: 0.84rem;
}

.completed-task-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Pulse animation utility */
.animate-pulse {
    animation: stopwatch-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes stopwatch-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

