:root{
  /* Piraeus Bank official colors */
  --yellow:#FFB81C;
  --yellow-light:#FFC845;
  --blue:#003476;
  --blue-dark:#002254;

  --bg:#f8f9fa;
  --card:#ffffff;
  --line:rgba(0,52,118,.12);
  --text:#1a1a1a;
  --muted:#6c757d;

  --shadow: 0 4px 20px rgba(0,52,118,.08);
  --radius:12px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  overflow-x:hidden;
  min-height:100vh;
}

/* Animated background */
.bg-wrap{
  position:fixed;
  inset:0;
  z-index:-2;
  overflow:hidden;
}

.blob{
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(55px);
  opacity:.26;
  animation: drift 16s ease-in-out infinite;
}

.blob-yellow{
  background: radial-gradient(circle at 30% 30%, rgba(255,184,28,.25), transparent 60%);
  top:-100px; left:-100px;
}
.blob-green{
  background: radial-gradient(circle at 40% 40%, rgba(0,52,118,.18), transparent 65%);
  bottom:-120px; right:-120px;
  animation-duration: 22s;
}
.blob-mint{
  background: radial-gradient(circle at 35% 35%, rgba(255,200,69,.20), transparent 60%);
  top: 25%; right: 20%;
  width: 450px; height: 450px;
  animation-duration: 19s;
}

@keyframes drift{
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d( 2%,  1%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1); }
}

.grid-sheen{
  position:absolute;
  inset:-20%;
  background:
    linear-gradient(to right, rgba(0,52,118,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,52,118,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity:.3;
  transform: rotate(-8deg);
  animation: sheen 16s linear infinite;
}

@keyframes sheen{
  0%{ transform: translate3d(0,0,0) rotate(6deg); }
  100%{ transform: translate3d(-56px,56px,0) rotate(6deg); }
}

.container{
  max-width: 1120px;
  margin: 34px auto;
  padding: 0 16px 60px;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom: 16px;
}
@media (max-width: 920px){
  .header{flex-direction:column;}
}

.brand{display:flex; gap:14px; align-items:flex-start}
.mark{
  width:50px; height:50px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 4px 12px rgba(0,52,118,.25);
  border:2px solid var(--yellow);
  position:relative;
}
.mark::after{
  content:'';
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width:60%; height:3px;
  background: var(--yellow);
  box-shadow: 0 8px 0 var(--yellow), 0 16px 0 var(--yellow);
}

h1{ margin:0; font-size:22px; letter-spacing:.2px;}
.subtitle{ margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.45;}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  font-size:11px;
  padding: 6px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--blue);
  font-weight:600;
  box-shadow: 0 2px 4px rgba(0,52,118,.06);
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: 16px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 10px;
}

h2{ margin:0 0 12px; font-size:17px; color:var(--blue); font-weight:700;}
h3{ margin:0 0 10px; font-size:14px; color:var(--text); font-weight:600;}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){
  .grid2{ grid-template-columns:1fr; }
}

.panel{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fafbfc;
}
.panel.soft{
  background: #f8f9fa;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 8px;
}

.badge{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight:600;
}
.badge.good{ background:#d4edda; color:#155724; border-color:#c3e6cb; }
.badge.warn{ background:#fff3cd; color:#856404; border-color:#ffeaa7; }
.badge.neutral{ opacity:.85; }

.row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

label{ font-size:12px; color:var(--muted); }

input[type="file"]{
  width:100%;
  padding:12px;
  border-radius: 8px;
  border:2px dashed var(--line);
  background: #fafbfc;
  color: var(--text);
  cursor:pointer;
}
input[type="file"]:hover{
  border-color: var(--yellow);
  background: #fff;
}

select, input[type="text"]{
  width:100%;
  padding:10px 12px;
  border-radius: 8px;
  border:1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline:none;
  transition: border-color 0.2s;
}
select:focus, input[type="text"]:focus{
  border-color: var(--blue);
}

.hint{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  border-left: 4px solid var(--yellow);
  padding: 12px 14px;
  background: #fffbf0;
  border-radius: 8px;
}

.divider{
  height:1px;
  background: var(--line);
  margin: 20px 0;
}

.preview{
  border:1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 110px;
  background: #f8f9fa;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  color: var(--text);
}

.autoBox{
  border:1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fa;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
}

.mapRow{ margin-top: 12px; }
.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:6px;
}
.longMappings{ margin-top: 6px; }

.checks{ display:flex; gap:14px; margin-top: 12px; flex-wrap:wrap; }
.chk{
  font-size: 12px;
  color: rgba(255,255,255,.90);
  display:flex;
  gap:8px;
  align-items:center;
}

.actions{
  display:flex;
  gap:10px;
  margin-top: 14px;
  flex-wrap:wrap;
}

.btn{
  cursor:pointer;
  border:none;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 700;
  font-size:14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255,184,28,.3);
}
.btn:hover:not(:disabled){
  background: var(--yellow-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,184,28,.4);
}
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.btn.secondary{
  background: var(--card);
  border: 2px solid var(--blue);
  color: var(--blue);
  box-shadow: none;
}
.btn.secondary:hover:not(:disabled){
  background: var(--blue);
  color: white;
}

.btn.ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover:not(:disabled){
  border-color: var(--blue);
  color: var(--blue);
}

.status{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.90);
  min-height: 18px;
}

.summary{
  border: 1px solid var(--line);
  background: #f0f4f8;
  padding: 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.summary.empty{ color: var(--muted); background: #fafbfc; }

.listBox{
  border: 1px solid var(--line);
  background: #fafbfc;
  padding: 12px;
  border-radius: 8px;
  min-height: 90px;
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
}

.micro{ font-size:11px; margin-top:6px; }
.muted{ color: var(--muted); }

.accordion{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.item{
  border:1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow:hidden;
  transition: box-shadow 0.2s;
}
.item:hover{
  box-shadow: 0 4px 12px rgba(0,52,118,.08);
}

.itemHead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 14px;
  cursor:pointer;
  transition: background 0.2s;
}
.itemHead:hover{
  background: #f8f9fa;
}
.itemHead strong{font-size: 13px; color: var(--blue);}

.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pill-mini{
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight:600;
}
.pill-mini.add{ background:#d4edda; color:#155724; border-color:#c3e6cb; }
.pill-mini.rem{ background:#f8d7da; color:#721c24; border-color:#f5c6cb; }
.pill-mini.meta{ background:#fff3cd; color:#856404; border-color:#ffeaa7; }

.itemBody{
  display:none;
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--text);
  background: #f8f9fa;
}
.itemBody pre{
  margin:0;
  white-space: pre-wrap;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--text);
}
