* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background-color: #4a4c4f;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 30px;
}

.logo-box {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  border: 2px solid #4da3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.header-text h1 {
  font-size: 28px;
  letter-spacing: 1px;
  margin-right: 1300px;
}

.header-text p {
  font-style: italic;
  color: #aac4e0;
  font-size: 14px;
  margin-top: 4px;
  margin-right: 1000px;
}

/* PANEL TITLE */
.panel-title {
  background-color: #1a2740;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* BUTTONS GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 30px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.btn {
  padding: 22px 16px;
  font-size: 15px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.btn:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

/* BUTTON COLORS */
.blue {
  background-color: #2e86de;
}
.green {
  background-color: #27ae60;
}
.red {
  background-color: #e74c3c;
}
.purple {
  background-color: #8e44ad;
}
.cyan {
  background-color: #00b5cc;
}
.orange {
  background-color: #e67e22;
}
.lime {
  background-color: #8bc34a;
  color: white;
}
.gray {
  background-color: #636e72;
}

/* DATA SECTION */
.data-section {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.05);
}

.data-section h2 {
  color: #1a2740;
  margin-bottom: 16px;
  font-size: 20px;
  border-left: 5px solid #2e86de;
  padding-left: 12px;
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th {
  background-color: #1a2740;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #333;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #f7f9fc;
}

/* LOADING & ERROR */
.loading {
  color: #2e86de;
  font-style: italic;
  padding: 20px 0;
}

.error {
  color: #e74c3c;
  padding: 20px 0;
}

.darkblue {
  background-color: #1f3c88;
}

.bottom-center {
  grid-column: 1 / span 2;
  width: 49%;

  margin-top: 1px;
}

.btn {
  padding: 18px 16px;
  font-size: 15px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

/* ==========================================
   ULTRA PREMIUM ANIMATED GALAXY CALENDAR CSS
========================================== */

/* STAR BACKGROUND */

.calendar-stars::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -120px;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transform: rotate(-18deg);
  animation: shootingStar 8s linear infinite;
  opacity: 0.45;
}

.calendar-stars::after {
  content: "";
  position: absolute;
  top: 55%;
  right: -120px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a44c, transparent);
  transform: rotate(-20deg);
  animation: shootingStar2 10s linear infinite;
  opacity: 0.8;
}

@keyframes shootingStar {
  0% {
    transform: translateX(0) translateY(0) rotate(-18deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(1600px) translateY(260px) rotate(-18deg);
    opacity: 0;
  }
}

@keyframes shootingStar2 {
  0% {
    transform: translateX(0) translateY(0) rotate(-20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(-1600px) translateY(220px) rotate(-20deg);
    opacity: 0;
  }
}

/* MAIN WRAP */

/* BOXES */
.calendar-box,
.event-box {
  background: linear-gradient(145deg, rgba(18, 28, 48, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    1px solid rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: #fff;
  transition: 0.3s;
}

.calendar-box:hover,
.event-box:hover {
  transform: translateY(-2px);
}

/* HEADER */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.calendar-header h2 {
  color: #ffffff;
}

/* NAV BUTTONS */
.calendar-header button {
  border: none;
  background: linear-gradient(135deg, #c58a2b, #a56b1f);
  color: #fff;
  padding: 11px 18px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.25);
}

.calendar-header button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 22px rgba(59, 130, 246, 0.38);
}

/* GRID */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

/* DAY HEADER */
.day-name {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  color: #9ec5ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* DAY CELL */
.day {
  text-align: center;
  padding: 11px 6px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: 0.22s;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.day:hover {
  transform: translateY(-3px);
  background: rgba(59, 130, 246, 0.22);
  box-shadow: 0 12px 18px rgba(59, 130, 246, 0.18);
}

/* TODAY */
.today {
  background: linear-gradient(135deg, #8b5e1a, #d4a44c);
}

/* EVENT BOX */
.event-box h3 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

.event-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-box li {
  padding: 15px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #d4a44c;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  transition: 0.22s;
}

.event-box li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.18);
}

/* MOBILE */
@media (max-width: 950px) {
  .calendar-section {
    grid-template-columns: 1fr;
  }

  .calendar-stars {
    height: 980px;
  }

  .calendar-header h2 {
    font-size: 26px;
  }

  .calendar-grid {
    gap: 8px;
  }

  .day,
  .day-name {
    padding: 12px 5px;
    font-size: 14px;
  }
}

/* ==========================================
   EXTRA STAR FIELD INSIDE CALENDAR ONLY
   Add this BELOW your current calendar CSS
========================================== */

/* Make calendar box hold stars */
.calendar-box {
  position: relative;
  overflow: hidden;
}

/* Stars layer */

/* Extra tiny stars */

/* Keep content above stars */
.calendar-box > * {
  position: relative;
  z-index: 2;
}

/* ===================================================
   FULL MAIN INTERFACE GALAXY LOOK
   ADD THIS AT VERY BOTTOM OF style.css
   (keeps your logic same, only visual upgrade)
=================================================== */

/* BODY GALAXY SPACE */
body {
  background: linear-gradient(135deg, #120d05 0%, #1b1408 35%, #241808 100%);

  color: #f7e7c1;
  min-height: 100vh;
  overflow-x: hidden;
}

/* GLOBAL STARS */

/* SHOOTING STAR */
body::after {
  content: "";
  position: fixed;
  top: 15%;
  left: -220px;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transform: rotate(-18deg);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: mainShoot 9s linear infinite;
}

@keyframes mainShoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-18deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(1800px) translateY(260px) rotate(-18deg);
    opacity: 0;
  }
}

/* KEEP ALL CONTENT ABOVE BACKGROUND */
.header,
.panel-title,
.grid,
.data-section,
.calendar-section {
  position: relative;
  z-index: 2;
}

/* HEADER GLASS */
.header {
  background: linear-gradient(135deg, #5d3d0a, #8b5e1a, #b67a22);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.header-text h1 {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
}

.header-text p {
  color: #b8d4ff;
}

/* PANEL TITLE */
.panel-title {
  background: rgba(80, 50, 10, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
}

/* BUTTON GRID CARD STYLE */
.btn {
  border-radius: 14px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: 0.25s;
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(255, 255, 255, 0.08);
}

/* BETTER COLORS */
.blue {
  background: linear-gradient(135deg, #8b5e1a, #a56b1f);
}

.green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.purple {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.lime {
  background: linear-gradient(135deg, #65a30d, #84cc16);
}

.gray {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

.darkblue {
  background: linear-gradient(135deg, #c58a2b, #1e40af);
}

/* DATA PANEL GLASS */
.data-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 22px 26px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  margin-top: 20px;
}

.data-section h2 {
  color: #ffffff;
  border-left: 5px solid #d4a44c;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.18);
}

/* TABLE UPGRADE */
table {
  background: rgba(8, 18, 40, 0.88);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

th {
  background: linear-gradient(135deg, #c58a2b, #1e3a8a);
  color: #fff;
}

td {
  color: #e5efff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* LOGO GLOW */
.logo-box {
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.25),
    0 0 18px rgba(59, 130, 246, 0.22);
}

/* MOBILE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .bottom-center {
    grid-column: auto;
    width: 100%;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .header-text h1 {
    font-size: 22px;
  }
}

/* ===============================
   OPERATIONS PANEL
=============================== */

.calendar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.ops-panel {
  background: rgba(10, 20, 55, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(0, 132, 255, 0.12);
}

.ops-panel h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 22px;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* =================================
   OPERATIONS PANEL INPUTS
================================= */

.ops-panel input,
.ops-panel select {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    0 10px 25px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ops-panel input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.ops-panel input:focus,
.ops-panel select:focus {
  border: 1px solid #4ea1ff;
  box-shadow:
    0 0 0 4px rgba(78, 161, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

/* SELECT ARROW */

.ops-panel select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}

/* OPTION STYLE */

.ops-panel select option {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  padding: 12px;
}

/* DATE ICON */

.ops-panel input[type="date"] {
  color: #fff;
  cursor: pointer;
}

.ops-panel input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* TITLE */

.ops-panel h3 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* BUTTONS */

.ops-panel button {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.25s ease;
}

.ops-panel button:first-of-type {
  background: linear-gradient(90deg, #2b6cff, #59a6ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(43, 108, 255, 0.28);
}

.ops-panel button:last-of-type {
  background: linear-gradient(90deg, #ff3d3d, #d91d1d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 61, 61, 0.28);
}

.ops-panel button:hover {
  transform: translateY(-2px) scale(1.01);
}

.ops-panel input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.ops-panel select option {
  color: #000;
}

.ops-panel button {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s;
}

.ops-panel button:first-of-type {
  background: linear-gradient(90deg, #2f6cff, #4e9bff);
  color: #fff;
}

.ops-panel button:last-of-type {
  background: linear-gradient(90deg, #ff4d4d, #d91f1f);
  color: #fff;
}

.ops-panel button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

/* MOBILE */

@media (max-width: 1300px) {
  .calendar-section {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   TOP CREATE BUTTON
========================== */

.top-create-btn {
  max-width: 1500px;
  margin: 20px auto;
  padding: 0 25px;
}

.top-create-btn button {
  padding: 16px 30px;
  font-size: 18px;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #8b5e1a, #d4a44c);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

/* ==========================
   MODAL
========================== */

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.event-popup {
  width: 900px;
  max-width: 95%;

  max-height: 90vh;
  overflow-y: auto;

  background: linear-gradient(90deg, #0b1736, #111c3d);

  border-radius: 20px;

  padding: 30px;

  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.popup-head h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.popup-head span {
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.event-popup input,
.event-popup select,
.event-popup textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 16px;
  border: none;
  border-radius: 14px;
  background: #17264f;
  color: #fff;
  font-size: 16px;
}

.event-popup textarea {
  height: 120px;
  resize: none;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.row2 input[type="color"] {
  height: 56px;
  padding: 5px;
}

.row2 button {
  height: 56px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
}

.event-card {
  cursor: pointer;
  transition: 0.25s;
}

.event-card.selected {
  border: 2px solid #a56b1f !important;
  box-shadow: 0 0 20px #a56b1f;
  transform: scale(1.02);
}

.top-create-btn {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.top-create-btn button {
  padding: 16px 26px;
  border: none;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #a56b1f, #d4a44c);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  transition: 0.25s;
}

.top-create-btn button:hover {
  transform: translateY(-3px);
}

.top-delete-btn {
  background: linear-gradient(90deg, #ff3b3b, #ff1111) !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.35) !important;
}

.action-bar {
  max-width: 1100px;
  margin: 25px auto 20px auto;
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  padding: 0 100px;
}

.create-main-btn,
.delete-main-btn,
.edit-main-btn {
  border: none;

  padding: 10px 18px;

  border-radius: 12px;

  font-size: 14px;

  font-weight: 800;

  cursor: pointer;

  color: #fff;

  min-width: auto;

  height: 46px;
}

@media (max-width: 1000px) {
  .calendar-section {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   FINAL LAYOUT FIX
=================================== */

/* TOP ACTION BUTTONS */
.action-bar {
  width: 100%;

  max-width: 650px;

  margin: 18px 0 12px 0;

  margin-left: -68px;

  display: flex;

  gap: 10px;

  align-items: center;

  flex-wrap: nowrap;
}

/* BUTTONS */
.create-main-btn,
.delete-main-btn,
.edit-main-btn {
  height: 46px;

  padding: 0 18px;

  border: none;

  border-radius: 12px;

  font-size: 14px;

  font-weight: 800;

  cursor: pointer;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  white-space: nowrap;

  min-width: auto;
}

.create-main-btn {
  background: linear-gradient(90deg, #a56b1f, #d4a44c);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.delete-main-btn {
  background: linear-gradient(90deg, #ff2d2d, #ff0000);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.28);
}

.create-main-btn:hover,
.delete-main-btn:hover {
  transform: translateY(-3px);
}

/* MAIN GRID */
.calendar-section {
  width: 100%;

  margin: 30px 0;

  padding-left: 0;

  margin-left: 20px;

  display: grid;

  grid-template-columns: 620px 1fr;

  gap: 20px;

  align-items: start;
}

/* LEFT BOX */
.calendar-box {
  height: 620px;
  min-height: 620px;
  width: 650px;
}

/* RIGHT BOX */
.event-box {
  width: 100%;

  height: 650px;

  overflow-y: auto;

  border-radius: 22px;

  padding: 13px;

  margin-left: 0;
}

/* SCROLLBAR */
.event-box::-webkit-scrollbar {
  width: 8px;
}

.event-box::-webkit-scrollbar-thumb {
  background: #a56b1f;
  border-radius: 20px;
}

/* GROUP TITLE */
.group-title {
  font-size: 24px;
  font-weight: 900;
  margin: 12px 0 14px;
  color: #fff;
}

/* EVENT ITEMS */
.event-box li {
  margin-bottom: 14px;
}

/* ===================================
   MOBILE
=================================== */

@media (max-width: 1100px) {
  .action-bar {
    width: 95%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .create-main-btn,
  .delete-main-btn {
    width: 100%;
    min-width: unset;
  }

  .calendar-section {
    width: 95%;
    grid-template-columns: 1fr;
  }

  .calendar-box,
  .event-box {
    height: auto;
    min-height: 650px;
  }
}

/* ADD CSS */

.right-group {
  margin-bottom: 18px;
}

.right-drop-btn {
  width: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #7a4f12, #a56b1f);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.right-drop-btn:hover {
  transform: translateY(-2px);
}

.drop-icon {
  font-size: 18px;
}

.right-drop-body {
  display: none;
  padding-top: 12px;
}

.right-drop-body.show {
  display: block;
}

.right-event-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.right-event-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.right-event-date {
  font-size: 15px;
  opacity: 0.85;
  color: #fff;
}

/* REPLACE ONLY DELETE MODAL CSS */

.delete-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.delete-box {
  width: 760px;
  max-width: 95%;
  max-height: 88vh;
  background: linear-gradient(180deg, #07142f, #081a42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.delete-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.delete-top h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
}

.delete-top button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.delete-top button:hover {
  background: #ef4444;
  transform: scale(1.06);
}

.delete-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delete-list::-webkit-scrollbar {
  width: 8px;
}

.delete-list::-webkit-scrollbar-thumb {
  background: #a56b1f;
  border-radius: 20px;
}

.delete-row {
  display: grid;
  grid-template-columns: 30px 1fr 120px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: 0.22s ease;
}

.delete-row:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.25);
}

.delete-row input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #a56b1f;
}

.delete-row span {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
}

.delete-row small {
  font-size: 15px;
  font-weight: 700;
  color: #a9c7ff;
  text-align: right;
}

.delete-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.delete-bottom button {
  border: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  min-width: 150px;
}

.delete-bottom button:first-child {
  background: #ffffff;
  color: #111827;
}

.delete-bottom button:first-child:hover {
  transform: translateY(-2px);
}

.danger-btn {
  background: linear-gradient(90deg, #ff3131, #ff0000);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 0, 0, 0.28);
}

.danger-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .delete-box {
    padding: 18px;
    border-radius: 18px;
  }

  .delete-top h2 {
    font-size: 26px;
  }

  .delete-row {
    grid-template-columns: 24px 1fr;
  }

  .delete-row small {
    grid-column: 2;
    text-align: left;
    margin-top: 6px;
  }

  .delete-bottom {
    flex-direction: column;
  }

  .delete-bottom button {
    width: 100%;
  }
}

.delete-search {
  width: 100%;
  height: 52px;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.delete-search::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.create-main-btn,
.delete-main-btn,
.edit-main-btn {
  height: 46px;

  padding: 0 18px;

  border: none;

  border-radius: 12px;

  font-size: 14px;

  font-weight: 800;

  cursor: pointer;

  color: #fff;

  display: flex;

  align-items: center;

  justify-content: center;

  white-space: nowrap;

  min-width: auto;
}

.edit-main-btn {
  background: linear-gradient(90deg, #10b981, #059669);
}

/* EDIT POPUP FIX */

#editEventList .delete-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  min-height: 72px;
}

#editEventList .delete-row span {
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

#editEventList .delete-row small {
  text-align: right;
  font-size: 18px;
  font-weight: 800;
  color: #bcd3ff;
  white-space: nowrap;
}

#editEventList {
  overflow-y: auto;
  max-height: 520px;
  padding-right: 8px;
}

/* =====================================
EVENT DETAILS POPUP V2 IMPROVEMENT
Replace old popup css with this
===================================== */

#viewEventModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 22px;
}

.event-popup {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #07184a, #08163f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 34px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(59, 130, 246, 0.15);
  color: #fff;
  animation: popupFade 0.25s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* HEADER */
.popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.popup-head h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.popup-head button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: #213765;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: 0.2s ease;
}

.popup-head button:hover {
  background: #ef4444;
  transform: scale(1.06);
}

/* BODY GRID */
#eventDetailsBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

/* EACH BOX */
#eventDetailsBody div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 18px 18px;
  font-size: 19px;
  line-height: 1.55;
  word-break: break-word;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* BIG DESCRIPTION FULL WIDTH */
#eventDetailsBody div:nth-child(7),
#eventDetailsBody div:nth-child(8) {
  grid-column: 1 / -1;
  min-height: auto;
}

/* LABEL */
#eventDetailsBody b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 900;
  color: #78b6ff;
}

/* COLOR BOX */
.color-chip {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* ACTIONS */
.popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.popup-actions button {
  border: none;
  padding: 15px 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  transition: 0.2s ease;
  min-width: 145px;
}

.popup-actions button:nth-child(1) {
  background: linear-gradient(90deg, #10b981, #22c55e);
}

.popup-actions button:nth-child(2) {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.popup-actions button:nth-child(3) {
  background: #334155;
}

.popup-actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* SCROLLBAR */
.event-popup::-webkit-scrollbar {
  width: 8px;
}

.event-popup::-webkit-scrollbar-thumb {
  background: #a56b1f;
  border-radius: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
  .event-popup {
    padding: 22px;
    max-width: 96%;
  }

  .popup-head h2 {
    font-size: 28px;
  }

  #eventDetailsBody {
    grid-template-columns: 1fr;
  }

  #eventDetailsBody div:nth-child(7),
  #eventDetailsBody div:nth-child(8) {
    grid-column: auto;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-actions button {
    width: 100%;
  }
}

#notifyInterval {
  height: 46px;

  padding: 0 12px;

  border: none;

  border-radius: 12px;

  font-size: 13px;

  font-weight: 700;

  min-width: 180px;
}

#dayTooltip {
  position: fixed;
  display: none;
  z-index: 9999;
  min-width: 260px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b1f4d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  line-height: 1.5;
}

.tooltip-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #7db5ff;
}

.tooltip-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tooltip-row:last-child {
  border-bottom: none;
}

/* LOGIN MODAL OVERLAY */
#loginModal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 99999;
}

/* LOGIN BOX */
#loginModal .event-popup {
  width: 460px;
  max-width: 92%;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(145deg, #081a55, #091642, #0a1f63);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(37, 99, 235, 0.18);
  animation: popupIn 0.25s ease;
}

/* HEADER */
#loginModal .popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

#loginModal .popup-head h2 {
  color: #fff;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 0;
}

#loginModal .popup-head span {
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
}

#loginModal .popup-head span:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* INPUTS */
#loginModal input {
  width: 100%;
  height: 58px;
  margin-bottom: 16px;
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s;
}

#loginModal input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#loginModal input:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 164, 76, 0.28);
}

/* BUTTON */
#loginModal button {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #8b5e1a, #d4a44c);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  transition: 0.22s;
}

#loginModal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.38);
}

#loginModal button:active {
  transform: translateY(0);
}

/* ANIMATION */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* PANEL */
#ticketPanel {
  background: linear-gradient(145deg, #0b132b, #1c2541);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(20, 30, 50, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* TITLE */
#ticketPanel h2 {
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* STATS */
.stats {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
}

.stats div {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.orange {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
}

/* TABLE CONTAINER */
.table-container {
  max-height: 500px;
  overflow: auto;
  border-radius: 10px;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

/* HEADER */
thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #7a4f12, #a56b1f, #d4a44c);
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px;
  z-index: 5;
}

/* CELLS */
td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

/* ROWS */
tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tr:hover {
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s;
}

/* TEXT WRAP */
td {
  max-width: 250px;
  white-space: normal;
  word-break: break-word;
}

/* Long free-text ticket cells (Problem, Detail of Issue, Remark, etc.)
   were wrapping into 10+ lines and making every row huge. Clamp to a
   few lines with an ellipsis; the full text is still available via the
   title tooltip on hover, and via double-click-to-copy on the row. */
.cell-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.6em;
  line-height: 1.5em;
  cursor: help;
}

/* TIMESTAMP FIX */
td:first-child {
  min-width: 180px;
  font-family: monospace;
  font-size: 12px;
  color: #9ca3af;
}

/* STATUS COLORS */
td:nth-child(8) {
  /* adjust index if needed */
  font-weight: bold;
}

td:nth-child(8):contains("resolved") {
  color: #22c55e;
}

td:nth-child(8):contains("open"),
td:nth-child(8):contains("pending") {
  color: #f97316;
}

/* SCROLLBAR */
.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #2e86de;
  border-radius: 10px;
}

.event-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.event-top-bar h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

#todayFilterBtn {
  border: none;
  background: linear-gradient(90deg, #8b5e1a, #a56b1f);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap;
}

#todayFilterBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

#todayFilterBtn.active {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

/* =========================================
   PREMIUM BLUE THEME
========================================= */

body {
  background: linear-gradient(135deg, #0f172a, #16213e, #1e3a5f);

  color: #e2e8f0;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, #1e3a8a, #8b5e1a);

  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

/* PANEL TITLE */
.panel-title {
  background: #1e293b;
  color: #93c5fd;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* MAIN PANELS */
.calendar-box,
.event-box,
.data-section,
#ticketPanel {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.92),
    rgba(30, 41, 59, 0.88)
  ) !important;

  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);

  color: white;
}

/* CALENDAR TITLE */
.calendar-header h2,
.event-box h3 {
  color: #dbeafe;
}

/* CALENDAR BUTTONS */
.calendar-header button {
  background: linear-gradient(135deg, #8b5e1a, #a56b1f);

  color: white;
}

/* DAYS */
.day-name {
  background: rgba(255, 255, 255, 0.05);
  color: #93c5fd;
}

.day {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.day:hover {
  background: #8b5e1a;
}

/* TODAY */
.today {
  background: linear-gradient(135deg, #a56b1f, #d4a44c);

  color: white;
}

/* EVENT CARDS */
.right-event-card,
.event-box li {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.06);

  color: white;
}

.right-event-title {
  color: #f8fafc;
}

.right-event-date {
  color: #cbd5e1;
}

/* DROPDOWN */
.right-drop-btn {
  background: linear-gradient(90deg, #c58a2b, #8b5e1a);

  color: white;
}

/* BUTTONS */
.btn {
  border-radius: 16px;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

/* TABLE */
table {
  background: #0f172a;
  color: white;
}

th {
  background: linear-gradient(90deg, #8b5e1a, #a56b1f);

  color: white;
}

td {
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover td {
  background: rgba(59, 130, 246, 0.08);
}

/* INPUTS */
input,
select,
textarea,
#notifyInterval {
  background: #1e293b !important;
  color: white !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* MODALS */
.event-popup,
.delete-box {
  background: linear-gradient(145deg, #0f172a, #1e293b);

  color: white;
}

/* REMOVE PURE WHITE */
.calendar-box,
.event-box {
  backdrop-filter: blur(10px);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #a56b1f;
  border-radius: 20px;
}

/* SHOOTING STAR ONLY */

body::after {
  content: "";
  position: fixed;
  top: 12%;
  left: -250px;
  width: 220px;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );

  transform: rotate(-18deg);

  pointer-events: none;
  z-index: 1;

  animation: redShoot 8s linear infinite;
}

/* ANIMATION */

@keyframes redShoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-18deg);

    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translateX(1800px) translateY(260px) rotate(-18deg);

    opacity: 0;
  }
}

* {
  text-shadow: none !important;
}

.btn,
.create-main-btn,
.delete-main-btn,
.edit-main-btn,
.right-drop-btn,
.calendar-header button {
  box-shadow: none !important;
}

.calendar-box,
.event-box,
.data-section {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* TABLE */
.table-container table {
  width: 100%;
  border-collapse: collapse;
}

/* HEADER */
.table-container th {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* BODY */
.table-container td {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ROW HOVER */
.table-container tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-container th,
.table-container td {
  border: 1px solid #8b5e1a;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
}

/* NUMBERS */
.number {
  position: absolute;
  color: #fff;
  font-size: 6px;
  font-weight: 700;
}

.number12 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.number3 {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.number6 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.number9 {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* HANDS */
.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: bottom;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 20px;
}

/* HOUR */
.hour {
  width: 4px;
  height: 28px;
  background: #fff;
}

/* MINUTE */
.minute {
  width: 3px;
  height: 42px;
  background: #dbeafe;
}

/* SECOND */
.second {
  width: 2px;
  height: 50px;
  background: red;
}

/* ===================================
   NEW WORK SECTION
=================================== */

.work-section {
  background: linear-gradient(145deg, rgba(18, 28, 48, 0.78));

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 24px;
  min-height: 620px;

  color: #fff;

  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-top: 30px;
  left: 500px;
}

.work-header {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.work-body {
  background: rgba(255, 255, 255, 0.04);

  border-radius: 16px;

  min-height: 520px;

  padding: 20px;
}

/* CALENDAR BELOW */

.calendar-box {
  width: 760px;

  margin: 30px auto;

  min-height: 620px;
}

/* WORK SECTION */

.work-section {
  height: 650px;

  background: linear-gradient(145deg, rgba(18, 28, 48, 0.78));

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 22px;

  padding: 20px;

  overflow: hidden;
}

.work-header {
  font-size: 22px;
  font-weight: 800;
  color: #fff;

  margin-bottom: 18px;
}

.work-body {
  height: 560px;

  background: rgba(255, 255, 255, 0.04);

  border-radius: 18px;

  padding: 16px;

  overflow: auto;

  color: #fff;
}

/* =========================
   SWIMLANE TABLE
========================= */

.work-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-box {
  background: linear-gradient(135deg, #8b5e1a, #d4a44c);

  color: #fff;

  padding: 10px 18px;

  border-radius: 14px;

  font-weight: 800;

  box-shadow: 0 10px 20px rgba(212, 164, 76, 0.25);
}

.swimlane-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.swimlane-table th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.swimlane-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.swimlane-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.delete-row-btn {
  background: #ef4444;
  border: none;
  color: #fff;

  width: 34px;
  height: 34px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 18px;
}

.add-row-btn {
  margin-top: 24px;

  border: none;

  background: linear-gradient(90deg, #8b5e1a, #a56b1f);

  color: #fff;

  padding: 12px 20px;

  border-radius: 14px;

  font-weight: 800;

  cursor: pointer;
}

.work-input {
  width: 100%;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  padding: 10px 12px;

  color: #fff;

  outline: none;

  font-size: 14px;
}

.work-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.status-cell {
  text-align: center;
}

.event-box,
.calendar-box,
.work-section,
#ticketPanel {
  background: linear-gradient(
    145deg,
    rgba(45, 30, 10, 0.95),
    rgba(28, 18, 6, 0.92)
  );

  border: 1px solid rgba(212, 164, 76, 0.18);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(212, 164, 76, 0.08);
}

.schedule-wrapper {
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  gap: 20px;

  margin-top: 20px;
}

.schedule-card {
  background: rgba(8, 15, 35, 0.95);

  border-radius: 24px;

  padding: 18px;

  border: 1px solid rgba(212, 164, 76, 0.15);
}

.schedule-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;
}

.schedule-header h3 {
  color: #f5d48a;

  font-size: 20px;

  font-weight: 800;
}

.schedule-header button {
  background: linear-gradient(135deg, #8b5e1a, #d4a44c);

  border: none;

  padding: 10px 16px;

  border-radius: 12px;

  font-weight: 700;

  color: #fff;

  cursor: pointer;
}

.task-row {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 12px;
}

.task-input {
  flex: 1;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  padding: 12px;

  color: #fff;

  outline: none;
}

.delete-task {
  width: 38px;
  height: 38px;

  border: none;

  border-radius: 12px;

  background: #ef4444;

  color: #fff;

  cursor: pointer;

  font-size: 18px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.schedule-box {
  background: #0f172a;
  padding: 20px;
  border-radius: 16px;
}

.schedule-box h3 {
  color: white;
  margin-bottom: 15px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.task-card input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card button {
  background: red;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.schedule-box button {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.event-filter-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.event-filter-buttons button {
  border: none;

  background: linear-gradient(135deg, #a56b1f, #d4a44c);

  color: #fff;

  padding: 10px 16px;

  border-radius: 14px;

  font-size: 14px;

  font-weight: 800;

  cursor: pointer;

  transition: 0.25s;
}

.event-filter-buttons button:hover {
  transform: translateY(-2px);
}

.renewal-btn {
  background: linear-gradient(135deg, #065f46, #10b981, #34d399);

  color: white;

  font-weight: 700;

  border: 2px solid #fbbf24;

  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);

  transition: 0.3s;
}

.renewal-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.5);
}

/* TOP BUTTONS */
.action-bar {
  width: 95%;
  max-width: 1400px;
  margin: 20px auto;

  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* EVENTS + CALENDAR */
.calendar-section {
  width: 95%;
  max-width: 1400px;
  margin: 20px auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* EVENT BOX */
.event-box {
  width: 100%;
  min-height: 550px;

  background: linear-gradient(135deg, #071633, #1a2744);

  border-radius: 22px;
  padding: 20px;
}

/* CALENDAR */
.calendar-box {
  width: 100%;
  min-height: 550px;

  background: linear-gradient(135deg, #071633, #1a2744);

  border-radius: 22px;
  padding: 20px;
}

/* MOBILE */
@media (max-width: 1000px) {
  .calendar-section {
    grid-template-columns: 1fr;
  }

  .action-bar {
    justify-content: center;
  }

  .event-box,
  .calendar-box {
    min-height: auto;
  }
}

.task-done {
  text-decoration: line-through;
  opacity: 0.6;
  color: #9ca3af;
}

.renewal-section {
  margin-top: 30px;

  background: linear-gradient(
    145deg,
    rgba(50, 25, 0, 0.95),
    rgba(25, 10, 0, 0.95)
  );

  border-radius: 20px;
  padding: 20px;

  border: 1px solid rgba(255, 180, 60, 0.2);
}

.renewal-header {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.renewal-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.renewal-mini-table th {
  background: #102b5a;
  color: white;
  padding: 12px;
}

.renewal-mini-table td {
  padding: 12px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-renew {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.status-renewed {
  background: #16a34a;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==================================
   MOBILE RESPONSIVE FIX
================================== */

@media screen and (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* HEADER */

  .header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .header-text h1 {
    margin-right: 0 !important;
    font-size: 30px;
    line-height: 1.2;
  }

  .header-text p {
    margin-right: 0 !important;
    font-size: 16px;
  }

  /* BUTTON GRID */

  .grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .bottom-center {
    width: 100%;
    grid-column: auto;
  }

  /* ACTION BAR */

  .action-bar {
    width: 100%;
    margin: 15px 0 !important;
    padding: 10px !important;
    flex-direction: column;
    align-items: stretch;
  }

  .create-main-btn,
  .delete-main-btn,
  .edit-main-btn,
  #notifyInterval {
    width: 100%;
  }

  /* CALENDAR SECTION */

  .calendar-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    gap: 15px;
  }

  .calendar-box,
  .event-box,
  .ops-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .calendar-box {
    height: auto !important;
    min-height: auto !important;
  }

  .event-box {
    height: auto !important;
  }

  /* CALENDAR */

  .calendar-grid {
    gap: 4px;
  }

  .day,
  .day-name {
    font-size: 12px;
    padding: 8px 2px;
  }

  /* TABLES */

  .table-container,
  .renewal-body {
    overflow-x: auto;
    width: 100%;
  }

  table {
    min-width: 800px;
  }

  /* SEARCH */

  #ticketSearch {
    width: 100% !important;
  }

  /* POPUPS */

  .row2 {
    grid-template-columns: 1fr;
  }

  .event-popup {
    width: 95%;
    padding: 15px;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-actions button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #ticketPanel {
    margin-bottom: 10px !important;
  }

  .work-section {
    height: auto !important;
    min-height: auto !important;
    margin-top: 10px !important;
    padding-top: 15px !important;
  }

  .work-body {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .schedule-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .schedule-box {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .table-container {
    min-height: 75vh !important;
    max-height: 75vh !important;
  }

  .work-section {
    min-height: 75vh !important;
  }

  .renewal-body {
    min-height: 75vh !important;
  }
}

@media (max-width: 768px) {
  .calendar-stars {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #ticketPanel {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .work-section {
    margin-top: 100px !important;
    padding-top: 10px !important;
  }
}

.work-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#scheduleSearch {
  width: 300px;
  max-width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  border: 1px solid #2563eb;
  font-size: 14px;
}

#scheduleSearch:focus {
  outline: none;
  border-color: #f59e0b;
}

.task-card {
  display: block;
  margin-bottom: 15px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-time {
  color: #b8c0d9;
  font-size: 11px;
  margin-bottom: 6px;
}

.schedule-title {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;
}

.copy-btn {
  background: linear-gradient(135deg, #d4a44c, #a56b1f);

  color: white;

  border: none;

  padding: 8px 14px;

  border-radius: 10px;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.copy-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.copy-btn:active {
  transform: scale(0.96);
}

/* ORDER: stats + filter bar */
.order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.order-stat {
  text-align: center;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-stat b {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

.order-stat.stat-execute {
  border-color: #16a34a;
  color: #4ade80;
}

.order-stat.stat-pending {
  border-color: #f59e0b;
  color: #fbbf24;
}

.order-stat.stat-reject {
  border-color: #dc2626;
  color: #f87171;
}

.order-filter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 15px;
}

.order-filter-btn {
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-filter-btn:hover {
  background: #273449;
}

.order-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

/* ORDER: task card status accent */
.order-card {
  border-left: 4px solid #64748b;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.order-card.status-execute {
  border-left-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.order-card.status-pending {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.order-card.status-reject {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

/* ORDER: Execute / Pending / Reject buttons */
.order-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.order-card .order-btn {
  padding: 6px 4px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  opacity: 0.45;
  transition: 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card .order-btn:hover {
  opacity: 0.75;
}

.order-card .order-btn.execute {
  background: #16a34a;
}

.order-card .order-btn.pending {
  background: #f59e0b;
}

.order-card .order-btn.reject {
  background: #dc2626;
}

.order-card .order-btn.active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
  .order-card .order-btn,
  .order-filter-btn {
    font-size: 10px;
    padding: 6px 2px;
  }

  .order-stat {
    font-size: 10px;
    padding: 5px 2px;
  }

  .order-stat b {
    font-size: 12px;
  }
}