/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.btn:hover { border-color: var(--primary); color: var(--text-bright); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.75rem; }

/* ============================================
   EDITABLE CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition-fast);
}
.card:hover { border-color: var(--border-light); }

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}
.card-title {
    font-size: 1.05rem;
    color: var(--text-bright);
    font-weight: 600;
}

.editable {
    border: 1px dashed transparent;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    transition: all var(--transition-fast);
    min-height: 1.5em;
    outline: none;
}
.editable:hover { border-color: var(--border-light); background: var(--bg-input); }
.editable:focus { border-color: var(--primary); background: var(--bg-input); box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.editable[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   PRIORITY BADGES
   ============================================ */
.priority {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.priority-inscope { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.priority-outofscope { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }

/* ============================================
   STATUS BADGES
   ============================================ */
.status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.15rem 0.5rem; border-radius: 10px;
    font-size: 0.7rem; font-weight: 500;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-draft .status-dot { background: var(--text-muted); }
.status-draft { color: var(--text-muted); }
.status-progress .status-dot { background: var(--info); }
.status-progress { color: var(--info); }
.status-done .status-dot { background: var(--success); }
.status-done { color: var(--success); }

/* ============================================
   ADD BUTTON
   ============================================ */
.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.add-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99,102,241,0.05);
}

/* ============================================
   INLINE FORM (for adding items)
   ============================================ */
.inline-form {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: none;
}
.inline-form.visible { display: block; }
.inline-form-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 0.75rem; }
.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
.form-textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-actions {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}

/* ============================================
   NOTIFICATION BAR
   ============================================ */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.notification.visible { transform: translateY(0); opacity: 1; }
.notification-success { background: var(--success); color: #fff; }
.notification-info { background: var(--info); color: #fff; }
