* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f7f9fc;
}
h2 {
  font-size :22px;
}
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}


.auth-card {
    background: #ffffff;
    padding: 36px;
    width: 360px;
    /* border-radius: 16px; */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #111827;
}



input:focus {
    border-color: #2563eb;
    outline: none;
}

.msg {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.success {
    color: #16a34a;
}

.error {
    color: #dc2626;
}

.link-btn {
    background: none;
    border: none;
    color: #2563eb;
    margin-top: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0;
}

.link-btn:hover {
    background: none;
    text-decoration: underline;
}

/* ========================
   LEFT NAV
======================== */
.left-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #ffffff; /* professional dark slate */
    color: #ecf0f1; /* light text */
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 100;
    font-family: 'Segoe UI', sans-serif;
}

.left-nav .logo h1 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
    color: #1abc9c; /* teal accent */
}

.left-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.left-nav .menu li {
    margin: 10px 0;
}

.left-nav .menu li a {
    color: #9ba2a4;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-radius: 6px;
    transition: 0.3s;
}

.left-nav .menu li a:hover,
.left-nav .menu li a.active {
    background-color: #1abc9c; /* teal highlight */
    color: #fff;
}

/* ========================
   TOP NAV
======================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 99;
    font-family: 'Segoe UI', sans-serif;
}

.top-nav .top-left .page-title {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
}

.top-nav .top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-nav .icon-btn img {
    width: 24px;
    height: 24px;
    filter: invert(34%) sepia(10%) saturate(0%) hue-rotate(170deg) brightness(90%) contrast(85%);
    transition: 0.3s;
}

.top-nav .icon-btn:hover img {
    filter: invert(45%) sepia(22%) saturate(400%) hue-rotate(160deg) brightness(95%) contrast(90%);
}

.top-nav .profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1abc9c; /* accent border */
}

.top-nav .logout-btn {
    text-decoration: none;
    color: #fff;
    background-color: #e74c3c; /* professional red */
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.top-nav .logout-btn:hover {
    background-color: #c0392b;
}
.top-nav .icon-btn{
    color: #0f2027;
}
/* ========================
   CONTENT AREA
======================== */
.main-content {
    margin-left: 250px;
    /* padding-top: 70px; height of top-nav + spacing */
    padding-left: 25px;
    padding-right: 25px;
    background-color: #ecf0f1;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

/* ===========================
   PROFILE PAGE
=========================== */
.profile-container {
    width: 100%;
    max-width: 100%;
    /* background: #ffffff; */
    border-radius: 12px;
    padding: 30px;
    /* box-shadow: 0 10px 30px rgba(0,0,0,.05); */
}

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

.profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* PROFILE PIC */
.profile-pic-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: default;
}

.profile-pic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity .25s ease;
}

.profile-container.edit-mode .profile-pic-wrapper:hover .profile-pic-overlay {
    opacity: 1;
    cursor: pointer;
}

/* USER INFO */
.user-info h2 {
    margin: 0;
    font-size: 22px;
}

.user-info p {
    margin-top: 6px;
    color: #6b7280;
}

/* EDIT BUTTON */
.profile-header .edit-btn {
    color: #2563eb;
    border: none;
    padding: 10px 18px;
    /* border-radius: 8px; */
    /* font-weight: 600; */
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-header .edit-btn:hover {
    text-decoration: underline;
}

/* HIDE EDIT BUTTON IN EDIT MODE */
.profile-container.edit-mode .edit-btn {
    display: none;
}

/* FORM GRID */
.profile-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* FIELD */
.profile-content .field {
    display: flex;
    flex-direction: column;
}

.profile-content .field label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.profile-content .view-text {
    padding: 10px 0;
    font-size: 15px;
}

/* INPUTS */
.profile-content input[type="text"],
.profile-content input[type="file"] {
    padding: 10px 12px;
    /* border-radius: 8px; */
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* ===========================
   EDIT MODE LOGIC
=========================== */

/* Hide all edit-only elements by default */
.profile-container .edit-only {
    display: none;
}

/* When in edit mode, show edit-only elements and hide view-text */
.profile-container.edit-mode .edit-only {
    display: block;
}

.profile-container.edit-mode .view-text {
    display: none;
}

/* ACTIONS */
.profile-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.profile-actions .save-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 0;
    max-width: 200px;
}

.profile-actions .cancel-btn {
    background: #95989e;
    border: none;
    padding: 10px 18px;
    border-radius: 0;
    max-width: 200px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ===========================
   booking PAGE
=========================== */
.booking-methods, .rooms-container, .user-type-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}



.booking-card:hover, .room-card:hover, .user-type-card:hover {
    transform: translateY(-5px);
    /* background: #1d4ed8; */
}

.calendar-container, .time-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

#all-day {
    margin-left: 10px;
}
/* =============================
   BOOK MEETING – STEPPER UI
============================= */

.booking-step {
    display: none;
    animation: fadeSlide .35s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step header with arrows */
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.step-title {
    font-size: 18px;
    font-weight: 400;
    color: #111827;
}

.step-nav {
    display: flex;
    gap: 10px;
}

.step-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    cursor: pointer;
    font-size: 18px;
    transition: .2s;
}

.step-btn.active {
    background: #2563eb;
    color: #fff;
}

.step-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.booking-card p,
.room-card p {
    opacity: .85;
    margin-top: 10px;
    font-size: 14px;
}

.booking-card:hover,
.room-card:hover,
.user-type-card:hover {
    transform: translateY(-8px);
}

/* Selected state */
.card-selected {
    outline: 4px solid #93c5fd;
    transform: translateY(-8px) scale(1.02);
}

/* Containers */
.booking-methods,
.rooms-container,
.user-type-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Calendar & time */
.calendar-container,
.time-container {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hide checkbox row nicely */
.all-day-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 70%;
  }
  
  .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
  .card .container {
    padding: 2px 16px;
  }

  .booking-methods, .rooms-container, .user-type-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; justify-items: center; /* ← THIS centers the cards */ }

  .last-card {
    padding: 50px;
    text-align: center;
  }

  /* ==========================
   BOOK MEETING – MODERN UI
========================== */

.date-time-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Calendar Card */
.calendar-card,
.time-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.calendar-card h3,
.time-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #111827;
}

.calendar-card input[type="date"] {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

/* Highlight today */
.calendar-card input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Time */
/* .time-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
} */

.all-day-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Buttons */
.primary-btn {
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* STEP 3 extras */
.user-extra {
    display: none;
    margin-top: 20px;
    max-width: 400px;
}

.user-extra label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.user-extra select,
.user-extra input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.guest-tag {
    display: inline-block;
    margin-top: 6px;
    background: #fde68a;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .date-time-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   VISIBLE CALENDAR – BOOKING
================================ */

.calendar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

.calendar-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-weekdays span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding-bottom: 8px;
}

.calendar-days span {
    padding: 12px 0;
    margin: 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-days span:hover {
    background: #e0e7ff;
    color: black;
}

.calendar-days .today {
    background: #eef2ff;
    box-shadow: inset 0 0 0 2px #6366f1;
}

.calendar-days .selected {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
}

.calendar-days .disabled {
    color: #cbd5e1;
    pointer-events: none;
}

/* Layout */
.date-time-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Time Card */
.time-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .date-time-wrapper {
        grid-template-columns: 1fr;
    }
}

.calendar-header button{
    width: auto;
    background: #2563eb;
}

.time-row.time-range {
    display: flex;
    gap: 16px; /* space between From and To */
    align-items: flex-end; /* align labels with inputs nicely */
}

.time-row.time-range .time-field {
    display: flex;
    flex-direction: column;
    flex: 1; /* make both fields take equal width */
}

/* Dashboard */

.main {
  flex: 1;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.header button {
  padding: 8px 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.header button:hover {
  background: #1d4ed8;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.stats .card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
}

/* Content */
.content-row {
  display: flex;
  gap: 20px;
}

.table-card {
  flex: 2;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.activity {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
}
.activity ul {
    list-style: none;
    padding-left: 10px;
}
.activity ul li {
    padding: 10px 0;
}
/* Bottom */
.bottom-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.box {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

/* Badges */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.green { background: #dcfce7; color: #166534; }
.yellow { background: #fef9c3; color: #854d0e; }

/* Text Colors */
.green-text { color: green; }
.red-text { color: red; }
.yellow-text { color: orange; }

/* Calendar */
.calendar {
    text-align: center;
  }
  
  .calendar-header {
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }
  
  .day-name {
    font-size: 12px;
    font-weight: bold;
    color: #6b7280;
  }
  
  .day {
    padding: 8px;
    border-radius: 6px;
    background: #f3f4f6;
    font-size: 14px;
  }
  
  .day:hover {
    background: #e5e7eb;
    cursor: pointer;
  }
  
  .today {
    background: #2563eb;
    color: black;
    font-weight: bold;
  }
  .agenda-item.today{
    background: none;
  }
  .calendar-box .today {
    color: white;
  }

  /* Room Cards */
.box .room-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 8px;
    transition: 0.2s;
  }
  
  .box .room-card:hover {
    background: #f3f4f6;
  }
  
  .box .room-info h4 {
    margin: 0;
    font-size: 15px;
  }
  
  .time-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
  }
  
  /* Badges (extend your existing ones) */
  .badge.red {
    background: #fee2e2;
    color: #991b1b;
  }
  
  .badge.green {
    background: #dcfce7;
    color: #166534;
  }
  /* Expand button */
.calendar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  #expandCalendar {
    background: #fff;
    color: rgb(99, 96, 96);
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    width :auto;
  }
  .table-div{
    overflow: auto;
  }
  
  /* --- Modal Backdrop --- */
/* --- Modal Backdrop --- */
#calendarModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #calendarModal.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* --- Main Calendar Container --- */
  .calendar-full {
    background: #ffffff;
    width: 95%;
    max-width: 1400px;
    height: 90vh; 
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.98);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  #calendarModal.show .calendar-full {
    transform: scale(1);
  }
  
  /* --- Header Section --- */
  .calendar-full-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
  }
  
  .calendar-nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .calendar-nav button {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
  }
  
  #calendarTitle {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    text-align: center;
    min-width: 200px;
  }
  
  .calendar-controls {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
  }
  
  #closeCalendar {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
  }
  
  /* --- The Grid Body --- */
  #calendarContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow the details view to scroll */
    background: #f8fafc; /* Lighter background for the content area */
  }
  
  .calendar-full-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, minmax(0, 1fr));  
    gap: 1px;
    height: 100%;
    background: #e2e8f0; /* Grid line color */
  }
  
  /* Day Names Row */
  .day-name {
    background: #f8fafc;
    padding: 10px 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  /* --- Individual Day Cell --- */
  .calendar-day {
    background: white;
    padding: 5px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
  }
  
  .date-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
    flex-shrink: 0; 
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding-bottom: 2px;
  }
  
  /* --- Events Styling (Inside Grid) --- */
  .event {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
  }
  
  /* --- NEW: MODERN EVENT DETAILS VIEW --- */
  
  /* Details Header */
  #calendarContent h3 {
    padding: 24px 24px 8px 24px;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 800;
  }
  
  /* Back Button */
  #calendarContent button[onclick="loadCalendar()"] {
    margin: 0 24px 20px 24px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s;
  }
  
  #calendarContent button[onclick="loadCalendar()"]:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
  }
  
  /* Detail Card */
  .event-detail {
    background: white;
    margin: 0 24px 12px 24px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 600px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .event-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
  }
  
  /* Color strip on card */
  .event-detail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background: #3b82f6;
    border-radius: 0 4px 4px 0;
  }
  
  /* Room Name (Strong) */
  .event-detail strong {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
  }
  
  /* Styling the Text lines (Time and Name) */
  .event-detail {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
  }
  
  /* Scrollbars */
  .calendar-day::-webkit-scrollbar,
  #calendarContent::-webkit-scrollbar {
    width: 6px;
  }
  .calendar-day::-webkit-scrollbar-thumb,
  #calendarContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }

  /* --- Success/Error Toast Notifications --- */
.booking-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out forwards;
}

.booking-msg.success { background: #10b981; border-left: 5px solid #059669; }
.booking-msg.error { background: #ef4444; border-left: 5px solid #dc2626; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Attractive Time Selection --- */
.time-range {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.time-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
}

.time-field input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.2s;
    background: white;
}

.time-field input[type="time"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* All Day Checkbox Styling */
.all-day-row {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
}

.noti-dropdown {
    position: absolute;
    top: 25px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.noti-dropdown.show { display: flex; }

.noti-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noti-header span { font-weight: 700; font-size: 0.9rem; color: #1e293b; }

.clear-all-btn {
    background: none !important;
    border: none;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.clear-all-btn:hover { text-decoration: underline; }

.noti-body { max-height: 300px; overflow-y: auto; }

.noti-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #475569;
    transition: background 0.2s;
}

.noti-item:hover { background: #f8fafc; }

.noti-item.urgent { border-left: 4px solid #ef4444; }

.empty-msg { padding: 20px; text-align: center; color: #94a3b8; font-size: 0.85rem; }

/* Add this to your style.css */
.noti-item.request { border-left: 4px solid #3b82f6; } /* Blue for Invites */
.noti-item.starting_soon { border-left: 4px solid #f59e0b; background: #fffbeb; } /* Amber for Warning */
.noti-item.urgent { border-left: 4px solid #ef4444; background: #fef2f2; } /* Red for Immediate */

.noti-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 600;
    display: block;
}

.noti-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.noti-item:last-child {
    border-bottom: none;
}

/* Mobile */

@media (max-width: 768px) {
    .left-nav {
        transform: translateX(-100%); /* Slide it off-screen to the left */
        width: 240px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    }

    /* When the "active" class is added via JS, it slides back in */
    .left-nav.active {
        transform: translateX(0);
    }

    /* Adjust main content to take full width on mobile */
    .main-content {
        margin-left: 0 !important;
        /* padding: 20px; */
    }
    .top-nav {
        left: 0;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .bottom-row, .content-row {
        display: block;
    }
    .bottom-row .box, .content-row .activity {
        margin-top: 20px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 50px;
    color: #000;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}