/* ===========================
   Global layout + background
   =========================== */

:root{
  --bg1: #e5f5ff;
  --bg2: #f6f9ff;
  --accent1: #8ee1ff;
  --accent2: #b7e6ff;
  --muted: #6b7280;
  --text-main: #04172e;
  --glass: rgba(255,255,255,0.7);
  --card-shadow: 0 14px 40px rgba(15,23,42,0.10);
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,body{
  height:100%;
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: radial-gradient(circle at top left, #e0f5ff 0%, #f2f5ff 40%, #fff9fd 100%);
  color:var(--text-main);
}

/* center the main container on the page */
body{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:32px 16px;
}

/* ===========================
   Main container card
   =========================== */

.container {
  width:100%;
  max-width:960px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(243,249,255,0.95));
  border-radius:var(--radius-lg);
  box-shadow:var(--card-shadow);
  padding:26px 26px 24px;
  border:1px solid rgba(180,210,255,0.6);
  backdrop-filter: blur(12px) saturate(130%);
}

/* header */
.header {
  display:flex;
  align-items:center;
  gap:18px;
}

.logo {
  width:60px;
  height:60px;
  border-radius:18px;
  background: conic-gradient(from 200deg, #d9f4ff, #eff3ff, #ffdff4, #d9f4ff);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 26px rgba(15,23,42,0.20);
  font-weight:800;
  color:#0b6b8f;
  font-size:18px;
}

.h1 {
  font-size:22px;
  margin:0 0 4px;
}

.h2 {
  margin:0;
  color:var(--muted);
  font-size:13px;
}

/* subtle animated line under header */
.gradline {
  height:5px;
  border-radius:999px;
  background: linear-gradient(90deg,#d5f1ff,#f0f4ff,#ffe6f5,#e3f4ff);
  margin:16px 0 8px;
  animation: lineShift 8s linear infinite;
  background-size:300% 100%;
}
@keyframes lineShift {
  0% { background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{background-position:0% 50%;}
}

/* ===========================
   Upload card
   =========================== */

.card {
  margin-top:18px;
  padding:18px 18px 16px;
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(236,244,255,0.9));
  border:1px solid rgba(196,214,250,0.7);
}

/* hide any plain file inputs (old layout) */
input[type="file"] {
  /* we'll show our custom stylized area instead */
  display:none;
}

/* label that acts as upload drop area */
.file-drop {
  margin-top:10px;
  border-radius:var(--radius);
  padding:20px 18px;
  display:flex;
  align-items:flex-start;
  gap:16px;
  background: linear-gradient(135deg,#e6f8ff,#f5f7ff);
  border: 1.5px dashed rgba(15,23,42,0.08);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.file-drop::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.6), transparent 60%);
  opacity:0;
  transition:opacity .25s ease;
}

.file-drop:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.12);
  border-color: rgba(15,118,178,0.3);
  background: linear-gradient(135deg,#e1f3ff,#f7fbff);
}

.file-drop:hover::before{
  opacity:1;
}

/* small icon-circle on left */
.file-drop::after{
  content:"⇪";
  font-size:22px;
  width:40px;
  height:40px;
  border-radius:999px;
  background: rgba(129,230,217,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0f766e;
  margin-right:4px;
}

/* text inside drop zone */
.file-drop > div {
  margin-left:8px;
}

.file-drop .drop-text {
  font-weight:600;
  font-size:15px;
}

.file-drop .muted {
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
}

/* actions */
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:14px;
}

/* buttons */
.btn {
  background: linear-gradient(135deg,#56cfe1,#7bdff0,#b2f0ff);
  border: none;
  padding:10px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  color:#003245;
  box-shadow: 0 10px 24px rgba(3,105,139,0.25);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(3,105,139,0.30);
}

.btn:disabled{
  opacity:0.6;
  cursor:default;
  box-shadow:none;
  transform:none;
}

.btn.secondary {
  background: transparent;
  border:1px solid rgba(15,118,178,0.25);
  color:#075985;
  box-shadow:none;
}

/* status message */
.status {
  margin-top:14px;
  padding:10px 12px;
  background: rgba(244,249,255,0.9);
  border-radius:var(--radius-sm);
  font-size:13px;
  color:#05203a;
  border:1px solid rgba(148,163,184,0.35);
}

/* ===========================
   Reports table
   =========================== */

.table-wrap {
  margin-top:16px;
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

th,td {
  text-align:left;
  padding:10px 10px;
  border-bottom:1px solid rgba(148,163,184,0.25);
}

th {
  background: linear-gradient(180deg, #f4f7ff, #e9f2ff);
  font-weight:600;
  color:#083246;
  font-size:13px;
  position:sticky;
  top:0;
  z-index:1;
}

tr:nth-child(even) td {
  background: rgba(249,250,255,0.7);
}

tr:hover td {
  background: rgba(219,234,254,0.55);
}

.small {
  font-size:12px;
  color:var(--muted);
}

.tag {
  display:inline-block;
  padding:6px 9px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
  background: rgba(129,230,217,0.25);
  color:#0f766e;
}

/* badges (if you ever use them) */
.badge-sent {
  color:#065f46;
  background: rgba(16,185,129,0.15);
  padding:4px 8px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
}
.badge-no {
  color:#7f1d1d;
  background: rgba(248,113,113,0.12);
  padding:4px 8px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
}

/* ===========================
   Responsive tweaks
   =========================== */
@media (max-width:720px) {
  body{
    padding:18px 8px;
  }
  .container{
    padding:18px 16px 16px;
    border-radius:16px;
  }
  .header{
    align-items:flex-start;
  }
  .logo{
    width:50px;height:50px;font-size:16px;
  }
  .h1{ font-size:19px; }
  th,td { padding:8px 6px; font-size:13px; }
}
