/* Roadmap Kanban v2 — Dark Theme */
.rkp-board {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    min-height: 500px;
}

/* Toolbar */
.rkp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.rkp-board-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: -.02em;
}
.rkp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rkp-icon-btn {
    background: #1e2130;
    border: 1px solid #2d3148;
    color: #94a3b8;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background .2s, color .2s;
}
.rkp-icon-btn:hover { background: #2a2d3e; color: #e2e8f0; }
.rkp-search-box {
    position: relative;
}
.rkp-search {
    background: #1e2130;
    border: 1px solid #2d3148;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    outline: none;
    width: 200px;
    transition: border-color .2s;
}
.rkp-search::placeholder { color: #4b5563; }
.rkp-search:focus { border-color: #6366f1; }
.rkp-select-pill {
    background: #1e2130;
    border: 1px solid #2d3148;
    color: #94a3b8;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}
.rkp-select-pill:focus { border-color: #6366f1; }
.rkp-btn-new-request {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}
.rkp-btn-new-request:hover { background: #4f46e5; transform: translateY(-1px); }
.rkp-btn-login {
    background: #1e2130;
    border: 1px solid #2d3148;
    color: #94a3b8;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background .2s;
}
.rkp-btn-login:hover { background: #2a2d3e; color: #e2e8f0; }

/* Kanban Board */
.rkp-kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    align-items: flex-start;
}
.rkp-kanban::-webkit-scrollbar { height: 6px; }
.rkp-kanban::-webkit-scrollbar-track { background: #1a1d2e; border-radius: 3px; }
.rkp-kanban::-webkit-scrollbar-thumb { background: #2d3148; border-radius: 3px; }

/* Column */
.rkp-column {
    flex: 0 0 280px;
    min-width: 260px;
    background: #161929;
    border: 1px solid #1e2235;
    border-radius: 12px;
    overflow: hidden;
}
.rkp-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1e2235;
}
.rkp-col-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .02em;
}
.rkp-col-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4b5563;
    background: #1e2235;
    padding: 2px 8px;
    border-radius: 20px;
}
.rkp-col-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

/* Empty state */
.rkp-col-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 10px;
    opacity: .6;
}
.rkp-col-empty p {
    margin: 0;
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
}

/* Task Card */
.rkp-task {
    background: #1a1d2e;
    border: 1px solid #232640;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    transition: border-color .2s, transform .15s;
    cursor: default;
}
.rkp-task:hover {
    border-color: #3d4155;
    transform: translateY(-1px);
}
.rkp-task-main { flex: 1; min-width: 0; }
.rkp-task-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
    line-height: 1.4;
}
.rkp-task-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    background: #1e2235;
    border: 1px solid #2d3148;
    border-radius: 6px;
    padding: 3px 8px;
}

/* Vote Button */
.rkp-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid #2d3148;
    border-radius: 8px;
    background: #1e2235;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    min-width: 40px;
}
.rkp-vote-btn:hover:not(.voted) {
    border-color: #6366f1;
    color: #818cf8;
    background: #1e2040;
}
.rkp-vote-btn.voted {
    border-color: #6366f1;
    background: #312e81;
    color: #a5b4fc;
}
.rkp-vote-icon { display: block; }
.rkp-vote-count { line-height: 1; }

/* Modal Overlay */
.rkp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.rkp-modal {
    background: #161929;
    border: 1px solid #2d3148;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    animation: rkpFadeUp .25s ease;
    overflow: hidden;
}
@keyframes rkpFadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}
.rkp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #1e2235;
}
.rkp-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
}
.rkp-modal-close {
    background: #1e2235;
    border: none;
    color: #64748b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    line-height: 1;
}
.rkp-modal-close:hover { background: #2d3148; color: #e2e8f0; }
.rkp-request-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rkp-field { display: flex; flex-direction: column; gap: 6px; }
.rkp-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.rkp-input, .rkp-textarea {
    background: #1e2235;
    border: 1px solid #2d3148;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.rkp-input::placeholder, .rkp-textarea::placeholder { color: #374151; }
.rkp-input:focus, .rkp-textarea:focus { border-color: #6366f1; }
.rkp-textarea { resize: vertical; }
.rkp-btn-submit {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
}
.rkp-btn-submit:hover { background: #4f46e5; }
.rkp-btn-submit:disabled { background: #312e81; cursor: not-allowed; opacity: .7; }
.rkp-form-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}
.rkp-form-msg.success { background: #052e16; color: #4ade80; border: 1px solid #166534; }
.rkp-form-msg.error   { background: #450a0a; color: #f87171; border: 1px solid #991b1b; }

/* Responsive */
@media (max-width: 640px) {
    .rkp-board { padding: 16px 12px; }
    .rkp-toolbar { flex-direction: column; align-items: flex-start; }
    .rkp-column { flex: 0 0 240px; min-width: 240px; }
    .rkp-modal { border-radius: 12px; }
    .rkp-request-form { padding: 16px; }
}
