/* LOGIN */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.captcha-container {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

#captcha-canvas {
    border: 1px solid #ddd;
    border-radius: 4px;
}

#refresh-captcha {
    padding: 0.5rem;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
}

/* START ADMIN CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior:smooth;
}

body {
    /* background: #e7e7e1; */
    background: #f9f9f9;
    font-family: 'Lora', sans-serif;
    color: #333;
    cursor: default;
}

a {
    color: black;
}

section {
    margin: 2rem 1rem 3rem 1rem;
}

h1 {
  text-align:center;
  margin: 1rem;
}

h2 {
    text-align: center;
    margin: 0.5rem 0rem;
    font-size: 1.5rem;
    font-weight: normal;
}

h3 {
    text-align: center;
    color:#1d1c12;
    margin-bottom: 0.75rem;
    font-size:1.25rem;
    font-weight: normal;
}

h4 {
    text-align: center;
    color:#1d1c12;
    font-size:1.25rem;
    font-weight: normal;
}

/* HEADER NAV */

header {
  background: #e7e4bb;
  /* overflow:hidden; */
  position: fixed !important;
  bottom: 0 !important;
  width: 100%;
  padding-top:0.125rem;
  padding-bottom:0.125rem;
  z-index: 5; /* Ensure content is above other elements */
}

.navigation-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(1rem, 11rem));
  align-items: center;
  justify-items: center;
  justify-content: center;
}

.logo {
  margin:0 5rem;
  height: 4rem;
  width:4rem;
  cursor: pointer;  
}

.nav-link {
    position:relative;
    font-family: "Lora", sans-serif;
    text-decoration: none;
}

.hover-underline:before{
    content:"";
    position:absolute;
    bottom: -0.125rem;
    left: 50%;
    height: 0.125rem;
    width:0;
    background: #3d3c33;
    transition: 0.15s;
}

.hover-underline:hover::before{
    width:100%;
    left:0;
}

.nav-link:hover {
    transition: 0.15s ease-in-out;
}

.nav-item{
  font-size:1.5rem;
}

li {
    list-style: none;
}

ul {
    padding: 0;
    margin: 0;
}

/* TABLES */

.table-container {
  margin-bottom:1rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
  border-radius:0.5rem;
  padding:0.125rem 0.25rem;
  overflow-x:auto;
}

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

th, td { 
  border-left: 0.065rem solid #ddd;
  padding: 0.5rem; 
  text-align: center; 
  font-size:1rem;
}

th, td:first-child { border-left: none; }

th {
  font-weight: 600;
}

tr:hover {
  background-color: #f1f1f1;
}

.row-rejected {
  background-color: #ffcccc;
}

.row-canceled {
  background-color: #c9a0a0;
}

.row-approved {
  background: #d6f5d6;
  color: #222;
}

.row-pending {
  background: #79dd68;
  color: #222;
}

button { 
    background: #e7e4bb;
    color: #333;
    border: none;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
    font-family: 'Lora', sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

button:hover { 
  background: #f0a500;
  color: #fff;
}

/* GRID */
.calendar-grid {
    display:grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 2rem;
}

.pendApprove{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  grid-area: 1 / 1 / 1 / 2;
}

.adminCalendar {
  display:flex;
  flex-direction: column;
  grid-area: 1 / 2 / 1 / 3;
}

.active-holidays{
  margin-bottom:1rem;
  display: flex;
  flex-direction: column;
  grid-area: 1 / 3 / 1 / last-line;
}

/* Minimalistic calendar styles */
.calendar-wrap{
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.07);
}

#admin-calendar {
  overflow:auto;
}

#user-calendar {
    margin: 1rem auto;
}
.calendar-week-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}
.calendar-day-col {
    flex: 1;
    background: #ffffff;
    min-width: 3rem;
    max-width: 5rem;
}

.calendar-day-col.today-highlight {
    border: 0.125rem solid #f0a500;
    border-radius: 0.5rem;
}

.calendar-day-header {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin: 0.3rem 0;
    cursor:default;
}
.calendar-day-header:hover {
    opacity:0.7;
    transition:0.1s;
    transition: box-shadow 0.2s;
    cursor:pointer;
}

.calendar-day-header.selected {
    border: 0.125rem solid #60f000;
    border-radius:0.5rem;
    transition: 0.05s;
    cursor: pointer;
}

.calendar-slots-col {
    display: flex;
    flex-direction: column;
}

.slot {
    font-family: 'Lora', sans-serif;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem 0.05rem 0rem 0.05rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.slot:hover {
    opacity:0.7;
    transition:0.1s;
}

.slot.available {
    background: #d6f5d6;
    color: #222;
}
.slot.taken {
    background: #ffd699;
    color: #222;
    cursor: pointer;
}

.slot.pending {
    background: #79dd68;
    color: #222;
    cursor: pointer;
}

.slot.past {
    background: #e0e0e0; /* Grey out past slots */
    color: #666;
    cursor: pointer;
}

.slot.holiday {
    background: #f3b3d6; /* Grey out holiday slots */
    color: #70405a;
    cursor: pointer;
}

.slot.week {
  background:transparent;
  color: black;
  border: 0.125rem solid #f0a500;
}

.slot.selected {
  border: 0.125rem solid #60f000;
  transition: 0.05s;
}

.hint {
    margin-top:0.5rem;
    text-align:center;
    font-size:1.125rem;
    scroll-margin-top:5rem;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.week-nav-btn {
    background: #e7e4bb;
    color: #333;
    border: none;
    border-radius: 1.5rem;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    font-family: 'Lora', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.week-nav-btn:hover {
  background: #f0a500;
  color: #fff;
}

.add-holiday-btn {
  padding: 0.3rem 2rem;
}

/* History filters */
.history-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.no-data-message {
    text-align: center;
    font-size:1rem;
    padding: 1rem;
    color: #666;
}

/* Footer */
footer {
  margin-bottom:5rem;
}

.website-signature{
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-bottom:1rem;
}

.links {
    position:relative;
    font-family: "Lora", sans-serif;
    text-decoration: none;
    color: #18004c;
}

.links:hover {
    color: #18004c99;
    transition: 0.15s ease-in-out;
} 

/* Add these styles at the end of your CSS file */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: #e7e4bb;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    margin:0.3rem;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    /* border-radius:0.5rem; */
}

.pagination-btn.active {
    background: #e7e4bb;
    font-weight: bold;
}

/* Add transition styles for table rows */
#bookingHistoryTable tr {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* ///////////////// */
/* Responsive Design */
/* ///////////////// */

@media (max-width: 768px) {

h1 {
  font-size:1.3rem;
  font-weight:normal;
}

h2 {
  font-size: 1rem;
  font-weight:bold;
}

.no-data-message {
  font-size: 0.85rem;
  padding:0.5rem;
}

section {
  margin: 0 1rem;
}

.table-container {
  margin-bottom:0.5rem;
}

.nav-item {
    font-size: 1.125rem;
}

.logo {
    margin:0 2rem;
    height: 3rem;
    width: 3rem;
}

/* Navigation */
.navigation-layout {
  grid-template-columns: repeat(3, minmax(1rem, 5rem));
}

.pendingBookings {
  margin-bottom:0.5rem;
}

.approvedBookings {
  margin-bottom:0.5rem;
}

.active-holidays {
  margin-bottom:0.5rem;
}

/* test */
/* Table adjustments */
table {
  font-size: 0.85rem;
}

th {
  padding: 0.15rem;
  font-size: 0.85rem;
}

td {
  font-size:0.75rem;
}

button {
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
  margin: 0.2rem;
}

/* Calendar adjustments for mobile */
.calendar-grid {
    display: flex;
    justify-content: space-around;
    align-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap:1.5rem;
}

.calendar-wrap {
  position: static;
  transform: none;
  margin-bottom: 0.5rem;
}

.calendar-week-row {
  gap: 0rem;
  display: flex;
  grid-template-columns: repeat(7, minmax(0.5rem, 1fr));
  justify-items: center;
  align-items: center;
  justify-content: center;
}
.calendar-day-col {
  min-width: unset;
  margin-bottom: 0.25rem;
}

.week-nav-btn{
  font-size:0.9rem;
  padding: 0.625rem 1rem;
}

.calendar-slots-col
{
  margin-top:auto;
  /* margin-bottom:auto; */
}

.calendar-day-header{
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.slot {
    padding: 0.25rem 0.375rem;
    border-radius:0.5rem;
    font-size:0.7rem;
}

.pagination-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.9rem;
}
}