/* ====================================================
   UŽDUOČIŲ (KANBAN) MODULIO STILIUS V2
   ==================================================== */

.tf-uzduotys-wrapper { font-family: 'Inter', sans-serif; color: var(--tf-text-main); }
.tf-uzduotys-wrapper a { text-decoration: none !important; outline: none !important; }

/* Bendrai Mygtukai ir Formos Laukai */
.tf-btn { padding: 10px 16px; font-size: 13px; border-radius: 8px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.2s; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tf-btn-primary { background: var(--tf-primary); color: white !important; box-shadow: 0 4px 10px rgba(37,99,235,0.2); }
.tf-btn-primary:hover { filter: brightness(0.9); transform: translateY(-1px); }
.tf-btn-secondary { background: var(--tf-bg-box); color: var(--tf-text-main) !important; border: 1px solid var(--tf-border); }
.tf-btn-secondary:hover { filter: brightness(0.95); }
.tf-btn-success { background: rgba(34, 197, 94, 0.1); color: #22c55e !important; border: 1px solid rgba(34, 197, 94, 0.2); }
.tf-btn-success:hover { background: rgba(34, 197, 94, 0.2); }
.tf-btn-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444 !important; border: 1px solid rgba(239, 68, 68, 0.2); }
.tf-btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.tf-btn-edit-link { position: absolute; top: 15px; right: 15px; color: var(--tf-text-muted) !important; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 6px; transition: 0.2s; cursor: pointer; background: transparent; border: 1px solid transparent; }
.tf-btn-edit-link:hover { background: var(--tf-bg-box); color: var(--tf-primary) !important; border-color: var(--tf-border); }
.tf-back-link { color: var(--tf-text-muted) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; font-size: 14px; }
.tf-back-link:hover { color: var(--tf-primary) !important; transform: translateX(-2px); }

.tf-label { display: block; font-size: 11px; font-weight: 700; color: var(--tf-text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.tf-input { width: 100%; padding: 12px 16px; border: 1px solid var(--tf-border); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--tf-text-main); box-sizing: border-box; transition: all 0.2s; background: var(--tf-input-bg); line-height: 1.5; }
.tf-input:focus { border-color: var(--tf-primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
textarea.tf-input { resize: vertical; }

/* Pranešimai (Alerts) */
.tf-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; animation: fadeIn 0.4s; }
.tf-alert-success { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* ================== VAIZDAS A: KANBAN LENTA ================== */
.tf-kanban-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.tf-filter-group { background: var(--tf-bg-box); border: 1px solid var(--tf-border); border-radius: 8px; display: flex; overflow: hidden; padding: 3px; }
.tf-filter-btn { padding: 6px 14px; text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 6px; background: transparent; color: var(--tf-text-muted); transition: 0.2s; }
.tf-filter-btn.active { background: var(--tf-bg-card); color: var(--tf-text-heading); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.tf-kanban-board { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px; align-items: flex-start; }
.tf-kanban-col { flex: 1; min-width: 280px; padding: 16px; border-radius: 12px; }
.tf-col-new { background: var(--tf-bg-box); border: 1px solid var(--tf-border); }
.tf-col-progress { background: rgba(59, 130, 246, 0.05); border: 1px solid rgba(59, 130, 246, 0.2); }
.tf-col-done { background: rgba(34, 197, 94, 0.05); border: 1px solid rgba(34, 197, 94, 0.2); }

.tf-col-title { margin: 0 0 16px 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center; }
.tf-col-new .tf-col-title { color: var(--tf-text-muted); }
.tf-col-progress .tf-col-title { color: #3b82f6; }
.tf-col-done .tf-col-title { color: #22c55e; }

.tf-col-badge { padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.tf-col-new .tf-col-badge { background: var(--tf-border); color: var(--tf-text-heading); }
.tf-col-progress .tf-col-badge { background: rgba(59, 130, 246, 0.15); color: #2563eb; }
.tf-col-done .tf-col-badge { background: rgba(34, 197, 94, 0.15); color: #16a34a; }

/* Kanban Kortelė */
.tf-task-card { display: block; background: var(--tf-bg-card); padding: 16px; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s; border: 1px solid var(--tf-border); border-left-width: 4px; color: inherit !important; }
.tf-task-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); border-color: var(--tf-primary); border-left-color: var(--tf-primary) !important; }
.tf-task-card-priority { font-size: 10px; font-weight: 800; color: var(--tf-text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.tf-task-card-title { font-weight: 800; color: var(--tf-text-heading); font-size: 14px; margin-bottom: 14px; line-height: 1.4; }
.tf-task-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--tf-text-muted); border-top: 1px dashed var(--tf-border); padding-top: 10px; font-weight: 600; }

/* ================== VAIZDAS B: VIENOS UŽDUOTIES VIDUS ================== */
.tf-task-layout { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.tf-task-main { flex: 2; min-width: 300px; }
.tf-task-sidebar { flex: 1; min-width: 250px; }

.tf-box { background: var(--tf-bg-card); padding: 24px; border-radius: 16px; border: 1px solid var(--tf-border); margin-bottom: 24px; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.tf-task-title { margin: 0; color: var(--tf-text-heading); font-size: 26px; font-weight: 800; line-height: 1.3; }
.tf-task-desc { color: var(--tf-text-main); line-height: 1.6; font-size: 15px; }

.tf-meta-item { margin-bottom: 16px; }
.tf-meta-value { color: var(--tf-text-heading); font-size: 14px; }

/* Statuso Keitimo Mygtukai */
.tf-status-form { display: flex; flex-direction: column; gap: 8px; }
.tf-status-btn { width: 100%; justify-content: flex-start; background: var(--tf-bg-card); border: 1px solid var(--tf-border); color: var(--tf-text-muted) !important; font-weight: 600; }
.tf-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-new { background: #94a3b8; }
.dot-progress { background: #60a5fa; }
.dot-done { background: #4ade80; }

.tf-status-btn.active-new { background: var(--tf-bg-box); color: var(--tf-text-heading) !important; border-color: var(--tf-border); }
.tf-status-btn.active-progress { background: rgba(59, 130, 246, 0.1); color: #2563eb !important; border-color: rgba(59, 130, 246, 0.3); }
.tf-status-btn.active-done { background: rgba(34, 197, 94, 0.1); color: #16a34a !important; border-color: rgba(34, 197, 94, 0.3); }

/* Chat Dalis */
.tf-chat-box { background: var(--tf-bg-box); padding: 24px; border-radius: 16px; border: 1px solid var(--tf-border); }
.tf-chat-form { padding: 16px; margin-bottom: 20px; }
.tf-chat-actions { display: flex; justify-content: space-between; align-items: center; }
.tf-btn-attach { font-size: 12px; padding: 8px 12px; font-weight: 700; cursor: pointer; display: inline-block; border-radius: 8px; transition: 0.2s; }
.tf-file-name { font-size: 12px; color: var(--tf-text-muted); margin-left: 10px; font-weight: 600; }

.tf-msg-bubble { background: var(--tf-bg-card); padding: 18px; border-radius: 12px; border: 1px solid var(--tf-border); margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.tf-msg-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--tf-text-muted); }
.tf-msg-edit { cursor: pointer; opacity: 0.5; transition: 0.2s; font-size: 14px; }
.tf-msg-edit:hover { opacity: 1; }
.tf-msg-content { color: var(--tf-text-main); font-size: 14px; line-height: 1.5; }
.tf-msg-edit-form { display: none; margin-top: 15px; }

.tf-msg-attachment { margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--tf-border); }
.tf-msg-img { max-width: 200px; border-radius: 8px; border: 1px solid var(--tf-border); margin-bottom: 10px; cursor: zoom-in; display: block; }
.tf-msg-download { color: var(--tf-primary); text-decoration: none; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tf-msg-download:hover { text-decoration: underline; }

/* Modaliniai Langai */
.tf-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 999999; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.tf-modal-content { background: var(--tf-bg-card); color: var(--tf-text-main); width: 100%; max-width: 600px; border-radius: 16px; padding: 35px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); position: relative; max-height: 90vh; overflow-y: auto; border: 1px solid var(--tf-border); }
.tf-modal-close { position: absolute; top: 20px; right: 25px; font-size: 28px; color: var(--tf-text-muted); cursor: pointer; font-weight: normal; line-height: 1; transition: 0.2s; }
.tf-modal-close:hover { color: var(--tf-text-heading); transform: scale(1.1); }