/* ========================================
   ALICE DASHBOARD — "Trust & Professionalism" Theme
   Based on landingpageflow.com color combination #1
   Adapted for dark mode
   ======================================== */

:root {
    /* Professional Navy System */
    --accent-power: #00A8E8;
    --accent-power-dark: #0090C9;
    --accent-coolant: #4FC3F7;
    --accent-coolant-dark: #3AA8D8;
    
    /* Functional */
    --success-color: #059669;
    --warning-color: #D97706;
    --danger-color: #DC2626;
    --info-color: #3B82F6;
    
    /* Backgrounds — Deep Navy Professional */
    --bg-void: #090920;
    --bg-base: #0D0D2B;
    --bg-elevated: #141440;
    --bg-surface: #1A1A50;
    --bg-glass: rgba(13, 13, 43, 0.85);
    
    /* Text */
    --text-primary: #E8ECF4;
    --text-secondary: #8B9AB8;
    --text-muted: #5A6A8A;
    --text-inverse: #090920;
    
    /* Structural */
    --accent-grid: #2A2A60;
    --border-color: rgba(0, 168, 232, 0.12);
    --border-hover: rgba(0, 168, 232, 0.30);
    
    /* Effects */
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.5);
    --glow-amber: 0 0 20px rgba(0, 168, 232, 0.25);
    --glow-cyan: 0 0 20px rgba(79, 195, 247, 0.20);
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    
    /* Gradients */
    --gradient-power: linear-gradient(135deg, #00A8E8 0%, #4FC3F7 100%);
    --gradient-coolant: linear-gradient(135deg, #4FC3F7 0%, #00D4FF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 168, 232, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 100%, rgba(79, 195, 247, 0.03) 0%, transparent 40%),
        var(--bg-void);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.hamburger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-power);
}

.mobile-spacer {
    width: 36px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    z-index: 200;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

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

.mobile-menu-header span {
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-header button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    background: var(--accent-power);
    color: white;
}

.mobile-nav a.logout-link {
    color: var(--danger-color);
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 16px;
}

.mobile-nav a.logout-link:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-base);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-power);
}

.logo i {
    font-size: 28px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(0, 168, 232, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.15), transparent);
    border-left: 3px solid var(--accent-power);
    color: var(--accent-power);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details span {
    font-size: 14px;
    font-weight: 500;
}

.user-details small {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--bg-surface);
    color: var(--danger-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    height: var(--header-height);
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-power);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-power-dark);
    box-shadow: var(--glow-amber);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(79, 195, 247, 0.12);
    color: var(--accent-coolant);
    border: 1px solid rgba(79, 195, 247, 0.25);
}

.btn-secondary:hover {
    background: rgba(79, 195, 247, 0.2);
    box-shadow: var(--glow-cyan);
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.stat-icon.it { background: rgba(0, 168, 232, 0.12); color: var(--accent-power); }
.stat-icon.finance { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }
.stat-icon.reports { background: rgba(217, 119, 6, 0.12); color: var(--warning-color); }
.stat-icon.system { background: rgba(6, 182, 212, 0.12); color: var(--accent-coolant); }
.stat-icon.todo { background: rgba(90, 106, 138, 0.12); color: var(--text-secondary); }
.stat-icon.progress { background: rgba(6, 182, 212, 0.12); color: var(--accent-coolant); }
.stat-icon.review { background: rgba(217, 119, 6, 0.12); color: var(--warning-color); }
.stat-icon.done { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }
.stat-icon.sp500 { background: rgba(220, 38, 38, 0.12); color: var(--danger-color); }
.stat-icon.nasdaq { background: rgba(0, 168, 232, 0.12); color: var(--accent-power); }
.stat-icon.vix { background: rgba(217, 119, 6, 0.12); color: var(--warning-color); }
.stat-icon.gold { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

.change {
    font-size: 12px;
    font-weight: 600;
}

.change.positive { color: var(--success-color); }
.change.negative { color: var(--danger-color); }

/* Section */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-power);
}

.view-all {
    color: var(--accent-power);
    text-decoration: none;
    font-size: 14px;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.team-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.team-icon.it { background: rgba(0, 168, 232, 0.12); color: var(--accent-power); }
.team-icon.finance { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }

.team-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success-color);
}

.team-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-void);
    border-radius: var(--radius-sm);
}

.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.team-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.team-actions {
    display: flex;
    justify-content: flex-end;
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.report-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.report-icon.it { background: rgba(0, 168, 232, 0.12); color: var(--accent-power); }
.report-icon.finance { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }

.report-info {
    flex: 1;
}

.report-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.report-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 400px;
}

.kanban-column {
    background: var(--bg-base);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

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

.kanban-header h4 {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-header .count {
    background: var(--bg-surface);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.kanban-items {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: grab;
}

.kanban-card:hover {
    border-color: var(--border-hover);
}

.kanban-card h5 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.kanban-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.kanban-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.kanban-tag.it {
    background: rgba(0, 168, 232, 0.12);
    color: var(--accent-power);
}

.kanban-tag.finance {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success-color);
}

.kanban-avatars {
    display: flex;
    margin-left: auto;
}

.kanban-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-elevated);
    margin-left: -6px;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.task-item:hover {
    border-color: var(--border-hover);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--accent-grid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-checkbox:hover {
    border-color: var(--accent-power);
}

.task-checkbox.checked {
    background: var(--accent-power);
    border-color: var(--accent-power);
    color: var(--text-inverse);
}

.task-info {
    flex: 1;
}

.task-info h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.task-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.task-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.task-status.todo {
    background: rgba(90, 106, 138, 0.15);
    color: var(--text-muted);
}

.task-status.progress {
    background: rgba(0, 168, 232, 0.15);
    color: var(--accent-power);
}

.task-status.done {
    background: rgba(5, 150, 105, 0.15);
    color: var(--success-color);
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.it { background: rgba(0, 168, 232, 0.12); color: var(--accent-power); }
.activity-icon.finance { background: rgba(5, 150, 105, 0.12); color: var(--success-color); }
.activity-icon.system { background: rgba(6, 182, 212, 0.12); color: var(--accent-coolant); }

.activity-content p {
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-content p strong {
    font-weight: 500;
}

.activity-content small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Team Members */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.member-item:hover {
    background: var(--bg-base);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 14px;
    font-weight: 500;
}

.member-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.member-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.member-role.lead {
    background: rgba(0, 168, 232, 0.15);
    color: var(--accent-power);
}

.member-role.member {
    background: rgba(90, 106, 138, 0.15);
    color: var(--text-secondary);
}

/* Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-group {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.settings-group h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-group h3 i {
    color: var(--accent-power);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.settings-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.settings-item-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-surface);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle.active {
    background: var(--accent-power);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.toggle.active::after {
    left: 22px;
}

/* IT Dashboard Specific */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
}

.status-indicator.warning {
    background: var(--warning-color);
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
}

.status-indicator.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

.server-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s;
}

.server-card:hover {
    border-color: var(--border-hover);
}

.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.server-name {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.server-metric {
    text-align: center;
    padding: 12px;
    background: var(--bg-void);
    border-radius: var(--radius-sm);
}

.server-metric .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.server-metric .label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.metric-bar {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.metric-bar .fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.metric-bar .fill.success {
    background: var(--success-color);
}

.metric-bar .fill.warning {
    background: var(--warning-color);
}

.metric-bar .fill.danger {
    background: var(--danger-color);
}

/* Finance Dashboard Specific */
.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.portfolio-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.portfolio-card .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.portfolio-card .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.market-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.market-table tr:hover {
    background: rgba(0, 168, 232, 0.04);
}

.market-table .symbol {
    font-weight: 600;
    color: var(--accent-power);
}

.market-table .price {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.market-table .change {
    font-weight: 500;
}

/* Report Generator */
.report-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.template-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.template-card.selected {
    border-color: var(--accent-power);
    background: rgba(0, 168, 232, 0.08);
}

.template-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.template-card.it .template-icon {
    background: rgba(0, 168, 232, 0.12);
    color: var(--accent-power);
}

.template-card.finance .template-icon {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success-color);
}

.template-card h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.template-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Date Range Picker */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-void);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
}

.date-range input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}

.date-range i {
    color: var(--text-secondary);
}

/* Charts Placeholder */
.chart-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.chart-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Quick Stats */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.quick-stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-stat-card i {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-power);
}

.quick-stat-info {
    display: flex;
    flex-direction: column;
}

.quick-stat-info .value {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.quick-stat-info .label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-void);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-power);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-grid);
}

/* Responsive */
@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding-top: 56px;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .server-metrics {
        grid-template-columns: 1fr;
    }
    
    .market-table {
        font-size: 12px;
    }
    
    .market-table th,
    .market-table td {
        padding: 8px;
    }
}
