:root {
    --bg: #ebecf0; /* Trello Gray */
    --text: #172b4d;
    --primary: #0079bf; /* Trello Blue */
    --card: #ffffff;
    --header: #0067a3;
    --column: #ebecf0;
    --task-hover: #f4f5f7;
    --shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101204;
        --text: #b6c2cf;
        --card: #22272b;
        --primary: #579dff;
        --column: #101204;
    }
}

body { font-family: -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--text); margin: 0; }

.header { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: var(--header); color: white; }
.header-detail { padding: 15px; background: rgba(0,0,0,0.2); color: white; }
.btn-icon { background: none; border: none; font-size: 20px; color: white; cursor: pointer; }

/* Trello Columns */
.kanban-wrapper { display: flex; overflow-x: auto; padding: 10px; gap: 10px; height: calc(100vh - 150px); align-items: flex-start; }
.kanban-column { flex: 0 0 270px; background: #ebecf0; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; max-height: 100%; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .kanban-column { background: #161a1d; } }

.col-header { font-weight: bold; padding: 5px 10px 10px; font-size: 14px; display: flex; justify-content: space-between; }
.task-container { flex-grow: 1; overflow-y: auto; min-height: 20px; }

/* Trello Cards */
.task-card { 
    background: var(--card); border-radius: 8px; padding: 10px; margin-bottom: 8px; 
    box-shadow: var(--shadow); cursor: pointer; transition: 0.2s;
}
.task-card:hover { background: var(--task-hover); }
.task-title { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.task-badges { display: flex; gap: 8px; font-size: 11px; opacity: 0.7; }

/* Modal Detail */
.modal-content.large { width: 95%; max-width: 600px; }
.detail-body { display: grid; grid-template-columns: 1fr; gap: 20px; }
.desc-box { background: rgba(0,0,0,0.05); padding: 15px; border-radius: 8px; min-height: 80px; }

/* Forms */
input, select, textarea { width: 100%; padding: 10px; margin-bottom: 12px; border-radius: 5px; border: 1px solid #ddd; box-sizing: border-box; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-100 { width: 100%; }

/* Projects Grid */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 20px; }
.project-card { 
    background: var(--primary); color: white; height: 100px; border-radius: 8px; 
    padding: 15px; font-weight: bold; cursor: pointer; position: relative;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.tab-btn { background: none; border: none; color: white; opacity: 0.7; padding: 10px; font-weight: bold; cursor: pointer; }
.tab-btn.active { opacity: 1; border-bottom: 3px solid white; }

/* Login View */
.view-center { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--header); color: white; padding: 20px; text-align: center; }
.login-card { background: var(--card); color: var(--text); padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); width: 100%; max-width: 350px; }
.login-card h1 { margin-top: 0; font-size: 28px; }

/* Task States */
.task-card.pending { border-left: 4px solid #ff9800; background: rgba(255, 152, 0, 0.05); }
.badge-warn { background: #fff3e0; color: #ff9800; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.btn-approve { margin-top: 10px; background: #4caf50; color: white; border: none; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; }

/* Helpers */
.table-container { overflow-x: auto; margin-top: 15px; border: 1px solid var(--border); border-radius: 8px; }
table { border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); }
.btn-link { background: none; border: none; color: var(--primary); padding: 10px; cursor: pointer; font-weight: bold; }

