:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --column-bg: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #ccff00; /* Lime Green */
    --accent-hover: #b3e600;
    --border-color: #222222;
    --card-border: #262626;
    
    --priority-low: #3f3f46;
    --priority-medium: #ccff00;
    --priority-high: #ff3333;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* No scroll on body */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #000000;
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
    transform: rotate(45deg);
}

.logo-area h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.logo-area h1 span {
    color: var(--accent);
}

/* Button Styles */
.btn-primary {
    background: var(--accent);
    color: #000000;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: #111;
    border-color: var(--text-secondary);
}

/* Board Styles */
.board-wrapper {
    flex: 1;
    overflow-x: auto;
    padding: 1.5rem;
    background: #000000;
    display: flex;
    align-items: stretch; /* Make columns fill height */
}

.board {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.column {
    width: 320px;
    background: var(--column-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill parent height */
    flex-shrink: 0;
}

.column.drag-over {
    border-color: var(--accent);
    background: #0d0d0d;
}

.column-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.column-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.task-count {
    font-family: monospace;
    font-size: 0.8rem;
    background: #1a1a1a;
    color: var(--accent);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.task-list {
    flex: 1;
    overflow-y: auto; /* Individual scroll */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Task Card Styles */
.task-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
    cursor: grab;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    position: relative;
}

.task-card:hover {
    border-color: var(--accent);
    background: #1a1a1a;
}

.task-card.dragging {
    opacity: 0.3;
    border-style: dashed;
}

.priority-indicator {
    width: 3px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px 0 0 4px;
}

.priority-indicator.low { background-color: #333; }
.priority-indicator.medium { background-color: var(--accent); }
.priority-indicator.high { background-color: #ff3333; }

.task-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.task-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.task-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    border-top: 1px solid #1a1a1a;
    padding-top: 0.75rem;
}

.task-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 2px;
    transition: all 0.15s;
}

.task-btn:hover {
    color: var(--text-primary);
    background: #222;
}

.task-btn:hover svg {
    stroke: var(--accent);
}

.add-task-inline {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem 1rem;
    padding: 0.6rem;
    background: transparent;
    border: 1px dashed #333;
    border-radius: 4px;
    color: #444;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.add-task-inline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(204, 255, 0, 0.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.1);
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.close-modal {
    background: none;
    border: none;
    color: #444;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.05em;
}

input, textarea, select {
    width: 100%;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .board-wrapper {
        padding: 1rem;
    }
    .column {
        width: 280px;
    }
}
