ticket-parser / style.css
stat2025's picture
Update style.css
7d7eed7 verified
raw
history blame
4.18 kB
:root{
--bg:#F4F6FA;
--card:#FFFFFF;
--text:#1F2937;
--muted:#6B7280;
--primary:#4137A8;
--accent:#1CADE4;
--success:#42BA97;
--secondary:#5C6E88;
--violet:#7030A0;
--cyan:#27CED7;
--warning:#FFC000;
--danger:#F5554A;
--border:#E5E7EB;
--rowAlt:#F5F8FF;
}
*{ box-sizing:border-box }
html,body{ height:100% }
body{
margin:0; padding:24px; background:var(--bg); color:var(--text);
font-family:"Cairo",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.container{ max-width:1100px; margin:0 auto; }
.center{ text-align:center }
.hero h1{ margin:0 0 4px; font-weight:800; font-size:clamp(22px,4vw,34px); color:var(--primary) }
.hero .sub{ margin:0; color:var(--muted); font-size:14px }
.hero .sep{ margin:0 .5rem }
.card{
margin:18px auto 28px; background:var(--card); border:1px solid var(--border);
border-radius:16px; box-shadow:0 6px 24px rgba(0,0,0,.05); padding:18px;
}
.label{ display:block; text-align:right; font-weight:700; margin:4px 4px 8px }
.paste{
width:100%; min-height:180px; resize:vertical; border:1px solid var(--border); border-radius:12px;
padding:12px 14px; line-height:1.7; font-size:15px; background:#fff;
}
.paste:focus{ outline:2px solid var(--accent) }
.filters{ display:flex; gap:12px; margin-top:12px; flex-wrap:wrap; justify-content:center }
.control{
border:1px solid var(--border); border-radius:10px; padding:10px 12px; background:#fff;
min-width:260px; font-size:14px;
}
.hint{ margin:12px 0 8px; color:var(--muted); font-size:13px }
.btn-row{
display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; margin:8px 0 16px;
}
.btn{
border:0; border-radius:999px; padding:10px 14px; font-weight:700; cursor:pointer;
box-shadow:0 4px 12px rgba(0,0,0,.08); transition:transform .05s ease;
}
.btn:active{ transform:translateY(1px) }
.btn[disabled]{ opacity:.5; cursor:not-allowed; box-shadow:none }
.btn-primary{ background:var(--primary); color:#fff }
.btn-success{ background:var(--success); color:#fff }
.btn-info{ background:var(--accent); color:#fff }
.btn-danger{ background:var(--danger); color:#fff }
.btn-light{ background:#EEF2FF; color:var(--primary) }
.btn[data-step]{ position:relative; padding-inline-start:36px }
.btn[data-step]::before{
content:attr(data-step); position:absolute; inset-inline-start:10px; top:50%; transform:translateY(-50%);
width:20px; height:20px; border-radius:999px; background:#fff; color:var(--primary);
font-weight:800; font-size:12px; display:grid; place-items:center;
}
.badge{
display:inline-flex; align-items:center; justify-content:center;
min-width:22px; height:22px; padding:0 6px; background:#fff; color:var(--primary);
border-radius:999px; font-weight:800; font-size:12px; margin-inline-start:8px;
box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.table-wrap{ overflow:auto; border:1px solid var(--border); border-radius:12px }
.table{ width:100%; border-collapse:collapse; min-width:900px }
.table thead th{
background:var(--primary); color:#fff; padding:10px; font-weight:800; position:sticky; top:0; text-align:center;
}
.table td{ padding:10px; border:1px solid var(--border); text-align:center; background:#fff }
.table tbody tr:nth-child(even) td{ background:var(--rowAlt) }
.invalid{ background:#FFF2F2 !important; outline:2px solid var(--danger) }
.footer{ margin:18px 0; text-align:center; color:var(--muted); font-size:13px }
.toast{
position:fixed; left:50%; transform:translateX(-50%); bottom:22px;
background:#111827; color:#fff; padding:10px 14px; border-radius:10px; font-weight:700; opacity:0;
}
.toast.show{ opacity:1; transition:opacity .2s ease }
.modal{
position:fixed; inset:0; background:rgba(0,0,0,.35); display:grid; place-items:center; padding:16px;
}
.modal[hidden]{ display:none }
.modal-card{
width:min(720px,95vw); background:#fff; border-radius:14px; border:1px solid var(--border);
box-shadow:0 10px 40px rgba(0,0,0,.2); padding:14px;
}
.modal-head{ font-weight:800; color:var(--primary); margin-bottom:8px; text-align:right }
.modal-textarea{ min-height:180px }
@media (max-width:640px){
body{ padding:16px }
.table{ min-width:760px }
}