:root { 
  --green: #1b5e20;
  --green-dark: #0d3b12;
  --yellow: #fdd835;
  --gray: #f5f5f5;
  --white: #ffffff;
  --text-dark: #2e2e2e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .modal-box {
    width: 100%;
    max-width: 100%;
  }
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--gray);
  color: var(--text-dark);
  line-height: 1.7;
  
}

/* HIDE SCROLLBAR BUT KEEP PAGE SCROLLING */
html, body {
    overflow-y: scroll;      /* allow scrolling */
    scrollbar-width: none;   
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5); 
  display: none;
  justify-content: center;
  align-items: center;

  pointer-events: auto; /* blocks clicks */
}

.modal.active {
  display: flex;
}

/* prevent clicking outside modal content */
.modal-content {
  pointer-events: auto;
}

 /* NAVBAR */
.navbar{
  position: static;
  width:100%;
  background:var(--green);
  padding:16px 50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,0.25);
}

.navbar .logo{
  display:flex;
  align-items:center;
  font-size:22px;
  font-family: "Sigmar One", cursive;
  color:var(--yellow);
  text-transform:uppercase;
  letter-spacing:1px;
  gap:10px;
}
.navbar .logo img{
  height:40px;
  width:auto;
  display:block;
}

.navbar nav{display:flex;gap:28px}
.navbar nav a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
  padding:6px 0;
  position:relative;
  transition:color .3s;
}
.navbar nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:var(--yellow);
  transition:width .3s;
}
.navbar nav a:hover::after,
.navbar nav a.active::after{width:100%}

/* CONTENT */
.content{padding-top:0px}
section{min-height:100vh;padding:70px 8%}
section:nth-child(even){background:var(--white)}


/* HOME */
#home{
  background:linear-gradient(rgba(27,94,32,0.8),rgba(13,59,18,0.9)),
  url('classroom.jpg') 
  center/cover no-repeat;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}
#home h1{font-size:42px;margin-bottom:20px;font-weight:700}
#home p{font-size:18px;margin-bottom:30px;max-width:700px;margin-left:auto;margin-right:auto}
.cta-buttons{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}
.cta-buttons a{
  text-decoration:none;
  background:var(--yellow);
  color:var(--green-dark);
  padding:14px 28px;
  border-radius:30px;
  font-weight:bold;
  transition:background .3s,transform .2s;
}
.cta-buttons a:hover{background:#ffeb3b;transform:translateY(-3px)}

/* CARD (BUONG CARD) */
  .card{
    background:var(--white);
    padding:28px;
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    margin-top:20px;
    transition:transform .25s ease,box-shadow .25s ease;
  }
  .card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.12)}

/* FEATURES GRID (What You Can Do) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 24px; 
  margin-top: 30px;
}

/* FEATURE CARD  */
.feature-card {
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  padding: 24px;
  border-radius: 10px; 
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}

/* Accent bar */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--green-dark), var(--yellow));
}

/* Hover effect */
.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  border: 1px solid var(--green-dark);
  background: linear-gradient(135deg, #fdfdfd, #f1f8e9);
}

/* Icon styling */
.feature-card .icon {
  font-size: 36px; 
  color: var(--green-dark);
  margin-bottom: 12px;
  display: inline-block;
  transition: transform .3s ease, color .3s ease;
}
.feature-card:hover .icon {
  transform: rotate(6deg) scale(1.08);
  color: var(--yellow);
}

/* Typography */
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px; 
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  letter-spacing: 0.6px;
  transition: color .3s ease;
}
.feature-card:hover h3 {
  color: var(--green);
}

.feature-card p {
  margin: 0;
  font-size: 14px; 
  line-height: 1.5;
  color: #444;
  transition: color .3s ease;
}
.feature-card:hover p {
  color: #2e2e2e;
}

/* FORM */
form input,form select,form button{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:15px;
  transition:border .2s,box-shadow .2s;
}
form input:focus,form select:focus{
  border-color:var(--green);
  outline:none;
  box-shadow:0 0 6px rgba(27,94,32,0.3);
}
form button{
  background:var(--green);
  color:white;
  border:none;
  cursor:pointer;
  font-weight:bold;
  border-radius:8px;
  transition:background .3s,transform .2s;
}
form button:hover{background:var(--green-dark);transform:translateY(-1px)}


/* Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(2px);
}
.modal.hidden { display: none; }

/* Modal Box */
.modal-content {
  background: #fff;
  padding: 28px 32px;
  border-radius: 12px;
  width: 420px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: fadeInScale 0.25s ease-out;
}

/* Title */
.modal-title {
  color: #dc3545;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Message text */
.modal-content p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Buttons */
.modal-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-width: 100px;
}
.modal-btn.keep { background: #f1f1f1; color: #333; }
.modal-btn.keep:hover { background: #e0e0e0; }
.modal-btn.confirm { background: #dc3545; color: #fff; }
.modal-btn.confirm:hover { background: #c82333; transform: translateY(-2px); }

/* Animation */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* Table Controls */
.table-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.table-controls input, .table-controls select {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.table-wrapper {
  max-height: 400px;
  overflow-y: auto;         /* vertical scroll kapag madami rows */
  overflow-x: auto;         /* horizontal scroll */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

/* Show and style scrollbar */
.table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox scrollbar */
.table-wrapper {
  scrollbar-color: #cbd5e1 #f1f5f9;
  scrollbar-width: thin;
}

/* Table Styling */
table {
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-width: 1400px;        /* force horizontal scroll */
}

table th, table td {
  padding: 14px;
  border: 1px solid #e0e0e0;
  text-align: center;
  vertical-align: middle;
}

table th {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

table tr:nth-child(even) { background: #fafafa; }
table tr:hover { background: #f1f8e9; }

/* Column widths para hanggang LOCATION lang kasya sa screen */
table th:nth-child(1), table td:nth-child(1) { min-width: 80px; }   /* ID */
table th:nth-child(2), table td:nth-child(2) { min-width: 150px; }  /* ROOM TYPE */
table th:nth-child(3), table td:nth-child(3) { min-width: 180px; }  /* ROOM NAME */
table th:nth-child(4), table td:nth-child(4) { min-width: 200px; }  /* LOCATION */

/* The rest will overflow → scroll to see */
table th:nth-child(n+5), table td:nth-child(n+5) { min-width: 180px; }



/* General Button Styling */
button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Approve Button */
button.approve-btn {
  background: #28a745;       
  color: #fff;
  border: 1px solid #1e7e34;
}
button.approve-btn:hover {
  background: #218838;       
  transform: scale(1.05);
}

/* Reject Button */
button.reject-btn {
  background: #dc3545;       
  color: #fff;
  border: 1px solid #bd2130;
}
button.reject-btn:hover {
  background: #c82333;       
  transform: scale(1.05);
}

.cancel-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cancel-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}
.cancel-btn:disabled {
  background: #e0e0e0;
  color: #777;
  cursor: not-allowed;
  border: 1px solid #ccc;
}

/* STATUS BADGES */
.badge {
  display: inline-block;
  min-width: 90px;       
  text-align: center;    
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

/* Specific colors per status */
.badge.pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.badge.approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge.rejected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* MODAL OVERLAY */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;      /* MOBILE SAFE */
  z-index: 9999;
}


/* MODAL BOX */
.modal-box {
  background: #fff;
  width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: modalPop 0.25s ease-out;
}

/* HEADER */
.modal-header {
  background: var(--green);
  padding: 20px;
  text-align: center;
}
.modal-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: white;
}

/* BODY */
.modal-body {
  padding: 25px;
  text-align: center;
}
.modal-body p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #333;
}

/* BUTTONS CONTAINER */
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

/* SHARED BUTTON STYLES */
.modal-buttons button {
  width: 140px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 30px; 
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.2s;
}

/* CANCEL BUTTON */
.modal-cancel-btn {
  background: #e0e0e0;
  color: #333;
}
.modal-cancel-btn:hover {
  background: #d5d5d5;
  transform: scale(1.03);
}

/* LOGOUT BUTTON */
.logout-btn {
  background: #0b632d;
  color: white;
}
.logout-btn:hover {
  background: #094f24;
  transform: scale(1.03);
}

/* POP ANIMATION */
@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* AVAILABILITY UI */
.room-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 10px;
}

.room-card {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures content is spaced out */
  height: 100%;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  height: 180px;
  object-fit: cover;
}

.room-card h3 {
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 8px;
}

.room-meta {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.status-badge {
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  display: inline-block;
}

.available {
  background: #43a047;
}

.booked {
  background: #e53935;
}

.room-card-footer {
  margin-top: auto; /* Pushes the footer to the bottom */
  display: flex;
  justify-content: space-between;
  width: 100%;
}

section > h2 {
  font-size: 34px;
  color: var(--green-dark);
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
}


/* PROFILE*/
#profile {
  min-height: auto !important;
  padding: 40px 8% !important;
}

#profile .card {
  margin-top: 20px !important;
}

/* RESPONSIVE */
@media (max-width:720px){
  .navbar { padding: 12px 18px; }
  section { padding: 40px 6%; }
}

.card h2,
.card h3,
.room-card h3 {
  text-align: left;
}

/* FOOTER */
.footer {
  background: #1B5E20;
  color: white;
  text-align: center;
  padding: 50px 20px;
  margin-top: 60px;
}

.footer-logo img {
  width: 110px;
  opacity: 0.95;
}

.footer-logo h2 {
  margin-top: 10px;
  font-size: 32px;
  color: #054364;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: "Sigmar One", cursive;
}

.footer-desc {
  margin: 25px auto;
  max-width: 900px;
  font-size: 20px;
  line-height: 1.6;
}

.footer-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #FFD700;
}

.footer-line {
  margin: 40px auto;
  width: 90%;
  border: none;
  border-top: 1px solid #b6c8b8;
}

.footer-copy {
  font-size: 18px;
  opacity: 0.9;
}

.note-box-inside {
  margin-top: 35px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 12px;
  font-size: 17px;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dfe6e0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  line-height: 1.55;
}

.note-icon {
  font-size: 22px;
  color: #2e7d32;
  margin-top: 2px;
}

.note-text {
  flex: 1;
}

.note-text strong {
  color: #1b5e20;
  font-weight: 700;
}


/* BURGER ICON*/
.burger {
  display: none;
  cursor: pointer;
  font-size: 30px;
  color: #f5fff7;
  transition: 0.25s ease;
}

.burger:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  right: -300px; 
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f4fff6 100%);
  display: flex;
  flex-direction: column;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transition: right 0.45s cubic-bezier(.32,.72,.24,1);
  z-index: 9999;
  padding-top: 20px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.22);
  
  overflow-y: auto; /* allow scrolling inside menu */
  -webkit-overflow-scrolling: touch; 
}

.mobile-menu.active {
  right: 0; /* ipakita ang menu */
}


/* TOP CLOSE BUTTON */
.mobile-top {
  display: flex;
  justify-content: flex-end;
  padding: 10px 18px;
}

.mobile-top #closeMenu {
  cursor: pointer;
  font-size: 24px;
  color: #23843A;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-top #closeMenu:hover {
  transform: rotate(90deg) scale(1.05);
  opacity: 0.7;
}

/*  MENU LINKS */
.mobile-links {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  gap: 10px;
}

.mobile-links a {
  padding: 14px 12px;
  font-size: 16px;
  color: #2a2a2a;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-links a:hover {
  background: #ddf8e3;
  transform: translateX(7px);
  box-shadow: 0 4px 12px rgba(35, 132, 58, 0.18);
}
@media (max-width: 850px) {
  .mobile-links a {
    font-size: 14.5px;      
    padding: 11px 9px;      
  }

  .mobile-top #closeMenu {
    font-size: 21px;        
    padding: 9px;
  }

  .mobile-menu {
    width: 225px;           
    padding-top: 17px;
  }
}

/* BACKDROP */
#menuBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9998;
}

#menuBackdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* NO SCROLL (BLOCK PAGE SCROLL) */
.noscroll {
  overflow: hidden; 
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .navbar nav {
    display: none;
  }

  .burger {
    display: block;
  }
}

/* MOBILE VIEW */
@media (max-width: 720px) {

  /* Home welcome message*/
  #home h1 {
    font-size: 28px; 
  }

  #home p {
    font-size: 14px; 
    max-width: 90%;  
  }

  /* Footer  */
  .footer-desc {
    font-size: 16px; 
  }

  .footer-nav a {
    font-size: 18px; 
  }

  .footer-copy {
    font-size: 14px; 
  }
}


/* Medium screens (tablet) */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
  }
}

/* Small screens (mobile) */
@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr; /* 1 column lang */
    gap: 16px; 
  }

  
  .feature-card {
    padding: 18px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .feature-card .icon {
    font-size: 28px;
  }
}



/* FOR NAV MENU */
.noscroll {
  overflow: hidden !important;
  height: 100vh;
}



/* TABLET VIEW  */

@media (max-width: 1024px) { 

 
  .navbar nav {
    display: none; /* hide desktop nav */
  }
  .burger {
    display: block; /* show burger menu */
  }


  #home h1 {
    font-size: 28px;
  }

  #home p {
    font-size: 14px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .features {
    grid-template-columns: 1fr; /* 1 column lang */
    gap: 16px;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 13px;
  }

  .feature-card .icon {
    font-size: 28px;
  }

 
 .modal-box {
  background: #fff;
  width: 100%;
  max-width: 400px;   /* LIMIT WIDTH */
  border-radius: 14px;
  overflow: hidden;
}


 
  .footer-desc {
    font-size: 16px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav {
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* line 2 kung hindi kasya */
  }

  .footer-nav a {
    font-size: 18px;
  }

  .footer-copy {
    font-size: 14px;
  }


  /* Mobile menu */

  .mobile-menu {
    width: 280px;
  }

  .burger {
    font-size: 30px;
  }
}

/*  FULLSCREEN OVERLAY */
#modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(3px); 
  z-index: 9998;
  transition: opacity 0.3s ease;
}

#modalOverlay.hidden {
  display: none;
  opacity: 0;
}

/* MODAL CENTER */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 12px;
}

.modal.hidden {
  display: none;
}

/* MODAL CARD */
.review-box {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  border-radius: 16px; 
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3); 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* HEADER  */
.review-box h2 {
  background: linear-gradient(135deg, #0a5c2f, #0d7b45); 
  color: #fff;
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* SUB HEADER */
.review-box h3 {
  margin: 16px 0 12px;
  text-align: center;
  color: #0a5c2f;
  font-size: 15px;
  font-weight: 600;
}

/* DETAILS */
.review-details {
  background: #fdfdfd;
  margin: 0 16px 16px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  overflow: hidden;
}

.review-details p {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  margin: 0;
  font-size: 14px;
  border-bottom: 1px solid #e2e2e2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-details p:hover {
  background: #f5f5f5;
  transform: translateX(2px);
}

.review-details p:last-child {
  border-bottom: none;
}

.review-details strong {
  font-weight: 600;
  color: #000;
}

/* BUTTON AREA  */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px 16px;
}

/* BUTTONS */
.modal-btn {
  min-width: 110px;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cancel button */
.modal-btn.keep {
  background: #dcdcdc;
  color: #333;
}

.modal-btn.keep:hover {
  background: #cfcfcf;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Confirm button */
.modal-btn.confirm {
  background: linear-gradient(135deg, #0a5c2f, #0d7b45);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10,92,47,0.3);
}

.modal-btn.confirm:hover {
  background: linear-gradient(135deg, #094b25, #0b6235);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,92,47,0.35);
}

/* FIX REVIEW MODAL SPACING */
#reviewModal .modal-content.review-box {
  max-width: 420px;
  padding: 0;              
  overflow: hidden;
}

/* Remove default margins */
#reviewModal h2,
#reviewModal h3 {
  margin: 0;
}

/* Style headers like 2nd modal */
#reviewModal h2 {
  background: linear-gradient(135deg, #0a5c2f, #0d7b45);
  color: #fff;
  padding: 14px 16px;
  text-align: center;
  font-size: 18px;
}

#reviewModal h3 {
  margin: 16px 0 12px;
  text-align: center;
  color: #0a5c2f;
  font-size: 15px;
}

#reviewModal .review-details {
  margin: 0 16px 16px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
}

#reviewModal .review-details p {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e2e2;
}

/* Buttons spacing */
#reviewModal .modal-actions {
  padding: 8px 16px 16px;
}

/*MODAL CONTROL */


.modal.active {
  display: flex;
}

.modal-overlay {
  display: none;
}
.modal-overlay.active {
  display: flex;
}


.modal,
.modal-overlay,
#modalOverlay {
  z-index: 9999;
}

.modal.active,
.modal-overlay.active,
#modalOverlay.active {
  display: flex !important;
}

.modal.hidden,
.modal-overlay.hidden,
#modalOverlay.hidden {
  display: none !important;
}
