/* FacilityPro - Global layout (header, main, footer) */
body.fp-standalone {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f5f5f7;
}
/* Global nav: must stay visible on all pages (dashboard content must not override) */
body.fp-standalone > header#fp-global-header.fp-header,
.fp-header {
    background: #1a2a4a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    visibility: visible !important;
    opacity: 1 !important;
}
.fp-logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}
.fp-logo-img {
    height: 48px;
    width: auto;
}
.fp-logo:hover { color: #fff; opacity: 0.9; }
.fp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: #e65251;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.fp-skip-link:focus {
    left: 0;
}
.fp-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
}
.fp-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1px;
}
.fp-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.fp-nav a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.fp-nav a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.fp-main {
    min-height: 60vh;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}
.fp-footer {
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    background: #fff;
    border-top: 1px solid #eee;
}
.fp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}
.fp-footer-nav a {
    color: #1a2a4a;
    text-decoration: none;
    font-weight: 500;
}
.fp-footer-nav a:hover {
    color: #e65251;
}
.fp-footer p { margin: 0; }

.fp-not-found {
    max-width: 560px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(34,52,91,0.08);
}
.fp-not-found h1 {
    margin: 0 0 0.75rem;
    color: #1a2a4a;
    font-size: 2rem;
}
.fp-not-found p {
    color: #555;
    margin: 0 0 1.5rem;
}
.fp-not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.fp-not-found-actions a {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.fp-not-found-actions .fp-btn-primary {
    background: #e65251;
    color: #fff;
}
.fp-not-found-actions .fp-btn-secondary {
    background: #eef1f7;
    color: #1a2a4a;
}

.fp-password-field {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 360px;
}
.fp-password-field input {
    width: 100%;
    padding-right: 4rem;
    box-sizing: border-box;
}
.fp-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #1a2a4a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .fp-nav-toggle {
        display: flex;
    }
    .fp-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }
    .fp-nav.fp-nav-open {
        display: flex;
    }
    .fp-nav a {
        padding: 0.75rem 1rem;
    }
    .fp-header {
        flex-wrap: wrap;
    }
}

/* Owner / app dashboard wrapper (inside .fp-main) */
.fp-main > .fp-wrap {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.fp-main .fp-card {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* FacilityPro - My Account Dashboard Styling 1*/

.facilitypro-my-account {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.facilitypro-my-account h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.facilitypro-my-account h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #666;
}

.facilitypro-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.facilitypro-dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}
/* Adjust for the default 2px gutter in timeGrid events */
.fc-timegrid-event.fraction-half {
  flex: 0 0 calc(50% - 1px) !important;
  max-width: calc(50% - 1px) !important;
}

.fc-timegrid-event.fraction-third {
  flex: 0 0 calc(33.3333% - 1px) !important;
  max-width: calc(33.3333% - 1px) !important;
}

.fc-timegrid-event.fraction-quarter {
  flex: 0 0 calc(25% - 1px) !important;
  max-width: calc(25% - 1px) !important;
}

.fc-timegrid-event.fraction-full {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Ensure the container uses flex layout */
.fc-timegrid-col-events {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.facilitypro-dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.facilitypro-dashboard-card a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

.facilitypro-dashboard-card a:hover {
    color: #005177;
}

.facilitypro-members-area-not-logged-in {
    text-align: center;
    margin: 50px auto;
    padding: 40px 20px;
    max-width: 500px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.facilitypro-members-area-not-logged-in a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.facilitypro-members-area-not-logged-in a:hover {
    color: #005177;
}
/* FacilityPro - Reseller Dashboard Styling */

.facilitypro-reseller-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.facilitypro-reseller-dashboard h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.facilitypro-reseller-dashboard h3 {
    margin-top: 30px;
    font-size: 22px;
    color: #333;
}

.facilitypro-reseller-dashboard p {
    font-size: 16px;
    margin-bottom: 15px;
}

.facilitypro-reseller-dashboard ul {
    list-style: disc;
    padding-left: 20px;
}
/* FacilityPro - FullCalendar Slot Height Fix */
.fc .fc-timegrid-slot {
    min-height: 40px !important; /* Adjust slot height to properly show 9am 5pm */
}

/* Optional: Better look for the calendar */
.fc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}


/* On hover, slightly darken */
.fp-card-action .fp-book-now:hover {
  background-color: #0056b3;
}
/* --- Facility Embed Section --- */
.fp-embed-block {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.fp-embed-code {
  width: 100%;
  height: 80px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  background: #fff;
  color: #333;
  margin-bottom: 8px;
}

.fp-copy-embed {
  background: #4466af;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.fp-copy-embed:hover {
  background: #2b4c8a;
}

