Files

1264 lines
31 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================================
PulseDesk — Mini Destek Operasyon Merkezi
Açık/koyu tema · CSS değişkenleri · responsive
============================================================ */
:root {
--bg: #f4f6fb;
--bg-soft: #eaeef7;
--surface: #ffffff;
--surface-2: #f8fafc;
--border: #e2e8f0;
--border-strong: #cbd5e1;
--text: #0f172a;
--text-2: #475569;
--text-3: #94a3b8;
--primary: #4f46e5;
--primary-hover: #4338ca;
--primary-soft: #eef2ff;
--acik: #0284c7;
--acik-bg: #e0f2fe;
--isleniyor: #d97706;
--isleniyor-bg: #fef3c7;
--cozuldu: #059669;
--cozuldu-bg: #d1fae5;
--dusuk: #64748b;
--dusuk-bg: #f1f5f9;
--orta: #0891b2;
--orta-bg: #cffafe;
--yuksek: #ea580c;
--yuksek-bg: #ffedd5;
--kritik: #dc2626;
--kritik-bg: #fee2e2;
--danger: #dc2626;
--danger-hover: #b91c1c;
--shadow-sm: 0 1px 2px rgba(15,23,42,.06);
--shadow: 0 4px 16px rgba(15,23,42,.08);
--shadow-lg: 0 20px 50px rgba(15,23,42,.20);
--radius: 12px;
--radius-sm: 8px;
--radius-lg: 16px;
--transition: 160ms cubic-bezier(.4,0,.2,1);
}
html[data-theme="dark"] {
--bg: #0b1120;
--bg-soft: #0f172a;
--surface: #111c33;
--surface-2: #16233d;
--border: #233250;
--border-strong: #33456b;
--text: #e8eefc;
--text-2: #9fb0cc;
--text-3: #6b7f9e;
--primary: #6366f1;
--primary-hover: #7c7ff5;
--primary-soft: #1e2a52;
--acik: #38bdf8;
--acik-bg: #0b3350;
--isleniyor: #fbbf24;
--isleniyor-bg: #43320c;
--cozuldu: #34d399;
--cozuldu-bg: #0c3b2e;
--dusuk: #94a3b8;
--dusuk-bg: #1e293b;
--orta: #22d3ee;
--orta-bg: #083344;
--yuksek: #fb923c;
--yuksek-bg: #46200a;
--kritik: #f87171;
--kritik-bg: #4a1113;
--danger: #ef4444;
--danger-hover: #f87171;
--shadow-sm: 0 1px 2px rgba(0,0,0,.4);
--shadow: 0 4px 20px rgba(0,0,0,.45);
--shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}
/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
transition: background var(--transition), color var(--transition);
}
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
/* ---------- layout ---------- */
.app {
min-height: 100%;
display: flex;
flex-direction: column;
}
.content {
flex: 1;
width: 100%;
max-width: 1400px;
margin: 0 auto;
padding: 20px 24px 40px;
display: flex;
flex-direction: column;
gap: 18px;
}
/* ============================================================
TOPBAR
============================================================ */
.topbar {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 12px 24px;
background: color-mix(in srgb, var(--surface) 88%, transparent);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
width: 40px; height: 40px;
flex: 0 0 40px;
border-radius: 11px;
background: linear-gradient(135deg, var(--primary), #8b5cf6);
display: grid;
place-items: center;
box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.pulse-dot {
width: 11px; height: 11px;
border-radius: 50%;
background: #fff;
animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.5); opacity: .55; }
}
.brand-text h1 {
font-size: 17px;
font-weight: 700;
letter-spacing: -.3px;
line-height: 1.2;
}
.brand-text p {
font-size: 11.5px;
color: var(--text-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* ============================================================
BUTONLAR
============================================================ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 9px 15px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
font-weight: 600;
font-size: 13.5px;
white-space: nowrap;
transition: all var(--transition);
user-select: none;
}
.btn:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
background: var(--primary);
color: #fff;
box-shadow: 0 2px 8px rgba(79,70,229,.28);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(79,70,229,.4); }
.btn-ghost {
background: transparent;
color: var(--text-2);
border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-outline {
background: var(--surface);
color: var(--text-2);
border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-danger {
background: var(--danger);
color: #fff;
}
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* ============================================================
İSTATİSTİK KARTLARI
============================================================ */
.stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
gap: 14px;
}
.stat-card {
position: relative;
overflow: hidden;
text-align: left;
padding: 16px 18px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--surface);
box-shadow: var(--shadow-sm);
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
border-color: var(--primary);
}
.stat-card::after {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 3px;
background: var(--primary);
opacity: .85;
}
.stat-card[data-stat="acik"]::after { background: var(--acik); }
.stat-card[data-stat="isleniyor"]::after{ background: var(--isleniyor); }
.stat-card[data-stat="cozuldu"]::after { background: var(--cozuldu); }
.stat-card[data-stat="kritik"]::after { background: var(--kritik); }
.stat-card[data-stat="unassigned"]::after { background: var(--text-3); }
.stat-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 6px;
}
.stat-label {
font-size: 11.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .5px;
color: var(--text-3);
}
.stat-ico { font-size: 16px; opacity: .9; }
/* ikon kutucukları (kart başına renkli zemin) */
.ico-total,
.ico-open,
.ico-progress,
.ico-resolved,
.ico-critical,
.ico-unassigned {
width: 28px;
height: 28px;
display: grid;
place-items: center;
border-radius: 8px;
font-size: 14px;
opacity: 1;
}
.ico-total { background: var(--primary-soft); }
.ico-open { background: var(--acik-bg); }
.ico-progress { background: var(--isleniyor-bg); }
.ico-resolved { background: var(--cozuldu-bg); }
.ico-critical { background: var(--kritik-bg); }
.ico-unassigned { background: var(--dusuk-bg); }
.stat-card.stat-critical:hover { border-color: var(--kritik); }
.stat-value {
font-size: 30px;
font-weight: 800;
letter-spacing: -1px;
line-height: 1.1;
font-variant-numeric: tabular-nums;
}
.stat-foot {
margin-top: 3px;
font-size: 11.5px;
color: var(--text-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-card[data-stat="acik"] .stat-value { color: var(--acik); }
.stat-card[data-stat="isleniyor"].stat-value,
.stat-card[data-stat="isleniyor"] .stat-value { color: var(--isleniyor); }
.stat-card[data-stat="cozuldu"] .stat-value { color: var(--cozuldu); }
.stat-card[data-stat="kritik"] .stat-value { color: var(--kritik); }
/* ============================================================
PANEL
============================================================ */
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
}
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 15px 18px;
border-bottom: 1px solid var(--border);
}
.panel-head h2 {
font-size: 15px;
font-weight: 700;
letter-spacing: -.2px;
}
/* ============================================================
FİLTRELER
============================================================ */
.filters { padding: 16px 18px; }
.filters-row {
display: grid;
grid-template-columns: minmax(230px, 2fr) repeat(4, minmax(120px, 1fr)) auto;
gap: 12px;
align-items: end;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label {
font-size: 11.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .4px;
color: var(--text-3);
}
input[type="text"],
input[type="search"],
select,
textarea {
width: 100%;
padding: 9px 12px;
border-radius: var(--radius-sm);
border: 1px solid var(--border-strong);
background: var(--surface);
color: var(--text);
font-family: inherit;
font-size: 13.5px;
transition: border-color var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
select {
appearance: none;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 11px center;
padding-right: 30px;
cursor: pointer;
}
textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.search-wrap { position: relative; }
.search-ico {
position: absolute;
left: 11px;
top: 50%;
transform: translateY(-50%);
font-size: 13px;
pointer-events: none;
opacity: .6;
}
.field-search input { padding-left: 33px; padding-right: 32px; }
.search-clear {
position: absolute;
right: 7px;
top: 50%;
transform: translateY(-50%);
width: 22px; height: 22px;
border: none;
border-radius: 50%;
background: transparent;
color: var(--text-3);
font-size: 12px;
line-height: 1;
display: grid;
place-items: center;
opacity: 0;
pointer-events: none;
transition: all var(--transition);
}
.search-clear.is-visible { opacity: 1; pointer-events: auto; }
.search-clear:hover { background: var(--bg-soft); color: var(--text); }
.field-action { justify-content: flex-end; }
.field-action .btn { width: 100%; }
/* aktif filtre çipleri */
.filters-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed var(--border);
min-height: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 6px 4px 10px;
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary);
font-size: 12px;
font-weight: 600;
border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.chip button {
border: none;
background: transparent;
color: inherit;
font-size: 11px;
line-height: 1;
padding: 2px 4px;
border-radius: 50%;
opacity: .7;
}
.chip button:hover { opacity: 1; background: color-mix(in srgb, var(--primary) 18%, transparent); }
.result-count {
font-size: 12.5px;
font-weight: 600;
color: var(--text-2);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* ============================================================
GÖRÜNÜM DEĞİŞTİRİCİ
============================================================ */
.view-toggle {
display: inline-flex;
gap: 2px;
padding: 3px;
border-radius: var(--radius-sm);
background: var(--bg-soft);
border: 1px solid var(--border);
}
.vt-btn {
border: none;
background: transparent;
color: var(--text-3);
padding: 5px 11px;
border-radius: 6px;
font-size: 12.5px;
font-weight: 600;
transition: all var(--transition);
}
.vt-btn:hover { color: var(--text); }
.vt-btn.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.vt-btn.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
/* ============================================================
TABLO
============================================================ */
.list-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.tickets-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
min-width: 940px;
}
.tickets-table thead th {
position: sticky;
top: 0;
z-index: 2;
text-align: left;
padding: 11px 14px;
background: var(--surface-2);
color: var(--text-3);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .5px;
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
.tickets-table tbody tr {
border-bottom: 1px solid var(--border);
transition: background var(--transition);
cursor: pointer;
}
.tickets-table tbody tr:last-child { border-bottom: none; }
.tickets-table tbody tr:hover { background: var(--surface-2); }
.tickets-table tbody tr.is-removing { opacity: 0; transform: translateX(-14px); transition: all 220ms ease; }
.tickets-table td {
padding: 12px 14px;
vertical-align: middle;
color: var(--text-2);
}
.col-id { width: 92px; }
.col-title { min-width: 230px; }
.col-date { width: 132px; }
.col-ops { width: 74px; text-align: right; }
.ticket-id {
font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
font-size: 12px;
font-weight: 700;
color: var(--primary);
background: var(--primary-soft);
padding: 3px 7px;
border-radius: 5px;
white-space: nowrap;
}
.cell-title {
display: block;
font-weight: 600;
color: var(--text);
max-width: 340px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cell-sub {
display: block;
font-size: 11.5px;
color: var(--text-3);
max-width: 340px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 2px;
}
.cell-muted { color: var(--text-3); font-style: italic; }
.cell-date { font-size: 12.5px; white-space: nowrap; }
/* ---------- rozetler ---------- */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3.5px 10px;
border-radius: 999px;
font-size: 11.5px;
font-weight: 700;
white-space: nowrap;
border: 1px solid transparent;
}
.badge::before {
content: "";
width: 6px; height: 6px;
border-radius: 50%;
background: currentColor;
}
.badge-acik { color: var(--acik); background: var(--acik-bg); border-color: color-mix(in srgb, var(--acik) 30%, transparent); }
.badge-isleniyor { color: var(--isleniyor); background: var(--isleniyor-bg); border-color: color-mix(in srgb, var(--isleniyor) 30%, transparent); }
.badge-cozuldu { color: var(--cozuldu); background: var(--cozuldu-bg); border-color: color-mix(in srgb, var(--cozuldu) 30%, transparent); }
.badge-dusuk { color: var(--dusuk); background: var(--dusuk-bg); border-color: color-mix(in srgb, var(--dusuk) 30%, transparent); }
.badge-orta { color: var(--orta); background: var(--orta-bg); border-color: color-mix(in srgb, var(--orta) 30%, transparent); }
.badge-yuksek { color: var(--yuksek); background: var(--yuksek-bg); border-color: color-mix(in srgb, var(--yuksek) 30%, transparent); }
.badge-kritik {
color: var(--kritik);
background: var(--kritik-bg);
border-color: color-mix(in srgb, var(--kritik) 35%, transparent);
animation: kritik-glow 2.2s ease-in-out infinite;
}
@keyframes kritik-glow {
0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kritik) 45%, transparent); }
50% { box-shadow: 0 0 0 4px transparent; }
}
.tag-cat {
display: inline-block;
padding: 3px 9px;
border-radius: 6px;
background: var(--bg-soft);
border: 1px solid var(--border);
font-size: 11.5px;
font-weight: 600;
color: var(--text-2);
white-space: nowrap;
}
.owner-cell { display: flex; align-items: center; gap: 8px; }
.avatar {
width: 26px; height: 26px;
flex: 0 0 26px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 10.5px;
font-weight: 800;
color: #fff;
letter-spacing: .3px;
}
/* ---------- satır işlem butonları ---------- */
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.icon-btn {
width: 30px; height: 30px;
display: grid;
place-items: center;
border-radius: 7px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-2);
font-size: 13px;
transition: all var(--transition);
}
.icon-btn:hover {
border-color: var(--primary);
color: var(--primary);
background: var(--primary-soft);
}
.icon-btn.danger:hover {
border-color: var(--danger);
color: var(--danger);
background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.quick-status {
border: 1px solid var(--border-strong);
background: var(--surface);
color: var(--text-2);
border-radius: 7px;
padding: 6px 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.quick-status:hover { border-color: var(--primary); }
.quick-status:hover { border-color: var(--primary); }
/* ============================================================
KART GÖRÜNÜMÜ
============================================================ */
.cards-wrap {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
gap: 14px;
padding: 16px;
}
.ticket-card {
position: relative;
display: flex;
flex-direction: column;
gap: 10px;
padding: 15px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
box-shadow: var(--shadow-sm);
cursor: pointer;
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ticket-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
border-color: var(--primary);
}
.ticket-card.is-removing { opacity: 0; transform: scale(.95); transition: all 220ms ease; }
.ticket-card::before {
content: "";
position: absolute;
inset: 0 auto 0 0;
width: 3px;
border-radius: var(--radius) 0 0 var(--radius);
background: var(--border-strong);
}
.ticket-card[data-priority="kritik"]::before { background: var(--kritik); }
.ticket-card[data-priority="yuksek"]::before { background: var(--yuksek); }
.ticket-card[data-priority="orta"]::before { background: var(--orta); }
.ticket-card[data-priority="dusuk"]::before { background: var(--dusuk); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.tc-desc {
font-size: 12.5px;
color: var(--text-3);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-top: 9px;
border-top: 1px dashed var(--border);
font-size: 12px;
color: var(--text-3);
margin-top: auto;
}
.tc-actions { display: flex; gap: 6px; }
/* ============================================================
BOŞ / YÜKLENİYOR DURUMLARI
============================================================ */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
padding: 56px 24px;
text-align: center;
}
.empty-ico {
font-size: 40px;
opacity: .55;
line-height: 1;
margin-bottom: 4px;
}
.empty-state h3 { font-size: 16px; font-weight: 700; }
.empty-state p { font-size: 13.5px; color: var(--text-3); max-width: 380px; }
.empty-actions {
display: flex;
flex-wrap: wrap;
gap: 9px;
justify-content: center;
margin-top: 8px;
}
.loading-state { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skel-row {
height: 44px;
border-radius: var(--radius-sm);
background: linear-gradient(90deg, var(--bg-soft) 25%, var(--surface-2) 37%, var(--bg-soft) 63%);
background-size: 400% 100%;
animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer {
0% { background-position: 100% 0; }
100% { background-position: 0 0; }
}
@keyframes shimmer {
0% { background-position: 100% 0; }
100% { background-position: 0 0; }
}
/* ============================================================
MODAL
============================================================ */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 200;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 24px 16px;
overflow-y: auto;
background: rgba(8, 13, 26, .55);
backdrop-filter: blur(4px);
animation: fadeIn 180ms ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
position: relative;
width: 100%;
max-width: 580px;
margin: auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
max-height: calc(100vh - 48px);
animation: slideUp 220ms cubic-bezier(.16,1,.3,1);
}
.modal-lg { max-width: 760px; }
.modal-sm { max-width: 420px; }
@keyframes slideUp {
from { opacity: 0; transform: translateY(18px) scale(.985); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 17px 20px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.modal-head h2 {
font-size: 16.5px;
font-weight: 700;
letter-spacing: -.25px;
line-height: 1.35;
}
.detail-head-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.modal-close {
flex: 0 0 auto;
width: 30px; height: 30px;
display: grid;
place-items: center;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface);
color: var(--text-3);
font-size: 13px;
transition: all var(--transition);
}
.modal-close:hover {
color: var(--danger);
border-color: var(--danger);
background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.modal-body {
padding: 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
}
.modal-foot {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 9px;
padding: 15px 20px;
border-top: 1px solid var(--border);
background: var(--surface-2);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
flex-shrink: 0;
flex-wrap: wrap;
}
.modal-foot-split { justify-content: space-between; }
.foot-right { display: flex; gap: 9px; flex-wrap: wrap; }
/* ============================================================
FORM
============================================================ */
.form-row { display: flex; flex-direction: column; gap: 14px; }
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.field label {
font-size: 12.5px;
font-weight: 600;
color: var(--text-2);
}
.req { color: var(--danger); font-weight: 700; }
.err {
font-size: 11.5px;
font-weight: 600;
color: var(--danger);
min-height: 0;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
border-color: var(--danger);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 13%, transparent);
}
.char-count {
align-self: flex-end;
font-size: 11px;
color: var(--text-3);
font-variant-numeric: tabular-nums;
margin-top: -2px;
}
.form-error-banner {
padding: 10px 13px;
border-radius: var(--radius-sm);
background: color-mix(in srgb, var(--danger) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
color: var(--danger);
font-size: 12.5px;
font-weight: 600;
}
.form-error-banner[hidden] { display: none; }
/* ============================================================
DETAY MODAL
============================================================ */
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 14px;
border-radius: var(--radius);
background: var(--surface-2);
border: 1px solid var(--border);
}
.detail-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-label {
font-size: 10.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .5px;
color: var(--text-3);
}
.detail-value {
font-size: 13.5px;
font-weight: 600;
color: var(--text);
overflow-wrap: anywhere;
}
.detail-desc {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px;
border-radius: var(--radius);
background: var(--surface-2);
border: 1px solid var(--border);
}
.detail-desc p {
font-size: 13.5px;
color: var(--text-2);
line-height: 1.6;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.detail-controls {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.status-flow {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
padding: 12px 14px;
border-radius: var(--radius);
background: var(--surface-2);
border: 1px dashed var(--border-strong);
}
.status-flow-label {
font-size: 11.5px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .4px;
color: var(--text-3);
margin-right: 4px;
}
.activity { display: flex; flex-direction: column; gap: 8px; }
.log-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 7px;
max-height: 148px;
overflow-y: auto;
}
.log-item {
display: flex;
align-items: flex-start;
gap: 9px;
font-size: 12.5px;
color: var(--text-2);
padding: 7px 10px;
border-radius: var(--radius-sm);
background: var(--surface-2);
border: 1px solid var(--border);
}
.log-dot {
flex: 0 0 7px;
width: 7px; height: 7px;
margin-top: 5px;
border-radius: 50%;
background: var(--primary);
}
.log-time { color: var(--text-3); font-size: 11px; white-space: nowrap; margin-left: auto; }
.log-empty { font-size: 12.5px; color: var(--text-3); font-style: italic; }
/* ============================================================
TOAST
============================================================ */
.toast-container {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 400;
display: flex;
flex-direction: column;
gap: 10px;
max-width: min(360px, calc(100vw - 36px));
pointer-events: none;
}
.toast {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 15px;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--border);
border-left: 4px solid var(--primary);
box-shadow: var(--shadow-lg);
font-size: 13px;
font-weight: 600;
color: var(--text);
animation: toastIn 240ms cubic-bezier(.16,1,.3,1);
pointer-events: auto;
}
.toast.is-out { animation: toastOut 200ms ease forwards; }
.toast-success { border-left-color: var(--cozuldu); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--acik); }
.toast-warn { border-left-color: var(--isleniyor); }
.toast-ico { font-size: 15px; line-height: 1.3; flex: 0 0 auto; }
.toast-msg { line-height: 1.45; overflow-wrap: anywhere; }
@keyframes toastIn {
from { opacity: 0; transform: translateX(28px) scale(.96); }
to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
from { opacity: 1; transform: translateX(0); }
to { opacity: 0; transform: translateX(28px); }
}
/* ============================================================
FOOTER
============================================================ */
.footer {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
padding: 16px 24px;
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--text-3);
background: var(--surface);
}
.footer-dim { font-variant-numeric: tabular-nums; }
/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 1150px) {
.filters-row {
grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(120px, 1fr));
}
.field-search { grid-column: 1 / -1; }
.field-action { grid-column: 1 / -1; }
.field-action .btn { width: auto; }
}
@media (max-width: 860px) {
.content { padding: 16px 14px 32px; gap: 14px; }
.topbar { padding: 11px 14px; }
.filters { padding: 14px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat-value { font-size: 25px; }
.stat-foot { display: none; }
.filters-row { grid-template-columns: 1fr 1fr; }
.field-search { grid-column: 1 / -1; }
/* Tabloyu yatay kaydırmak yerine kart görünümüne zorla */
.table-wrap { display: none; }
.cards-wrap { display: grid; }
.detail-controls { grid-template-columns: 1fr; }
.detail-grid { grid-template-columns: 1fr; }
.footer { padding: 14px; flex-direction: column; align-items: flex-start; gap: 5px; }
}
@media (max-width: 620px) {
.hide-sm { display: none; }
.brand-text p { display: none; }
.form-grid { grid-template-columns: 1fr; }
.filters-row { grid-template-columns: 1fr; }
.stats { grid-template-columns: repeat(2, 1fr); }
.stat-card { padding: 13px 14px; }
.stat-value { font-size: 23px; }
.stat-label { font-size: 10.5px; }
.cards-wrap { grid-template-columns: 1fr; padding: 12px; }
.modal-overlay { padding: 10px; align-items: flex-start; }
.modal { max-height: calc(100vh - 20px); border-radius: var(--radius); }
.modal-body { padding: 16px; }
.modal-foot { padding: 13px 16px; }
.modal-foot-split { flex-direction: column-reverse; align-items: stretch; }
.modal-foot-split .btn { width: 100%; }
.foot-right { flex-direction: column-reverse; }
.toast-container { right: 10px; left: 10px; bottom: 10px; max-width: none; }
.panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
.view-toggle { align-self: stretch; }
.vt-btn { flex: 1; }
.filters-meta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .01ms !important;
animation-iteration-count: 1 !important;
transition-duration: .01ms !important;
}
}
@media print {
.topbar-actions, .filters, .view-toggle, .col-ops, .toast-container { display: none !important; }
body { background: #fff; }
}