/* Umbrella Group – Menaxhimi */
:root {
	--ugm-red: #ED3338;
	--ugm-red-d: #C8242A;
	--ugm-ink: #1C1C1C;
	--ugm-soft: #5F6368;
	--ugm-line: #E7E5E2;
	--ugm-bg: #F6F5F3;
	--ugm-card: #FFFFFF;
	--ugm-r: 14px;
}

/* ---------- Pamja e përgjithshme e admin-it ---------- */
#wpadminbar { background: var(--ugm-ink); }
#adminmenu, #adminmenuback, #adminmenuwrap { background: var(--ugm-ink); }
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { background: var(--ugm-red); }
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu a:hover, #adminmenu li.menu-top > a:focus { color: #ff8a8d; }
#adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-submenu { background: #2a2a2a; }
#adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top { background: #2a2a2a; }
.wp-core-ui .button-primary { background: var(--ugm-red); border-color: var(--ugm-red); }
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus { background: var(--ugm-red-d); border-color: var(--ugm-red-d); }
body.wp-admin { background: var(--ugm-bg); }

.ugm-wrap { max-width: 1400px; }
.ugm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.ugm-title { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.01em; padding: 0 !important; margin: 0 !important; }
.ugm-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ugm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--ugm-red); color: #fff !important; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ugm-red); line-height: 1.2; transition: background .15s; }
.ugm-btn:hover { background: var(--ugm-red-d); border-color: var(--ugm-red-d); }
.ugm-btn.is-ghost { background: #fff; color: var(--ugm-ink) !important; border-color: var(--ugm-line); }
.ugm-btn.is-ghost:hover { border-color: var(--ugm-ink); }
.ugm-link { color: var(--ugm-red); font-weight: 600; text-decoration: none; }
.ugm-muted { color: var(--ugm-soft); }
.ugm-hint { color: var(--ugm-soft); margin: -6px 0 16px; }
.ugm-late { color: var(--ugm-red); font-weight: 600; }
.ugm-due { color: var(--ugm-red); }
.ugm-ok { color: #1E9E5A; font-weight: 600; }

/* ---------- Elemente të vogla ---------- */
.ugm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); white-space: nowrap; }
.ugm-avatars { display: inline-flex; }
.ugm-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--ugm-ink); border: 2px solid #fff; margin-left: -7px; }
.ugm-av:first-child { margin-left: 0; }
.ugm-av:nth-child(2) { background: var(--ugm-red); }
.ugm-av:nth-child(3) { background: #6B6B6B; }
.ugm-av.is-more { background: var(--ugm-line); color: var(--ugm-ink); }
.ugm-progress { display: inline-block; width: 70px; height: 6px; border-radius: 6px; background: var(--ugm-line); overflow: hidden; vertical-align: middle; margin-right: 6px; }
.ugm-progress i { display: block; height: 100%; background: #1E9E5A; border-radius: 6px; }
.ugm-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--ugm-bg); font-size: 12px; color: var(--ugm-ink); }
.ugm-pill.is-late { background: #FDE8E8; color: var(--ugm-red); font-weight: 600; }
.ugm-pill.is-prio { background: #FFF1DD; color: #A0620A; font-weight: 600; }
.ugm-daychip { width: 46px; flex: none; border-radius: 12px; background: var(--ugm-bg); display: grid; place-items: center; padding: 6px 0; line-height: 1.1; }
.ugm-daychip b { font-size: 18px; color: var(--ugm-ink); }
.ugm-daychip i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ugm-red); font-weight: 700; }
.ugm-daychip.is-empty { color: var(--ugm-soft); min-height: 40px; }

/* ---------- Paneli ---------- */
.ugm-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--ugm-r); background: var(--ugm-ink) url("logo-mark.svg") right -40px center / 220px no-repeat; color: #fff; margin-bottom: 16px; }
.ugm-hello h2 { color: #fff; font-size: 26px; margin: 2px 0 0; font-weight: 800; }
.ugm-date { margin: 0; color: rgba(255, 255, 255, .7); }
.ugm-hello-stats { display: flex; gap: 18px; margin-right: 160px; }
.ugm-hello-stats b { font-size: 22px; margin-right: 4px; }
.ugm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ugm-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--ugm-r); background: var(--ugm-card); border: 1px solid var(--ugm-line); text-decoration: none; color: var(--ugm-ink); transition: border-color .15s, transform .15s; }
a.ugm-stat:hover { border-color: var(--ugm-ink); transform: translateY(-1px); color: var(--ugm-ink); }
.ugm-stat span { color: var(--ugm-soft); font-weight: 600; font-size: 13px; }
.ugm-stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.ugm-stat.is-alert { background: #FFF4F4; border-color: #F8C9CA; }
.ugm-stat.is-alert b { color: var(--ugm-red); }

.ugm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ugm-card { background: var(--ugm-card); border: 1px solid var(--ugm-line); border-radius: var(--ugm-r); padding: 18px 20px; min-width: 0; }
.ugm-card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ugm-card > header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.ugm-card > header a { color: var(--ugm-red); text-decoration: none; font-weight: 600; font-size: 13px; }
.ugm-empty { color: var(--ugm-soft); margin: 10px 0; padding: 18px; text-align: center; background: var(--ugm-bg); border-radius: 10px; }
.ugm-empty.is-ok { color: #1E7A47; background: #EEF8F2; }

.ugm-agenda, .ugm-late-list, .ugm-eq, .ugm-bars, .ugm-mini-list { list-style: none; margin: 0; padding: 0; }
.ugm-agenda li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ugm-line); margin: 0; }
.ugm-agenda li:first-child { border-top: 0; }
.ugm-agenda-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ugm-agenda-body a { color: var(--ugm-ink); text-decoration: none; }
.ugm-agenda-body a:hover { color: var(--ugm-red); }
.ugm-agenda-body .ugm-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ugm-agenda-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.ugm-late-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ugm-line); margin: 0; }
.ugm-late-list li:first-child { border-top: 0; }
.ugm-late-list li > div { display: flex; flex-direction: column; min-width: 0; }
.ugm-late-list .ugm-muted { font-size: 13px; }
.ugm-late-list .ugm-muted a { color: inherit; }
.ugm-late-list li.is-done strong { text-decoration: line-through; color: var(--ugm-soft); }
.ugm-flag { width: 22px; text-align: center; color: var(--ugm-red); font-size: 16px; }
.ugm-check { position: relative; width: 22px; height: 22px; display: inline-block; cursor: pointer; }
.ugm-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ugm-check span { position: absolute; inset: 0; border-radius: 7px; border: 2px solid #C9C6C1; background: #fff; transition: all .15s; }
.ugm-check input:checked + span { background: #1E9E5A; border-color: #1E9E5A; }
.ugm-check input:checked + span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.ugm-bars li { margin: 0; }
.ugm-bars a { display: grid; grid-template-columns: 130px 1fr 30px; align-items: center; gap: 10px; padding: 7px 0; color: var(--ugm-ink); text-decoration: none; }
.ugm-bars a:hover span:first-child { color: var(--ugm-red); }
.ugm-bar { height: 10px; border-radius: 10px; background: var(--ugm-bg); overflow: hidden; }
.ugm-bar i { display: block; height: 100%; border-radius: 10px; }
.ugm-bars b { text-align: right; }

.ugm-eq li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ugm-line); margin: 0; flex-wrap: wrap; }
.ugm-eq li:first-child { border-top: 0; }
.ugm-eq a { color: var(--ugm-ink); text-decoration: none; }
.ugm-eq .ugm-muted { flex: 1; font-size: 13px; }
.ugm-mini-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--ugm-line); }

/* ---------- Tabela (kanban) ---------- */
.ugm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: start; scroll-snap-type: x mandatory; }
.ugm-col { background: #EFEDEA; border-radius: var(--ugm-r); padding: 10px; min-height: 200px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.ugm-col.is-over { background: #E6E3DE; box-shadow: inset 0 0 0 2px var(--c); }
.ugm-col > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.ugm-col > header h3 { margin: 0; font-size: 14px; flex: 1; }
.ugm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ugm-count { font-size: 12px; font-weight: 700; background: #fff; border-radius: 999px; padding: 1px 9px; }
.ugm-col-body { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.ugm-kcard { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border-left: 4px solid transparent; display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.ugm-kcard.prio-larte { border-left-color: #E0921A; }
.ugm-kcard.prio-urgjent { border-left-color: var(--ugm-red); }
.ugm-kcard.is-dragging { opacity: .5; transform: rotate(2deg); }
.ugm-kcard.is-saving { opacity: .6; }
.ugm-kcard-title { font-weight: 700; color: var(--ugm-ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.ugm-kcard-title:hover { color: var(--ugm-red); }
.ugm-kcard > .ugm-muted { font-size: 12.5px; margin-top: -4px; }
.ugm-kcard-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.ugm-kcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ugm-kcard-foot small { color: var(--ugm-soft); }
.ugm-move { display: none; width: 100%; margin-top: 4px; font-size: 13px; border-radius: 8px; }
.ugm-col-add { display: block; text-align: center; padding: 10px; border: 2px dashed #D6D2CC; border-radius: 12px; color: var(--ugm-soft); text-decoration: none; font-weight: 600; }
.ugm-col-add:hover { border-color: var(--ugm-red); color: var(--ugm-red); }

/* ---------- Kalendari ---------- */
.ugm-cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ugm-cal-nav h2 { margin: 0 6px; font-size: 22px; min-width: 170px; text-align: center; }
.ugm-cal { background: #fff; border: 1px solid var(--ugm-line); border-radius: var(--ugm-r); overflow: hidden; }
.ugm-cal-head, .ugm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ugm-cal-head span { padding: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ugm-soft); border-bottom: 1px solid var(--ugm-line); }
.ugm-cal-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--ugm-line); border-bottom: 1px solid var(--ugm-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ugm-cal-day:nth-child(7n) { border-right: 0; }
.ugm-cal-day.is-out { background: #FAF9F7; }
.ugm-cal-day.is-today { background: #FFF6F6; }
.ugm-cal-num { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; padding: 2px 4px; }
.ugm-cal-day.is-today .ugm-cal-num span { background: var(--ugm-red); color: #fff; border-radius: 999px; padding: 1px 8px; }
.ugm-cal-add { opacity: 0; text-decoration: none; color: var(--ugm-soft); font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 6px; }
.ugm-cal-day:hover .ugm-cal-add { opacity: 1; }
.ugm-cal-add:hover { background: var(--ugm-bg); color: var(--ugm-red); }
.ugm-cal-item { display: block; padding: 3px 7px; border-radius: 6px; font-size: 12px; line-height: 1.35; text-decoration: none; color: var(--ugm-ink); background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ugm-cal-item:hover { color: var(--ugm-ink); filter: brightness(.96); }
.ugm-cal-item.is-deadline { background: #fff; border: 1px dashed var(--c); border-left-width: 3px; border-left-style: solid; }
.ugm-cal-agenda { display: none; }
.ugm-cal-agenda-day { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ugm-line); }
.ugm-cal-agenda-day > div { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ugm-cal-agenda-day.is-today .ugm-daychip { background: var(--ugm-red); }
.ugm-cal-agenda-day.is-today .ugm-daychip b, .ugm-cal-agenda-day.is-today .ugm-daychip i { color: #fff; }
.ugm-cal-agenda .ugm-cal-item { font-size: 14px; padding: 8px 10px; white-space: normal; }

/* ---------- Ekranet e redaktimit ---------- */
.ugm-editor-label { font-size: 14px !important; font-weight: 600 !important; padding: 18px 0 6px !important; margin: 0; }
.ugm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }
.ugm-fields.is-stack { grid-template-columns: 1fr; }
.ugm-field { display: flex; flex-direction: column; gap: 6px; }
.ugm-field.is-wide { grid-column: 1 / -1; margin-top: 14px; }
.ugm-field > label { font-weight: 600; }
.ugm-field input:not([type="checkbox"]), .ugm-field select { width: 100%; max-width: 100%; min-height: 38px; border-radius: 8px; }
.ugm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ugm-chip { position: relative; }
.ugm-chip input { position: absolute; opacity: 0; }
.ugm-chip span { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ugm-line); background: #fff; cursor: pointer; font-weight: 600; transition: all .15s; }
.ugm-chip span small { font-weight: 400; color: var(--ugm-soft); }
.ugm-chip input:checked + span { background: var(--ugm-ink); color: #fff; border-color: var(--ugm-ink); }
.ugm-chip input:checked + span small { color: rgba(255, 255, 255, .7); }
.ugm-chip input:focus-visible + span { outline: 2px solid var(--ugm-red); }
.ugm-balance { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; }
.ugm-balance.is-due { background: #FFF4F4; color: var(--ugm-red); }
.ugm-balance.is-ok { background: #EEF8F2; color: #1E7A47; }

.ugm-task-rows { display: flex; flex-direction: column; gap: 8px; }
.ugm-task-row { display: grid; grid-template-columns: 26px 1fr 170px 150px 32px; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: var(--ugm-bg); }
.ugm-task-row.is-done .ugm-task-text { text-decoration: line-through; color: var(--ugm-soft); }
.ugm-task-row input[type="text"], .ugm-task-row select, .ugm-task-row input[type="date"] { width: 100%; min-height: 36px; border-radius: 8px; }
.ugm-task-check { position: relative; width: 22px; height: 22px; }
.ugm-task-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ugm-task-check span { position: absolute; inset: 0; border-radius: 7px; border: 2px solid #C9C6C1; background: #fff; }
.ugm-task-check input:checked + span { background: #1E9E5A; border-color: #1E9E5A; }
.ugm-task-check input:checked + span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ugm-task-del { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ugm-soft); cursor: pointer; border-radius: 8px; height: 32px; }
.ugm-task-del:hover { color: var(--ugm-red); background: #fff; }
.ugm-task-actions { margin: 12px 0 0; }

/* ---------- Projekti (vetëm lexim) ---------- */
.ugm-pview { max-width: 860px; }
.ugm-pview h3 { font-size: 15px; margin: 22px 0 8px; }
.ugm-pview-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 14px 0 0; }
.ugm-pview-meta dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ugm-soft); }
.ugm-pview-meta dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; }
.ugm-pview-notes { font-size: 14px; line-height: 1.6; }

/* ---------- Toast ---------- */
.ugm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ugm-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 99999; pointer-events: none; }
.ugm-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.ugm-toast.is-err { background: var(--ugm-red); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ugm-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.ugm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ugm-hello { background-size: 120px; background-position: right -56px center; padding-right: 70px; }
	.ugm-hello h2 { font-size: 22px; }
	.ugm-hello-stats { margin-right: 0; }
	.ugm-board { grid-auto-columns: 86%; }
	.ugm-move { display: block; }
	.ugm-kcard { cursor: default; }
	.ugm-cal { display: none; }
	.ugm-cal-agenda { display: block; background: #fff; border: 1px solid var(--ugm-line); border-radius: var(--ugm-r); padding: 4px 14px; }
	.ugm-cal-agenda-day:first-child { border-top: 0; }
	.ugm-cal-nav h2 { min-width: 0; flex: 1; font-size: 19px; }
	.ugm-task-row { grid-template-columns: 26px 1fr 32px; }
	.ugm-task-row select, .ugm-task-row input[type="date"] { grid-column: 2 / 3; }
	.ugm-bars a { grid-template-columns: 110px 1fr 24px; }
	.ugm-agenda-side .ugm-avatars { display: none; }
}

/* ---------- Faqja e hyrjes ---------- */
body.login { background: var(--ugm-ink); }
body.login #login h1 a { background: url("logo-mark.svg") center / contain no-repeat; width: 96px; height: 96px; }
body.login #login h1::after { content: "Umbrella Group · Menaxhimi"; display: block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .04em; margin-top: 10px; }
body.login form { border: 0; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
body.login #nav a, body.login #backtoblog a { color: rgba(255, 255, 255, .7) !important; }
body.login .button-primary { background: var(--ugm-red) !important; border-color: var(--ugm-red) !important; border-radius: 999px; padding: 0 22px !important; }
body.login input:focus { border-color: var(--ugm-red) !important; box-shadow: 0 0 0 1px var(--ugm-red) !important; }
