:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    --accent-hover: #4f46e5;
    --border-color: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --row-bg: #161b26;
    --row-hover-bg: #1c2331;
    --row-border: rgba(255, 255, 255, 0.05);
}

.theme-light {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --accent-primary: #4f46e5;
    --accent-hover: #4338ca;
    --row-bg: #f1f5f9;
    --row-hover-bg: #e2e8f0;
    --row-border: rgba(0, 0, 0, 0.05);
}

.theme-light .badge-success { background: rgba(16, 185, 129, 0.15); color: #047857; }
.theme-light .badge-info { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.theme-light .badge-warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.theme-light .badge-danger { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }
.theme-light .badge-secondary { background: rgba(148, 163, 184, 0.2); color: #475569; }

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
}

.app-container {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 1rem;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-dark {
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%);
}

.theme-light {
    background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

h1 {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

button, label.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    height: 1.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

tr {
    background: var(--row-bg);
    border-bottom: 1px solid var(--row-border);
    transition: background-color 0.2s ease;
}

tr:hover {
    background: var(--row-hover-bg);
}

td {
    padding: 0.5rem;
    vertical-align: middle;
}

input[type="text"],
select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.text-high { color: #f87171; }
.text-medium { color: #fbbf24; }
.text-low { color: #34d399; }

.non-editable {
    cursor: not-allowed;
    opacity: 0.8;
}

.editable {
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.editable:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
}

.row-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

tr:hover .row-actions {
    opacity: 1;
}

input[type="date"].badge-date {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

input[type="date"].badge-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.theme-light input[type="date"].badge-date::-webkit-calendar-picker-indicator {
    filter: invert(0);
}

/* Tabs */
.btn-tab {
    transition: all 0.3s ease;
}

.btn-tab:hover {
    color: var(--accent-primary) !important;
}

/* Kanban Board */
.kanban-board {
    margin-top: 1rem;
}

.kanban-swimlane {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.kanban-swimlane:hover {
    background: rgba(255, 255, 255, 0.02);
}

.kanban-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary) !important;
}

.kanban-card:active {
    cursor: grabbing;
}

/* Priority Shades */
.priority-quick-wins { background: #059669; color: white; } /* Dark Green */
.priority-secondary-wins { background: #34d399; color: #065f46; } /* Light Green */

.priority-major-initiatives { background: #d97706; color: white; } /* Dark Yellow/Gold */
.priority-standard-projects { background: #fbbf24; color: #78350f; } /* Medium Yellow */
.priority-strategic-investments { background: #fef08a; color: #713f12; } /* Light Yellow */

.priority-fill-ins { background: #fca5a5; color: #7f1d1d; } /* Light Red */
.priority-inquiry-zone { background: #f87171; color: white; } /* Medium Red */
.priority-task-traps { background: #dc2626; color: white; } /* Dark Red */
.priority-thankless-tasks { background: #7f1d1d; color: white; } /* Darkest Red */

.priority-exploratory { background: #64748b; color: white; } /* Gray */
