html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

dt { font-weight: 600; }

/*----------------------------------------
    Homepage Hero Banner
----------------------------------------*/
.hero {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1375px;
    min-height: 575px;
    overflow: hidden;
    gap: 10px; /* <-- space between panels */
    background-color: white; /* <-- makes the gap show up as white */
}

.hero .panel {
    position: relative;
    flex: 1; /* equal width panels */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    min-height: 575px;
}

.hero .panel .panel-text {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    font-size: 18px;
    /*z-index: 2;*/
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

/* link + text styles */
.hero .panel a {
    position: relative;
    z-index: 1;
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    margin-bottom: 15px;
}

.hero .panel a:hover {
    text-decoration: underline;
}

/* overlay for readability */
.hero .panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.2s ease;
}

.hero .panel:hover::before {
    background: rgba(0,0,0,0.25);
}

/* responsive stacking */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }

    .hero .panel {
        min-height: 300px;
    }
}
            
/* Tighten up rows and labels */
.details-row {
    margin-bottom: 0.25rem !important; /* shrink row gap */
}

.details-row .form-label {
    margin-bottom: 0.1rem !important; /* tighten label-text gap */
}

.details-row .form-control-plaintext {
    padding-top: 0 !important;
    padding-bottom: 0.1rem !important; /* less vertical padding */
}

.card .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.1rem !important;
}

.card .form-control-plaintext {
    padding: 0.1rem 0 !important;
    font-size: 0.9rem;
}

/* Reservation Page background */
.page-bg {
    background: radial-gradient(1200px 600px at 10% 0%, #f3f6fc 0, rgba(243,246,252,0) 60%), radial-gradient(1000px 500px at 100% 5%, #eef2ff 0, rgba(238,242,255,0) 60%), linear-gradient(180deg, #ffffff 0, #f8fafc 60%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 2rem 0 3rem;
}

/* White card for form */
.form-shell {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 2rem;
}

/* Guest cards */
.guest-card {
    background: #fbfdff;
    border: 1px solid #e8eef7;
    border-radius: 12px;
    padding: 1rem;
}

.guest-remove {
    font-size: 1.25rem !important; /* much larger X */
    font-weight: 900; /* extra bold */
    line-height: 1; /* tight vertical alignment */
    color: #dc3545; /* Bootstrap danger red */
    background: transparent;
    border: none;
    padding: 0 0.5rem;
    cursor: pointer;
}

    .guest-remove:hover {
        color: #a71d2a; /* darker red on hover */
        transform: scale(1.2); /* little grow effect */
    }

/*----------------------------------------
    Fullcalender.io Calendar 
----------------------------------------*/
/* WEEK AND DAY VIEW */
.fc th a {
    text-decoration: none;
    color: #000;
}

.fc .activity {
    font-size: 0.85rem; 
    color: #333;
    font-weight: 500;
}

.fc .activity .mobile {
    display: inline;
}

/* Month calendar */
.fc .fc-daygrid-day-number {
    cursor: pointer;
}

/* Month calendar */
.fc a.fc-event {
    cursor: pointer;
    line-height: 1.1;
    white-space: pre-line; /* honors "\n" */
}

/* Week and Day calendar */
.fc .fc-timegrid-slot {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

/* MONTH VIEW */
.fc-dayGridMonth-view a.fc-event {
    color: #fff;
}

.fc-dayGridMonth-view .fc-daygrid-dot-event .fc-event-title {
    font-weight: 500;
}

/* Full Calendar fixes for Mobile Screen */
@media (max-width: 650px) {
    /* Stack Calendar controls */
    .fc .fc-toolbar {
        display: block;
    }

    /* Put padding around Header */
    .fc-toolbar-chunk:nth-child(2) {
        padding: 10px 0 15px 0;
    }

    /* Make Tennis and Pickelball Vertical */
    .fc .activity {
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    .fc .activity .mobile {
        display: none;
    }
}

/*--------------------------------------------------
    Forms
--------------------------------------------------*/
.form-control {
    font-size: .9rem;
    max-width: 350px;
    border-radius: 4px;
    padding: .35rem .35rem;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
    padding-right: 50px;
}

form h2,.form-shell h2 {
    font-size: 24px;
}

form h3 {
    font-size: 20px;
}

label {
    display: block;
    font-weight: 600;
}

.control-label.required:after {
    content: " *";
    color: red;
}

span.required {
    color: red;
}

select.form-control {
    -webkit-appearance: menulist;
}

.form-control:focus {
    outline: 3px solid #ffd407;
}


.btn {
    line-height: auto;
    font-size: .9rem;
    border-radius: 4px;
    vertical-align: top;
    text-decoration: none !important;
    padding: .35rem 1rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    background-color: #093;
    border-color: #093;
    padding: .35rem 1rem;
}

.btn-primary:hover, .btn-hover:active {
    background-color: #063;
}

.btn-secondary {
    background-color: #89799c;
    background-color: #ddd;
    border-color: #89799c;
    border-color: #ddd;
    color: #000;
    margin-right: 20px;
    padding: .375rem 2rem;
}

.btn-secondary:hover, .btn-secondary:active {
    background-color: #655875;
    background-color: #bbb;
    border-color: #bbb;
    color: #000;
}

.btn-light {
    background-color: #ddd;
    border-color: #ddd;
}

.btn-light:hover, .btn-light:active {
    background-color: #bbb;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    padding: .375rem 1rem;
}

.btn-small {
    padding: .2rem .75rem .2rem .75rem;
}

/*--------------------------------------------------
    Status Colors
--------------------------------------------------*/
/* Text Colors */
.status-pending,
.status-background_check,
.status-background_cleared,
.status-inactive,
.status-caution {
    color: var(--bs-orange);
}

.status-approved, 
.status-active,
.status-good {
    color: var(--bs-success);
}

.status-incomplete,
.status-rejected, 
.status-blocked,
.status-warning {
    color: var(--bs-red);
}

.status-default {
    color: var(--bs-blue);
}

/* Status Legend for Calendar */
.status-legend {
    /* 
    position: absolute;
    bottom: 20px;
    left: 20px;
    */
}

.status-legend ul {
    margin-top: 8px;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.status-legend ul li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.status-legend ul li:last-child {
    margin-bottom: 0;
}

.status-legend .status-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #ccc;
    margin-right: 8px;
}

.status-legend .status-color.pending {
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
}

.status-legend .status-color.approved {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.status-legend .status-color.rejected {
    background-color: var(--bs-red);
    border-color: var(--bs-red);
}

/* Full Calendar Backgrounds */
.fc .status-pending {
    background-color: var(--bs-orange);
    border-color: var(--bs-orange);
}

.fc .status-approved {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.fc .status-incomplete,
.fc .status-rejected {
    background-color: var(--bs-red);
    border-color: var(--bs-red);
}

.fc .status-default {
    background-color: var(--bs-blue);
    border-color: var(--bs-blue);
}

/*--------------------------------------------------
   Terms of Service
--------------------------------------------------*/
#termsModal {
    font-size: .9rem;
}

#termsModal h2 {
    font-size: 24px;
}

/*--------------------------------------------------
   Admin
--------------------------------------------------*/
.adminTable {
    margin-top: 2rem;
    font-size: 14px;
}

.adminTable tbody tr:nth-child(even) {
    background-color: #fcfcfa;
}

.adminTable th {
    border-bottom: solid 1px #bbb;
    padding: .25rem .5rem;
}

.adminTable td {
    padding: .25rem .5rem;
}

.adminTable .status-pending,
.adminTable .status-inactive,
.adminTable .status-caution {
    color: var(--bs-orange);
    font-weight: 600;
}

.adminTable .status-approved,
.adminTable .status-active,
.adminTable .status-good {
    color: var(--bs-success);
    font-weight: 600;
}

.adminTable .status-rejected,
.adminTable .status-blocked,
.adminTable .status-warning {
    color: var(--bs-red);
    font-weight: 600;
}

.adminForm {

}

.adminForm h2 {
    font-size: 1.7rem;
    margin: .5rem 0 1rem 0;
}

/* ? Responsive Table for Mobile View */
@media (max-width: 750px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }

    .adminTable {
        min-width: 900px; /* Keeps all 7 columns visible */
    }

    .adminUserTable { min-width: 100%; }
    .adminUserTable th:nth-child(3),
    .adminUserTable td:nth-child(3),
    .adminUserTable th:nth-child(4),
    .adminUserTable td:nth-child(4),
    .adminUserTable th:nth-child(5),
    .adminUserTable td:nth-child(5) {
        display: none;
    }
}

/*--------------------------------------------------
   Footer
--------------------------------------------------*/
footer {
    margin-top: 40px;
}

@media (max-width: 650px) {
    footer {
        margin-top: 20px;
    }
}