/* 🌈 Base Setup */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #7c4dff, #4527a0, #1a237e);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* 🔹 Header */
.header {
  text-align: center;
  background: linear-gradient(90deg, #1de9b6, #00bfa5);
  width: 100%;
  padding: 18px 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}



/* 🔸 Floating Date Bar */
.date-bar {
  width: 100%;
  background: linear-gradient(90deg, #ff9800, #e91e63);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 10;
}

.date-content {
  display: inline-block;
  padding-left: 100%;
  animation: scrollDate 18s linear infinite;
}

@keyframes scrollDate {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* 🔹 Main Container */
.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 95%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 20px;
}

/* 🗓️ Calendar Section */
.calendar-container,
.slots-section {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  flex: 1;
  min-width: 0;
}


.calendar-container:hover {
  transform: scale(1.02);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}


.month-picker {
  display: flex;
  gap: 12px;
}

.month-picker select {
  padding: 10px 18px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  background: white;
  cursor: pointer;
}

.calendar-header button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #7e57c2;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.calendar-header button:hover {
  background: #5e35b1;
  transform: scale(1.08);
}

.calendar-header h2 {
  color: #333;
  font-weight: 700;
  margin: 0;
  font-size: 22px;
}

/* 🗓️ Calendar Grid */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.calendar div {
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 17px;
}

.calendar div:hover {
  background-color: #d1c4e9;
}

.calendar .header-day {
  font-weight: bold;
  color: #fff;
  background-color: #3f51b5;
  border-radius: 8px;
  cursor: default;
}

/* Aaj ki date */
.calendar .today {
  background: #ffe9a8;
  color: #333;
  border: 2px solid #f4c542;
  border-radius: 14px;
  font-weight: 700;
}

/* User ne jo date select ki */
.selected-day {
  background: #e8ddff;
  color: #5b21b6;
  border: 2px solid #8b5cf6;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: none;
}

.calendar .today.selected-day {
  background: #d6c5ff;
  color: #4c1d95;
  border: 2px solid #7c3aed;
}


/* 🕓 Slots Section */

.slots-section {
  width: 550px;
  min-height: 620px;
}

.slots-section:hover {
  transform: scale(1.02);
}

/* Slots Container */
.slots-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

/* 🎯 Individual Slot Layout */
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-radius: 14px;
  padding: 12px 18px;
  width: 90%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slot-left {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.slot-label {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.slot-time {
  font-size: 14px;
  color: #666;
}

.slot-result {
  color: #0b7a18;
  font-weight: 700;
  font-size: 22px;



  letter-spacing: 1px;
  background: #e8ffe8;
  padding: 6px 14px;
  border-radius: 10px;
  min-width: 110px;
  text-align: center;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

/* 🔐 Admin Panel */
#admin-panel {
  display: none;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  width: 380px;
  max-width: 95%;
}

#admin-panel input,
#admin-panel button {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}

#admin-panel button {
  background: #00c853;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#admin-panel button:hover {
  background: #009624;
}


.notice-box {
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  padding: 10px 0;
  text-align: center;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  animation: tickerMove 15s linear infinite;
}

@keyframes tickerMove {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}


/* ⚫ Footer */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: white;
  background: #000;
  width: 100%;
  margin-top: 40px;
  letter-spacing: 0.5px;
}

/* 📱 Responsive Design */
@media (max-width: 1000px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }

  .calendar-container,
  .slots-section {
    width: 100%;
    max-width: 600px;
    transform: scale(1);
    min-height: auto;
  }

  .slot {
    width: 100%;
  }

  .slot-result {
    min-width: 90px;
    font-size: 14px;
  }

  .date-bar {
    font-size: 16px;
  }
}

@keyframes pop {

  0% {

    transform: scale(.7);

  }

  100% {

    transform: scale(1);

  }

}

::-webkit-scrollbar {

  width: 8px;

}

::-webkit-scrollbar-thumb {

  background: #673ab7;

  border-radius: 10px;

}


#admin-panel {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 280px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, .2);
  z-index: 9999;
}

#admin-panel input,
#admin-panel button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
}

#save-result {
  cursor: pointer;
}

#monthSelect,
#yearSelect {
  padding: 8px;
  border-radius: 8px;
  font-size: 16px;
  margin: 0 5px;
}

/* ---------- ADMIN PAGE ---------- */

.admin-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg,
      #0f172a,
      #1e293b,
      #334155);

  font-family: Arial, sans-serif;
}

.admin-card {
  width: 380px;
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-card h1 {
  margin: 0;
  text-align: center;
  color: #0f172a;
}

.admin-card p {
  text-align: center;
  color: #666;
  margin-top: -5px;
  margin-bottom: 15px;
}

.admin-card input,
.admin-card select,
.admin-card button {
  width: 100%;
  height: 55px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 16px;
}

.admin-card input,
.admin-card select {
  padding: 0 15px;
  border: 2px solid #ddd;
  outline: none;
  transition: 0.3s;
}

.admin-card input:focus,
.admin-card select:focus {
  border-color: #2563eb;
}

.admin-card input:focus {
  border-color: #2563eb;
}

.admin-card button {
  padding: 14px;
  border: none;
  border-radius: 12px;

  background: #2563eb;
  color: white;

  font-size: 16px;
  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

.admin-card button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}


.login-box {
  width: 380px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding: 14px;
  padding-right: 45px;
  border: 2px solid #ddd;
  border-radius: 12px;
  box-sizing: border-box;
}

#toggle-pass {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
}


/* ================= MOBILE RESPONSIVE ================= */

@media (max-width:768px){

  .main-container{
    flex-direction: column;
    padding: 10px;
    margin: 20px auto;
  }

  .calendar-container,
  .slots-section{
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .month-picker{
    flex-direction: column;
  }

  .month-picker select{
    width: 100%;
  }

  .slot{
    width: 100%;
  }
}

@media (max-width:480px){

  .header h1{
    font-size: 20px;
  }

  .header p{
    font-size: 13px;
  }

  .calendar{
    gap: 6px;
  }

  .calendar div{
    height: 38px;
    font-size: 14px;
  }

  .slot{
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .slot-left{
    text-align: center;
  }

  .slot-result{
    width: 100%;
    min-width: unset;
  }

  .ticker{
    font-size: 12px;
  }
}