/* task_hub.css - Shadcn-like styles (Compact) */

:root {
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --primary: #0f172a;
    --primary-foreground: #f8fafc;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #0f172a;
    --radius: 0.375rem;
    /* Slightly smaller radius */
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    line-height: 1.4;
    /* Tighter line height */
    font-size: 14px;
    /* Base font size smaller */
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    /* Narrower sidebar */
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    background-color: #fafafa;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    padding-left: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.375rem 0.5rem;
    /* Compact padding */
    border-radius: var(--radius);
    color: var(--muted-foreground);
    font-weight: 500;
    margin-bottom: 0.125rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.nav-link:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.nav-link.active {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-weight: 600;
}

.project-list {
    margin-top: 1.5rem;
}

.project-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem 2rem;
    /* Reduced padding */
    min-width: 0;
    background-color: #fff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    /* Smaller title */
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.25rem;
    /* Smaller height */
    padding: 0 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border-color: var(--border);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
}

.btn-ghost {
    background-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--accent);
}

.btn-sm {
    height: 1.75rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--card-foreground);
    margin-bottom: 0.75rem;
    /* Tighter spacing */
    padding: 1rem;
    /* Reduced padding */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

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

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    /* Less rounded */
    border: 1px solid transparent;
    padding: 0 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    height: 1.25rem;
    transition: all 0.2s;
}

.badge-outline {
    border-color: var(--border);
    color: var(--foreground);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: transparent;
}

/* Forms */
.form-group {
    margin-bottom: 0.875rem;
}

.label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.input,
.textarea,
.select {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background-color: transparent;
    padding: 0.375rem 0.625rem;
    /* Smaller padding */
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}

.textarea {
    min-height: 80px;
    resize: vertical;
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Utilities */
.text-muted {
    color: var(--muted-foreground);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.ml-auto {
    margin-left: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Status Colors */
.status-todo {
    border-left: 3px solid #64748b;
}

.status-doing {
    border-left: 3px solid #3b82f6;
    background-color: #f8fafc;
}

.status-done {
    border-left: 3px solid #10b981;
    opacity: 0.6;
    background-color: #fcfcfc;
}

.status-blocked {
    border-left: 3px solid #ef4444;
    background-color: #fef2f2;
}

/* Project dot */
.project-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Task List Grid for larger screens */
@media (min-width: 1024px) {
    .task-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }

    .card {
        margin-bottom: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .card-header {
        margin-bottom: auto;
        /* Push content down */
    }

    .card-meta {
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }
}