/* ================= ROOT THEME ================= */
:root{
  --bg:#0f1724; /* slightly lighter, still dark */
  --glass:rgba(255,255,255,.10);
  --border:rgba(255,255,255,.18);
  --text:#e6e9f0;
  --muted:#9aa4c7;
  --primary:#6cf2ff;
  --accent:#7cff6c;
  --danger:#ff6c6c;
  --radius:18px;
  --blur:blur(16px);
  --shadow:0 20px 40px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }

:root{
  --bg:#0b1220; /* solid dark background */
  --glass:rgba(255,255,255,0.03);
  --border:rgba(255,255,255,0.06);
  --text:#e6e9f0;
  --muted:#9aa4c7;
  --primary:#6cf2ff;
  --accent:#7cff6c;
  --danger:#ff6c6c;
  --radius:14px;
  --blur:blur(12px);
  --shadow:0 14px 30px rgba(0,0,0,0.6);
}
.top-bar{ z-index:400; }

/* ================= TOP HEADER BAR ================= */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 28px;
  position:sticky;
  top:0;
  z-index:150;

  /* Glass effect */
  background:
    linear-gradient(
      135deg,
      rgba(102,126,234,0.18),
      rgba(118,75,162,0.18)
    ),
    rgba(15,23,42,0.65);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom:1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 8px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.05);
}


body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont;
  font-size:15px;
  background: var(--bg);
  color:var(--text);
  overflow-x:hidden;
}
.top-bar{ z-index:400; }

.header-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.hamburger{
  width:38px;
  height:38px;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  color:#ffffff;
  border:none;
  font-size:20px;
  cursor:pointer;
  position:relative;
  z-index:450;
}

.brand{
  font-size:20px;
  font-weight:700;
}

.brand span{ color:var(--primary); }

.top-title{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-weight:900;
  font-size:22px;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing:1px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* menu: positioned as an overlay next to the dot — hidden by default, shown by click */
.doc-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* center title */
  min-height: 36px;
}
.menu{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:#0b1220; /* solid background so menu is not transparent */
  border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;
  display:none;
  z-index:10000;
  min-width:160px;
  max-width:260px;
  box-shadow:0 16px 36px rgba(2,8,20,0.6);
  flex-direction:column;
  gap:6px;
  padding:8px;
}

.menu button{ padding:10px 12px; font-size:14px; text-align:left; width:100%; border-radius:8px; background:transparent; border:none; color:var(--text); }
.menu button:hover{ background: rgba(255,255,255,0.03); }

/* make hamburger and dots lighter on idle and slightly brighter on hover */
.hamburger, .dots{
  background: rgba(255,255,255,0.045);
}
.hamburger:hover, .dots:hover, .hamburger:focus, .dots:focus{
  background: rgba(255,255,255,0.09);
}

/* ================= LOGOUT BUTTON ================= */

/* ================= LOGOUT BUTTON (FINAL OVERRIDE) ================= */
.logout-btn{
  padding:10px 20px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;

  background:#e74c3c;          /* PURE RED */
  color:#ffffff;

  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 8px 22px rgba(231,76,60,0.45);

  transition:.25s ease;
}

.logout-btn:hover{
  background:#ff5c4d;
  box-shadow:0 12px 30px rgba(231,76,60,0.6);
  transform:translateY(-1px);
}


/* Sidebar logout override */
.sidebar .logout-btn{
  margin:12px 16px;
  width:calc(100% - 32px);
  background: linear-gradient(135deg, rgba(108,242,255,0.08), rgba(124,255,108,0.04));
  color: #ffffff;
  border-radius:12px;
}

/* ================= SIDEBAR ================= */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  width:240px;
  background:var(--glass);
  border-right:1px solid var(--border);
  transform:translateX(-100%);
  transition:.3s ease;
  z-index:200;
  padding-top:80px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding-bottom:20px;
}

.sidebar.open{ transform:translateX(0); }

.sidebar a{
  display:block;
  padding:12px 20px;
  color:var(--text);
  text-decoration:none;
  font-size:14px;
}

.sidebar a + a{ margin-top:6px; }

.sidebar-footer{ margin-top:auto; padding:12px 16px; }

.hamburger{ z-index:450; }

.sidebar a:hover{
  background:rgba(255,255,255,.08);
}

/* ================= MAIN ================= */
.main{
  display:flex;
  justify-content:center;
}

.container{
  width:100%;
  max-width:1500px;
  margin:30px 20px 80px;
  padding:28px;
  background:var(--glass);
  backdrop-filter:var(--blur);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Page heading: larger, responsive and prominent */
.container h2{
  margin:0 0 18px;
  font-size:clamp(26px, 4.5vw, 40px);
  font-weight:800;
  letter-spacing:0.6px;
  color:var(--text);
}

/* ================= SHIPMENT INFO ================= */
.shipment-info{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px;
  padding:16px;
  margin-bottom:22px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:14px;
  font-size:13px;
}

.shipment-info strong{ color:var(--muted); }

/* ================= SHIPMENT TABLE STYLE (big fonts + grid) ================= */
.shipment-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:18px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.04);
  border-radius:12px;
  overflow:hidden;
}
.shipment-table th,
.shipment-table td{
  padding:14px 16px;
  border:1px solid rgba(255,255,255,0.04);
  text-align:left;
  vertical-align:middle;
}
.shipment-table th{
  width:140px;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
.shipment-table td.value{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

/* Center upload/download actions inside each document tile */
.doc-tile [id$="_actions"]{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
}

/* ================= DASHBOARD TABLE ================= */
.table{
  width:100%;
  border-collapse:collapse;
  margin:18px auto 18px;
  max-width:1800px;
  table-layout:fixed;
  border:1px solid rgba(255,255,255,.06);
}

.table th{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  border-left:1px solid rgba(255,255,255,.04);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  vertical-align:middle;
}

.table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  border-left:1px solid rgba(255,255,255,.04);
  white-space:nowrap;
  overflow:visible; /* allow menus to escape cell */
  text-overflow:ellipsis;
  text-align:center;
  vertical-align:middle;
}

.table thead th{
  font-size:18px;
  font-weight:800;
  color:var(--text);
  letter-spacing:0.6px;
}

/* Header fill colors */
.table thead th{
  background: rgba(108,242,255,0.04);
  backdrop-filter: blur(4px);
}

/* Make the Action header slightly accentuated */
.table thead th:last-child{
  background: rgba(255,108,108,0.04);
}

/* Fixed column widths for visual stability */
.table th:first-child{ width:120px; }
.table th:nth-child(2){ width:160px; }
.table th:nth-child(3){ width:160px; }
.table th:nth-child(4){ width:220px; }
.table th:last-child,
.table td:last-child{ width:140px; }

/* ================= VIEW BUTTON ================= */
.btn-view{
  display:inline-flex;
  align-items:center;
  padding:8px 16px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  color: #ffffff;
  background: linear-gradient(135deg, #2ecc71, #14a44d);
  border:1px solid rgba(20,164,77,0.12);
  box-shadow:0 8px 20px rgba(20,164,77,0.18);
  transition:.2s ease;
}

.btn-view:hover{
  transform:translateY(-1px);
}

/* Sortable header visuals */
.sortable{ cursor:pointer; }
.sort-indicator{ margin-left:6px; font-size:12px; opacity:.9; }

/* ================= DOCUMENT GRID ================= */
.docs-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
}

/* ================= DOCUMENT TILE ================= */
.doc-tile{
  position:relative;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.doc-missing{
  background:rgba(255,255,255,.06);
}

.doc-uploaded{
  background:linear-gradient(
    145deg,
    rgba(124,255,108,.28),
    rgba(124,255,108,.10)
  );
  border-color:rgba(124,255,108,.6);
}

.doc-header{
  display:flex;
  align-items:center;
  gap:8px;
}

.doc-title{
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

/* Dots stay on the right without affecting centering */
.doc-header .dots{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.doc-status{
  font-size:13px;
  margin-top:6px;
  text-align:center;
}

/* Reduce the large page heading size on shipment page to be closer to the info values */
.container .shipment-table ~ h2{
  font-size:18px;
  margin-top:12px;
  font-weight:800;
}

.missing{ color:var(--danger); }
.uploaded{ color:var(--accent); }

/* ================= DOCUMENT BUTTONS ================= */
.doc-btn{
  padding:10px 16px;
  border-radius:12px;
  border:none;
  font-weight:700;
  cursor:pointer;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border:1px solid rgba(255,255,255,0.12);
}

.add-block-btn{
  padding:10px 16px;
  border-radius:12px;
  border:none;
  font-weight:700;
  cursor:pointer;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border:1px solid rgba(255,255,255,0.12);
}

.btn-upload{
  background: rgba(255,255,255,0.04);
  color: #ffffff;
  border:1px solid rgba(255,255,255,0.12);
}

.btn-download{
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  border:1px solid rgba(255,255,255,0.12);
}

/* ================= DOT MENU ================= */
.dots{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:#ffffff;
  width:34px;
  height:34px;
  border-radius:12px;
  cursor:pointer;
}

.menu{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:#0b1220;
  border:1px solid rgba(255,255,255,0.04);
  border-radius:10px;
  display:none;
  z-index:10000;
  min-width:160px;
  max-width:260px;
  box-shadow:0 16px 36px rgba(2,8,20,0.6);
  flex-direction:column;
  gap:6px;
  padding:8px;
}

.menu button{
  padding:10px 12px;
  background:transparent;
  border:none;
  color:var(--text);
  width:100%;
  text-align:left;
  cursor:pointer;
  border-radius:8px;
}

.menu button:hover{
  background:rgba(255,255,255,0.03);
}

/* ================= ADD SHIPMENT FORM ================= */
.shipment-form{
  margin-top:20px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  align-items:start;
}


.form-group{
  display:flex;
  flex-direction:column;
  position:relative;
}

.form-group label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}

.form-group input{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.08);
  color:var(--text);
  outline:none;
}

.form-group input:focus{
  border-color:var(--primary);
}

.form-actions{
  margin-top:26px;
  display:flex;
  justify-content:flex-end;
}

.save-btn{
  padding:10px 22px;
  border-radius:12px;
  border:none;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  color: #ffffff;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 10px 32px rgba(0,0,0,0.4);
  transition:.25s ease;
}

.save-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 42px rgba(108,242,255,0.18);
}

/* Green variant for Add Shipment save button */
.save-btn--green{
  background: linear-gradient(135deg, #28d07a, #05b163);
  color: #ffffff;
  border:1px solid rgba(5,177,99,0.12);
  box-shadow: 0 12px 36px rgba(5,177,99,0.12);
}
.save-btn--green:hover{
  transform:translateY(-2px);
  box-shadow: 0 16px 40px rgba(5,177,99,0.18);
}

/* Subtle glow on interactive buttons; preserves existing hover transform effects */
.save-btn,
.btn-view,
.doc-btn,
.add-block-btn,
.logout-btn,
.hamburger,
.dots{
  --btn-glow: rgba(255,255,255,0.06);
  box-shadow: 0 8px 26px var(--btn-glow);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Slightly stronger glow on focus/hover for accessibility (does not change transform rules already defined) */
.save-btn:focus,
.btn-view:focus,
.doc-btn:focus,
.add-block-btn:focus,
.logout-btn:focus,
.hamburger:focus,
.dots:focus,
.save-btn:hover:not(:active),
.btn-view:hover:not(:active),
.doc-btn:hover:not(:active),
.add-block-btn:hover:not(:active),
.logout-btn:hover:not(:active),
.hamburger:hover:not(:active),
.dots:hover:not(:active){
  box-shadow: 0 16px 48px rgba(108,242,255,0.12);
}


/* ================= AUTOCOMPLETE ================= */
.suggestions{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:12px;
  margin-top:6px;
  max-height:180px;
  overflow-y:auto;
  z-index:50;
  display:none;
}

.suggestions div{
  background: #000000;
  padding:12px 14px;
  cursor:pointer;
  font-size:13px;
}

.suggestions div:hover{
  background:rgb(32, 32, 32);
}

/* ================= LOGIN ================= */
.login-container{
  width:100%;
  max-width:420px;
  margin:80px auto;
  padding:32px 28px;
  background:var(--glass);
  backdrop-filter:var(--blur);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  text-align:center;
}

.login-container h2{
  margin:0;
  font-size:26px;
}

.login-sub{
  margin:8px 0 26px;
  font-size:14px;
  color:var(--muted);
}

.login-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.login-form label{
  font-size:13px;
  color:var(--muted);
  text-align:left;
}

.login-form input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.08);
  color:var(--text);
}

.login-btn{
  margin-top:10px;
  padding:14px;
  border-radius:16px;
  font-weight:800;
}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .top-bar{ padding:14px 20px; }
  .container{ margin:20px 14px 60px; padding:20px; }
}

@media(max-width:600px){
  .form-actions{ justify-content:center; }
}

/* ================= CENTER LOGIN HEADER BRAND ================= */
.login-header{
  justify-content:center;
  text-align:center;
}

.login-header .header-left{
  width:100%;
  display:flex;
  justify-content:center;
}

.login-header .brand{
  font-size:22px;
  font-weight:800;
  letter-spacing:0.4px;
  text-align:center;
}

/* ========== Layout ========== */

.layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #111;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Sidebar hidden */
.sidebar.closed {
  transform: translateX(-100%);
}

/* Content area */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin 0.3s ease;
}

/* Header */
.top-bar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #1b1b1b;
  color: white;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px;
}

/* Actual content box */


/* ========== BODY STATES ========== */

/* When sidebar close */
body.sidebar-open .content-area {
  margin-left: 0;
}

/* When sidebar CLOSED → CENTER EVERYTHING */
body.sidebar-closed .content-area {
  margin-left: 0;
}

/* On small screens */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    z-index: 1000;
    height: 100vh;
  }
}

.back-btn {
  background: #a200ff8c;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Times New Roman', Times, serif;
}

.back-btn:hover {
  background: rgb(111, 0, 255);
  color: #ffffff;
}


.table {
  width: 100%;
  table-layout: fixed;        /* 🔴 VERY IMPORTANT */
  border-collapse: collapse;
}

.table th,
.table td {
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* keep overflow hidden ONLY for non-action columns */
.table td:not(:last-child) {
  overflow: hidden;
}


.table th:nth-child(1),
.table td:nth-child(1) { width: 70px; }   /* Bill */

.table th:nth-child(2),
.table td:nth-child(2) { width: 100px; }  /* Date */

.table th:nth-child(3),
.table td:nth-child(3) { width: 140px; }  /* Vehicle */

.table th:nth-child(4),
.table td:nth-child(4) { width: 200px; }  /* Party */

.table th:nth-child(5),
.table td:nth-child(5) { width: 80px; }  /* Qty */

.table th:nth-child(6),
.table td:nth-child(6) { width: 60px; }  /* Class */

.table th:nth-child(7),
.table td:nth-child(7) { width: 140px; }  /* Action */

/* ===== SearchData SUMMARY BIG NUMBERS ===== */

#summary{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

#summary > div{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: center;
  font-size: 18px;          /* label size */
  font-weight: 600;
}

#summary strong{
  display: block;
  margin-top: 8px;
  font-size: 25px;          /* 🔥 BIG NUMBER */
  font-weight: 700;
  color: var(--primary);    /* cyan accent */
  line-height: 1.1;
}

/* Quantity highlight in green */
#totalQty{
  color: var(--accent);
}


/* SearchData table bill link */
.table a{
  transition: .2s ease;
}

.table a:hover{
  text-decoration: underline;
  opacity: 0.9;
}


/* SearchData – Bill hyperlink */
.bill-link{
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}


/* ===== HEADER TITLE POOF ANIMATION ===== */

@keyframes poofOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.3);
  }
}

@keyframes poofIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.top-title.poof-out {
  animation: poofOut 0.6s ease forwards;
}

.top-title.poof-in {
  animation: poofIn 0.6s ease forwards;
}


/* ===== ACTION MENU RIGHT-SIDE FIX ===== */

.table td:last-child {
  position: relative;
  overflow: visible !important;
}

/* Menu opens to the RIGHT of 3 dots */
.table td:last-child .menu {
  position: absolute;
  left: 100%;              /* push to right side */
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;        /* small gap from dots */
  white-space: nowrap;
  z-index: 1000;
}

/* Keep buttons clean */
.table td:last-child .menu button {
  white-space: nowrap;
}


/* ===== CONFIRMED RAWANNA ROW ===== */
.row-confirmed {
  background: linear-gradient(90deg, #e6fffa, #ccfbf1);
  border-left: 4px solid #16a34a;
}

.row-confirmed td {
  color: #065f46;
  font-weight: 600;
}

/* ======================================================
   DASHBOARD ROW STATE FIX (FINAL)
   ====================================================== */

/* ✅ DEFAULT rows (NOT confirmed) */
.table tbody tr {
  background: rgba(255,255,255,0.015);
  transition: background 0.2s ease;
}

/* Hover effect ONLY for non-confirmed rows */
.table tbody tr:not(.row-confirmed):hover {
  background: rgba(255,255,255,0.04);
}

/* ✅ CONFIRMED RAWANNA ROW ONLY */
.table tbody tr.row-confirmed {
  background: linear-gradient(
    90deg,
    rgba(16,185,129,0.22),
    rgba(16,185,129,0.08)
  ) !important;

  border-left: 4px solid #48ff00ad;
}

/* Text color for confirmed rows */
.table tbody tr.row-confirmed td {
  color: #d1fae5;
  font-weight: 700;
}

/* ✅ ACTIVE / SELECTED ROW (DARK) */
.table tbody tr.active,
.table tbody tr.selected {
  background: rgba(15,23,42,0.95) !important;
  color: #ffffff;
}

/* ================= COLUMN RESIZER ================= */

th.resizable {
  position: relative;
}

/* draggable handle */
.col-resizer {
  position: absolute;
  top: 0;
  right: -2px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 10;
}

/* visual feedback on hover */
.col-resizer:hover {
  background: rgba(108,242,255,0.25);
}

.upload-progress {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 12px;
  text-align: center;
  color: #ffffff;
}


/* ================= CANCELLED MODAL ================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* blackish tint */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay.hidden {
  display: none;
}

.modal {
  background: #0f172a;
  border-radius: 14px;
  padding: 24px 28px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  color: #e5e7eb;
  text-align: center;
  animation: popIn 0.25s ease-out;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #f87171;
}

.modal p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-secondary {
  background: #1f2933;
  color: #e5e7eb;
  border: 1px solid #374151;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #374151;
}

.btn-danger:hover {
  background: #b91c1c;
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* ✅ Confirmed Rawanna (GREEN) */
tr.row-confirmed {
  background: rgba(0, 200, 0, 0.15);
  color: #9dff9d;
}

/* ❌ Cancelled Party (RED + STRIKE) */
tr.row-cancelled {
  background: rgba(255, 0, 0, 0.15);
  color: #ff9d9d;
  text-decoration: line-through;
}

/* Ensure CANCELLED overrides CONFIRMED */
tr.row-cancelled td {
  text-decoration: line-through;
}

.blocks-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:18px;
  margin-top:16px;
}

.block-card{
  background:rgba(255,255,255,0.06);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}

.block-card h4{
  margin:0 0 10px;
  font-size:16px;
  font-weight:800;
  color:var(--primary);
}

.block-row{
  font-size:14px;
  margin-bottom:6px;
}

.block-row strong{
  color:var(--muted);
}


/* Block Cards */
.block-card {
  background: #1e2530; /* Matches your screenshot */
  border: 1px solid #30363d;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #c9d1d9;
}

/* Add these to your styles.css if not present */
.block-menu button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.edit-active {
  border: 1px solid var(--primary) !important;
  background: rgba(108, 242, 255, 0.05) !important;
}

.block-row {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.block-row strong {
  color: var(--muted);
  font-weight: 500;
}