/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg-main: #121212;
  --bg-card: #1f1f1f;
  --bg-soft: #2a2a2a;
  --text-main: #ffffff;
  --text-soft: #cfcfcf;
  --blue-1: #4dabf5;
  --blue-2: #1e90ff;
  --border: #444;
  --row-alt: #1a1a1a;
  --hover-row: #333;
  --font-main: 'JetBrains Mono', monospace;
}

/* =========================
   RESET
========================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BASE
========================= */
html { font-size: 18px; }
body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
#heading {
  text-align: center;
  font-size: 2.4rem;
  margin: 1.8rem 0;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* =========================
   FORM CARD
========================= */
#firstsect {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  display: grid;
  gap: 1.2rem;
  width: 95%;
  margin: auto;
}

/* =========================
   FLEX INPUTS
========================= */
#inputfl1,
#inputFl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* =========================
   INPUTS
========================= */
select,
input[type="radio"],
input[type="text"] {
  background: var(--bg-soft);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
}

/* =========================
   BUTTON
========================= */
#makebtn {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: auto;
}

/* =========================
   MAIN VERB SECTION
========================= */
#main-fial {
  font-size: 2.5rem;
  text-align: center;
  color: var(--blue-1);
  font-weight: bold;
}

.uper-div {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.ism-file {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  direction: rtl;
  text-align: center;
  font-size: 1.1rem;
}

/* =========================
   TABLE SECTION
========================= */
#tablediv {
  width: 100%;
  margin-top: 1rem;
  border-radius: 16px;      /* rounded corners for table container */
  overflow: hidden;          /* clip table corners */
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  background: var(--bg-card);
}

/* -------- TABLE STYLING -------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  table-layout: fixed;       /* evenly spaced columns */
}

th, td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #fff;
  font-weight: bold;
}

tr:nth-child(even) { background: var(--row-alt); }
tr:hover { background: var(--hover-row); }

/* =========================
   MOBILE ADAPTATION
========================= */
@media (max-width: 768px) {
  #tablediv {
    width: 100%;
    border-radius: 10px;    /* slightly smaller corners for mobile */
  }

  table {
    width: max-content;
    zoom: 0.65;             /* shrink to fit screen */
  }
}
