/* CALEB COMMAND CENTER - Light Mode Apple/Stripe UI */
:root {
    --bg-light: #f8fafc;
    --card-light: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #3b82f6; /* Trust Blue */
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text-main); background: var(--bg-light); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--accent); }

/* Layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--card-light); border-right: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; }
.main-content { flex: 1; padding: 32px 48px; overflow-y: auto; background: var(--bg-light); }

/* Sidebar */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.brand h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(90deg, #0f172a, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-muted); font-size: 15px; font-weight: 500; border-radius: 8px; margin-bottom: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { background: rgba(59, 130, 246, 0.1); color: var(--accent); }

/* Top Bar */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -1px; color: var(--text-main); }
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Dashboard Metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.metric-card { background: var(--card-light); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.metric-title { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.metric-value { font-size: 32px; font-weight: 700; color: var(--text-main); }
.metric-trend { font-size: 13px; color: var(--success); font-weight: 500; margin-top: 8px; }

/* Goal & Task Section (New) */
.goal-section { display: flex; gap: 24px; margin-bottom: 40px; align-items: flex-start; }
.goal-card { background: var(--card-light); border: 1px solid var(--border); border-radius: 16px; padding: 24px; flex: 1; box-shadow: var(--shadow-sm); }
.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.goal-title { font-size: 18px; font-weight: 700; color: var(--text-main); }

/* Tasks List */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; transition: transform 0.2s; }
.task-item:hover { border-color: var(--accent); }
.task-checkbox { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.task-checkbox.checked { background: var(--success); border-color: var(--success); }
.task-checkbox.checked::after { content: "✓"; color: #fff; font-size: 12px; font-weight: bold; }
.task-text { font-size: 15px; font-weight: 500; color: var(--text-main); flex: 1; }
.task-item.completed .task-text { text-decoration: line-through; color: var(--text-muted); }
.task-add { display: flex; gap: 8px; margin-top: 16px; }
.task-add input { flex: 1; }

/* Kanban Pipeline */
.kanban-board { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; }
.kanban-col { background: var(--bg-light); border: 1px dashed var(--border); border-radius: 12px; width: 300px; min-width: 300px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.col-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.col-title { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.col-count { background: #e2e8f0; color: #475569; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }

.deal-card { background: var(--card-light); border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: grab; transition: transform 0.2s; box-shadow: var(--shadow-sm); }
.deal-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.deal-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.deal-value { font-size: 16px; font-weight: 700; color: var(--success); margin-bottom: 12px; }
.deal-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.deal-brand { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #475569; font-weight: 500; }

/* Buttons & Inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; outline: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; }

/* Login Screen */
.login-wrap { height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-gradient); }
.login-box { background: var(--card-light); border: 1px solid var(--border); padding: 48px; border-radius: 24px; width: 100%; max-width: 400px; text-align: center; box-shadow: var(--shadow-xl); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.form-group input, .form-group select { width: 100%; padding: 14px 16px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; color: var(--text-main); font-size: 15px; font-family: var(--font); transition: all 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); background: #fff; }
