/* ── RPG To-Do / Poznámky CSS ─────────────────────────────────────────── */

.rpg-todo-container {
    max-width: 1100px;
    margin: 20px auto;
    font-family: inherit;
    color: #e6ecf8;
}

.rpg-todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95), rgba(36, 59, 85, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rpg-todo-header h1, .rpg-todo-header h2 {
    margin: 0;
    color: #f4d03f;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpg-todo-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ── Formulář pro přidání ────────────────────────────────────────────────── */
.rpg-todo-card-form {
    background: rgba(13, 22, 38, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.rpg-todo-card-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #d4af37;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.rpg-todo-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .rpg-todo-form-grid {
        grid-template-columns: 1fr;
    }
}

.rpg-todo-input, .rpg-todo-select, .rpg-todo-textarea {
    width: 100%;
    background: #09101d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    color: #f0f4fc;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rpg-todo-input:focus, .rpg-todo-select:focus, .rpg-todo-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.rpg-todo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1b4965, #2b6cb0);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.rpg-todo-btn:hover {
    background: linear-gradient(135deg, #2b6cb0, #4299e1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    color: #fff;
}

.rpg-todo-btn-success {
    background: linear-gradient(135deg, #276749, #2f855a);
}

.rpg-todo-btn-success:hover {
    background: linear-gradient(135deg, #2f855a, #38a169);
}

.rpg-todo-btn-danger {
    background: linear-gradient(135deg, #9b2c2c, #c53030);
}

.rpg-todo-btn-danger:hover {
    background: linear-gradient(135deg, #c53030, #e53e3e);
}

/* ── Seznam úkolů v bodech ────────────────────────────────────────────────── */
.rpg-todo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rpg-todo-item {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a5568;
    border-radius: 8px;
    padding: 16px 20px;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
}

.rpg-todo-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.rpg-todo-item.priority-urgent { border-left-color: #e53e3e; }
.rpg-todo-item.priority-high   { border-left-color: #dd6b20; }
.rpg-todo-item.priority-normal { border-left-color: #3182ce; }
.rpg-todo-item.priority-low    { border-left-color: #718096; }

.rpg-todo-item.status-completed {
    opacity: 0.75;
    border-left-color: #38a169;
    background: rgba(20, 40, 25, 0.6);
}

.rpg-todo-bullet {
    font-size: 1.4rem;
    line-height: 1;
    padding-top: 2px;
}

.rpg-todo-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rpg-todo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f7fafc;
    margin: 0;
}

.rpg-todo-item.status-completed .rpg-todo-title {
    text-decoration: line-through;
    color: #a0aec0;
}

.rpg-todo-desc {
    font-size: 0.92rem;
    color: #cbd5e0;
    line-height: 1.45;
    margin: 4px 0 0 0;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.rpg-todo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #a0aec0;
    margin-top: 4px;
}

.rpg-todo-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-urgent { background: rgba(229, 62, 62, 0.25); color: #feb2b2; border: 1px solid rgba(229, 62, 62, 0.5); }
.badge-high   { background: rgba(221, 107, 32, 0.25); color: #fbd38d; border: 1px solid rgba(221, 107, 32, 0.5); }
.badge-normal { background: rgba(49, 130, 206, 0.25); color: #90cdf4; border: 1px solid rgba(49, 130, 206, 0.5); }
.badge-low    { background: rgba(113, 128, 150, 0.25); color: #e2e8f0; border: 1px solid rgba(113, 128, 150, 0.5); }

.rpg-todo-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-new      { background: rgba(66, 153, 225, 0.2); color: #63b3ed; }
.status-progress { background: rgba(236, 201, 75, 0.2); color: #faf089; }
.status-completed{ background: rgba(72, 187, 120, 0.2); color: #9ae6b4; }
.status-cancelled{ background: rgba(245, 101, 101, 0.2); color: #feb2b2; }

.rpg-todo-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.rpg-todo-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}
