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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

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

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
}

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

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    overflow-y: auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
}

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

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

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.kpi-card:hover {
    transform: translateY(-4px);
}

.kpi-card.green { border-left: 4px solid var(--success); }
.kpi-card.yellow { border-left: 4px solid var(--warning); }
.kpi-card.blue { border-left: 4px solid var(--info); }
.kpi-card.purple { border-left: 4px solid #a855f7; }

.kpi-icon {
    font-size: 32px;
}

.kpi-content h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.kpi-trend {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Kanban */
.kanban-section {
    margin-bottom: 32px;
}

.kanban-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kanban-column {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
}

.column-header.complete { border-color: var(--success); }
.column-header.progress { border-color: var(--warning); }
.column-header.planned { border-color: var(--info); }

.column-title {
    font-weight: 600;
    font-size: 14px;
}

.column-count {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.kanban-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.kanban-card.priority-high {
    border-left: 3px solid var(--danger);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.kanban-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

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

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.badge.success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge.warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge.info { background: rgba(59, 130, 246, 0.2); color: var(--info); }
.badge.danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

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

/* Revenue */
.revenue-section {
    margin-bottom: 32px;
}

.revenue-section h2 {
    margin-bottom: 20px;
}

.revenue-table-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

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

.revenue-table th,
.revenue-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.revenue-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.revenue-table td {
    font-size: 14px;
}

.total-row {
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
}

/* Actions */
.actions-section {
    margin-bottom: 32px;
}

.actions-section h2 {
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.action-card.urgent { border-top: 3px solid var(--danger); }
.action-card.important { border-top: 3px solid var(--warning); }
.action-card.decision { border-top: 3px solid var(--info); }

.action-priority {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.action-card h4 {
    margin-bottom: 8px;
}

.action-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .kpi-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        flex-direction: column;
    }
}
/* Additional styles for new features */
.nav-item.nav-add { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3)); 
    border: 1px dashed #6366f1;
    margin-top: 8px;
}

.nav-item.nav-add:hover { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5)); 
}

.sync-status {
    font-size: 12px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

