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

body {
    font-family: 'Inter', sans-serif;
    background: #191919;
    color: #E6E6E6;
    font-size: 14px;
}

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

/* Button Reset */
button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1F1F1F;
    padding: 20px 16px;
    border-right: 1px solid #2E2E2E;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #E6E6E6;
}

.nav {
    list-style: none;
}

.nav li {
    margin-bottom: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #9B9B9B;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav a:hover {
    background: #2A2A2A;
    color: #fff;
}

.icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 50px;
}

/* ============================= */
/* WORKSPACE HEADER CLEAN FINAL */
/* ============================= */

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

.workspace-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workspace-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.workspace-meta {
    font-size: 12px;
    color: #9B9B9B;
}

.project-select {
    background: #242424;
    border: 1px solid #2E2E2E;
    color: #E6E6E6;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 8px;
    min-width: 220px;
    cursor: pointer;
}

.project-select:hover {
    background: #2A2A2A;
}

.project-select:focus {
    border-color: #4F8CFF;
    outline: none;
}

/* ============================= */
/* VIEW SWITCH + BUTTONS */
/* ============================= */

.view-btn,
.primary-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    font-family: inherit;
}

.view-switch {
    display: flex;
    background: #242424;
    border: 1px solid #2E2E2E;
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: transparent;
    color: #9B9B9B;
    cursor: pointer;
    transition: 0.15s ease;
}

.view-btn:hover {
    background: #2A2A2A;
    color: #ffffff;
}

.view-btn.active {
    background: #2E2E2E;
    color: #ffffff;
}

.primary-btn {
    background: #4F8CFF;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    transition: 0.15s ease;
}

.primary-btn:hover {
    background: #3f7ae0;
}

/* ============================= */
/* TASK LIST */
/* ============================= */

.view-container {
    margin-top: 20px;
}

.task-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;;
    padding: 12px 16px;
    border-bottom: 1px solid #2E2E2E;
    font-size: 13px;
    align-items: center;
}

.task-row.header {
    font-size: 12px;
    color: #9B9B9B;
    text-transform: uppercase;
}

.task-row:not(.header):hover {
    background: #222;
    cursor: pointer;
}

/* ============================= */
/* KANBAN */
/* ============================= */

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.kanban-column {
    background: #1F1F1F;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    width: 280px;
    min-height: 300px;
    padding: 15px;
    flex-shrink: 0;
}

.kanban-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #E6E6E6;
}

.kanban-card {
    background: #242424;
    border: 1px solid #2E2E2E;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.15s ease;
}

.kanban-card:hover {
    background: #2A2A2A;
}

.card-title {
    font-size: 13px;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 11px;
    color: #9B9B9B;
}

/* ============================= */
/* MODAL */
/* ============================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1F1F1F;
    border: 1px solid #2E2E2E;
    width: 500px;
    border-radius: 10px;
    padding: 25px;
}

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

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    font-size: 18px;
    color: #9B9B9B;
}

.modal-section {
    margin-bottom: 15px;
}

.modal-section label {
    display: block;
    font-size: 11px;
    color: #9B9B9B;
    margin-bottom: 5px;
}

.modal-section input,
.modal-section select {
    width: 100%;
    padding: 6px 8px;
    background: #242424;
    border: 1px solid #2E2E2E;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
}

/* Timer */
.timer-section {
    margin-top: 25px;
    text-align: center;
}

.timer-display {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    background: #2E2E2E;
    color: #fff;
}

.timer-btn.start { background: #2ECC71; }
.timer-btn.pause { background: #F39C12; }
.timer-btn.stop  { background: #E74C3C; }

/* Filter Button */
.icon-btn {
    font-size: 16px;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
}

.icon-btn:hover {
    background: #2A2A2A;
    color: #fff;
}

/* Right Slide Panel */
.filter-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #1F1F1F;
    border-left: 1px solid #2E2E2E;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 3000;
}

.filter-panel.active {
    right: 0;
}

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

.filter-body p {
    margin-bottom: 15px;
    color: #9B9B9B;
}



/* ========================= */
/* FILTER PANEL STYLE FIX   */
/* ========================= */

.filter-panel {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100%;
    background: #1F1F1F;
    border-left: 1px solid #2E2E2E;
    padding: 24px;
    transition: right 0.3s ease;
    z-index: 3000;
}

.filter-panel.active {
    right: 0;
}

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

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-form label {
    font-size: 12px;
    color: #9B9B9B;
    margin-bottom: 6px;
    display: block;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-form select {
    width: 100%;
    padding: 10px 12px;
    background: #242424;
    border: 1px solid #2E2E2E;
    color: #E6E6E6;
    border-radius: 8px;
    font-size: 13px;
    appearance: none;
    transition: 0.15s ease;
}

.filter-form select:hover {
    background: #2A2A2A;
}

.filter-form select:focus {
    border-color: #4F8CFF;
    outline: none;
}

.filter-form .primary-btn {
    margin-top: 10px;
    width: 100%;
}