/**
 * BuddyHub Public Stylesheet
 * Includes layout, modal, forms, messages, responsive, booking UI, Calendar.
 * Adds styles for Practice Area form and results, including loading spinner.
 * Enhanced design with gradients and icons (Logout icon removed).
 * @package    BuddyHub
 * @since      1.1.0 Cleaned after Calendar Debug (Updated 1.7.0)
 * @version    NEXT // Enhanced Design v2.3 - Removed Logout Icon
 */

/* --- Variables --- */
:root {
    /* Core Color Palette */
    --buddyhub-primary-color: #0B335D;
    /* Dark Blue */
    --buddyhub-primary-darker: #07223f;
    /* Darker Blue */
    --buddyhub-primary-lighter: #1a4a7e;
    /* Lighter Blue */
    --buddyhub-accent-color: #EC1744;
    /* Bright Pink/Red */
    --buddyhub-accent-darker: #c8143a;
    /* Darker Accent */

    /* Friendly Secondary Palette */
    --buddyhub-secondary-bg: #f0f7ff;
    /* Very Light Blue */
    --buddyhub-secondary-border: #cce4ff;
    /* Light Blue Border */
    --buddyhub-text-color: #343a40;
    /* Dark Gray */
    --buddyhub-text-light: #6c757d;
    /* Medium Gray */
    --buddyhub-link-color: var(--buddyhub-primary-color);
    --buddyhub-link-hover-color: var(--buddyhub-accent-color);

    /* Gradients */
    --buddyhub-gradient-primary: linear-gradient(135deg, var(--buddyhub-primary-lighter), var(--buddyhub-primary-color));
    --buddyhub-gradient-accent: linear-gradient(135deg, var(--buddyhub-accent-color), var(--buddyhub-accent-darker));
    --buddyhub-gradient-subtle-bg: linear-gradient(180deg, #ffffff 0%, var(--buddyhub-secondary-bg) 100%);

    /* Standard colors */
    --buddyhub-border-color: #e1e8f0;
    /* Softer border */
    --buddyhub-bg-light: #f8f9fa;
    /* Keep standard light bg */
    --buddyhub-bg-white: #ffffff;
    --buddyhub-error-text: #721c24;
    --buddyhub-error-bg: #f8d7da;
    --buddyhub-error-border: #f5c6cb;
    --buddyhub-success-text: #155724;
    --buddyhub-success-bg: #d4edda;
    --buddyhub-success-border: #c3e6cb;
    --buddyhub-today-bg: #e6f7ff;
    /* Lighter blue for today */

    /* Fonts & Sizing */
    --buddyhub-font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --buddyhub-base-font-size: 15px;
    --buddyhub-border-radius: 8px;
    /* Slightly more rounded */
    --buddyhub-button-border-radius: 25px;
    /* More rounded buttons */
    --buddyhub-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --buddyhub-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Icon Variables */
    --buddyhub-icon-size: 1.1em;
    --buddyhub-icon-spacing: 10px;
    /* Space between icon and text */
}

/* --- Global / Reset --- */
body.buddyhub-page {
    margin: 0;
    padding: 0;
    font-family: var(--buddyhub-font-family);
    background: var(--buddyhub-gradient-subtle-bg);
    color: var(--buddyhub-text-color);
    line-height: 1.6;
    font-size: var(--buddyhub-base-font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#buddyhub-page-wrapper {
    max-width: 1350px;
    margin: 20px auto;
    background-color: var(--buddyhub-bg-white);
    box-shadow: var(--buddyhub-shadow-md);
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--buddyhub-border-radius);
}

/* --- Header --- */
.buddyhub-header {
    background: var(--buddyhub-gradient-primary);
    color: #fff;
    padding: 0 35px;
    border-bottom: none;
    position: relative;
    z-index: 10;
    border-top-left-radius: var(--buddyhub-border-radius);
    border-top-right-radius: var(--buddyhub-border-radius);
}

.buddyhub-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.buddyhub-logo a {
    color: #fff;
    text-decoration: none;
    line-height: 1.1;
    display: inline-block;
}

.buddyhub-logo .logo-main-text {
    display: block;
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.buddyhub-logo .logo-sub-text {
    display: block;
    font-size: 0.65em;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buddyhub-header-right {
    display: flex;
    align-items: center;
}

.buddyhub-user-info {
    margin-right: 20px;
    font-size: 0.9em;
    font-weight: 400;
}

.buddyhub-user-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    transition: opacity 0.2s, border-color 0.2s;
    opacity: 0.9;
    padding-bottom: 2px;
}

.buddyhub-user-info a:hover {
    opacity: 1;
    border-bottom-color: #fff;
}

.buddyhub-header-right .header-auth button#buddyhub-open-modal-button {
    font-size: 0.9em;
    font-weight: 700;
    padding: 9px 22px;
    min-height: auto;
    line-height: normal;
    margin-right: 20px;
    border-radius: var(--buddyhub-button-border-radius);
    background: var(--buddyhub-gradient-accent);
    color: #fff;
    border: none;
    transition: background 0.3s ease, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: var(--buddyhub-shadow-sm);
}

.buddyhub-header-right .header-auth button#buddyhub-open-modal-button:hover {
    background: linear-gradient(135deg, var(--buddyhub-accent-color), #b01034);
    color: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.buddyhub-mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.6em;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--buddyhub-border-radius);
    line-height: 1;
    transition: background-color 0.2s;
}

.buddyhub-mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Main Container & Sidebar --- */
.buddyhub-main-container {
    display: flex;
    flex: 1;
    min-height: 0;
}

.buddyhub-sidebar {
    width: 250px;
    background-color: var(--buddyhub-bg-white);
    background-image: var(--buddyhub-gradient-subtle-bg);
    border-right: 1px solid var(--buddyhub-border-color);
    padding: 35px 15px 35px 25px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.buddyhub-navigation {
    flex-grow: 1;
}

.buddyhub-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.buddyhub-navigation li {
    margin-bottom: 6px;
}

.buddyhub-navigation a {
    text-decoration: none;
    color: var(--buddyhub-text-light);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--buddyhub-border-radius);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.1s ease;
    font-size: 0.98em;
    font-weight: 500;
    position: relative;
    /* Keep padding for consistent look even without icon */
    padding-left: calc(15px + var(--buddyhub-icon-size) + var(--buddyhub-icon-spacing));
}

/* Icon Styling using ::before (Applied to all nav links initially) */
.buddyhub-navigation a::before {
    content: '';
    display: inline-block;
    width: var(--buddyhub-icon-size);
    height: var(--buddyhub-icon-size);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: background-color 0.2s ease-in-out;
}

/* Define individual icons */
.buddyhub-navigation a[href*="bh_view=home"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.buddyhub-navigation a[href*="bh_view=about"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.buddyhub-navigation a[href*="bh_view=book"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-8.01-6.11l-2.12-2.12-1.41 1.41 3.54 3.54 5.66-5.66-1.41-1.41z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-8.01-6.11l-2.12-2.12-1.41 1.41 3.54 3.54 5.66-5.66-1.41-1.41z'/%3E%3C/svg%3E");
}

.buddyhub-navigation a[href*="bh_view=book-hot-seat"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.buddyhub-navigation a[href*="bh_view=practice-interview"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E");
}

/* Sidebar link hover */
.buddyhub-navigation a:hover {
    background-color: var(--buddyhub-secondary-bg);
    color: var(--buddyhub-link-hover-color);
    box-shadow: var(--buddyhub-shadow-sm);
    transform: translateX(3px);
}

/* Sidebar current item */
.buddyhub-navigation li.current-menu-item>a {
    background: var(--buddyhub-gradient-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}

.buddyhub-navigation li.current-menu-item>a::before {
    background-color: #fff;
    /* White icon on active state */
}

.buddyhub-navigation li.current-menu-item>a:hover {
    background: var(--buddyhub-gradient-primary);
    opacity: 0.95;
    transform: none;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}


.buddyhub-sidebar .sidebar-logout {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--buddyhub-border-color);
}

/* --- Main Content --- */
.buddyhub-content {
    flex: 1;
    padding: 45px 50px;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: 0;
}

.buddyhub-content h1 {
    margin-top: 0;
    border-bottom: 1px solid var(--buddyhub-border-color);
    padding-bottom: 25px;
    margin-bottom: 35px;
    font-size: 2em;
    font-weight: 700;
    color: var(--buddyhub-text-color);
}

.buddyhub-content h2 {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--buddyhub-text-color);
}

.buddyhub-content h3 {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--buddyhub-primary-color);
}

.buddyhub-content p {
    font-size: 1em;
    color: var(--buddyhub-text-light);
    margin-bottom: 1.4em;
}

.buddyhub-content a {
    color: var(--buddyhub-link-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.buddyhub-content a:hover {
    color: var(--buddyhub-link-hover-color);
    text-decoration: underline;
}

/* General button styling */
.button,
.buddyhub-content .button,
.buddyhub-form .button {
    display: inline-block;
    text-decoration: none;
    font-size: 0.95em;
    line-height: normal;
    min-height: auto;
    margin: 5px;
    padding: 12px 25px;
    cursor: pointer;
    border: none;
    border-radius: var(--buddyhub-button-border-radius);
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: 700;
    text-align: center;
    transition: background 0.3s ease, box-shadow 0.2s, opacity 0.2s, transform 0.1s ease;
    box-shadow: var(--buddyhub-shadow-sm);
}

.button:disabled,
.buddyhub-content .button:disabled,
.buddyhub-form .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Primary button style */
.button-primary,
.buddyhub-content .button-primary,
.buddyhub-form .button-primary {
    background: var(--buddyhub-gradient-primary);
    color: #fff;
    text-shadow: none;
}

.button-primary:hover:not(:disabled),
.buddyhub-content .button-primary:hover:not(:disabled),
.buddyhub-form .button-primary:hover:not(:disabled) {
    background: var(--buddyhub-gradient-primary);
    opacity: 0.9;
    color: #fff;
    box-shadow: var(--buddyhub-shadow-md);
    transform: translateY(-1px);
}

.button-primary:focus,
.buddyhub-content .button-primary:focus,
.buddyhub-form .button-primary:focus {
    background: var(--buddyhub-gradient-primary);
    opacity: 0.95;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(11, 51, 93, 0.3);
    outline: none;
    transform: none;
}

/* Standard button style (use Accent Gradient) */
.button,
.buddyhub-content .button {
    background: var(--buddyhub-gradient-accent);
    color: #fff;
}

.button:hover:not(:disabled),
.buddyhub-content .button:hover:not(:disabled) {
    background: var(--buddyhub-gradient-accent);
    opacity: 0.9;
    color: #fff;
    box-shadow: var(--buddyhub-shadow-md);
    transform: translateY(-1px);
}

/* Button small variant */
.button-small {
    font-size: 0.8em !important;
    padding: 5px 14px !important;
}

/* --- Session List on Dashboard --- */
.buddyhub-session-list {
    margin-top: 20px;
}

.buddyhub-session-list ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.buddyhub-session-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid var(--buddyhub-secondary-border);
    background-color: var(--buddyhub-secondary-bg);
    border-radius: var(--buddyhub-border-radius);
    font-size: 0.95em;
    transition: box-shadow 0.2s;
}

.buddyhub-session-list li:hover {
    box-shadow: var(--buddyhub-shadow-sm);
}

.buddyhub-session-list li:last-child {
    border-bottom: 1px solid var(--buddyhub-secondary-border);
}

.buddyhub-session-list .session-time {
    font-weight: 700;
    color: var(--buddyhub-primary-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.buddyhub-session-list .session-details {
    color: var(--buddyhub-text-light);
    margin-right: auto;
    flex-grow: 1;
    padding-left: 5px;
}

.buddyhub-session-list .session-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

/* Join Meeting Button Style */
.buddyhub-join-button {
    background: var(--buddyhub-gradient-primary);
    /* Blue Gradient */
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    /* Inherit styles from .button-small */
    font-size: 0.8em !important;
    padding: 5px 14px !important;
    border-radius: var(--buddyhub-button-border-radius);
    font-weight: 700;
    box-shadow: var(--buddyhub-shadow-sm);
    transition: background 0.3s ease, box-shadow 0.2s, opacity 0.2s, transform 0.1s ease;
}

.buddyhub-join-button:hover {
    background: var(--buddyhub-gradient-primary);
    opacity: 0.9;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: var(--buddyhub-shadow-md);
}

/* Cancel Button Styling (Outline Style) */
a.buddyhub-cancel-button {
    border: 1px solid var(--buddyhub-accent-color);
    /* Red/Pink border */
    color: var(--buddyhub-accent-color) !important;
    /* Red/Pink text */
    background-color: transparent !important;
    display: inline-block;
    padding: 4px 12px;
    /* Adjusted padding to match join */
    font-size: 0.8em;
    /* Match join */
    font-weight: 700;
    /* Match join */
    border-radius: var(--buddyhub-button-border-radius);
    /* Match other buttons */
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: none;
}

a.buddyhub-cancel-button:hover {
    background-color: var(--buddyhub-accent-color) !important;
    /* Fill on hover */
    color: #fff !important;
    text-decoration: none !important;
    border-color: var(--buddyhub-accent-color);
    box-shadow: var(--buddyhub-shadow-sm);
    transform: translateY(-1px);
}

/* Info Tiles on Logged Out Home */
.buddyhub-info-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.buddyhub-info-tiles div {
    border: 1px solid var(--buddyhub-secondary-border);
    padding: 30px;
    text-align: center;
    background-color: var(--buddyhub-secondary-bg);
    border-radius: var(--buddyhub-border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buddyhub-info-tiles div:hover {
    transform: translateY(-3px);
    box-shadow: var(--buddyhub-shadow-md);
}

.buddyhub-info-tiles h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--buddyhub-primary-color);
}

/* --- Booking Calendar Styling --- */
#buddyhub-booking-calendar,
#buddyhub-booking-calendar-1on1 {
    margin-top: 25px;
    margin-bottom: 35px;
    --fc-border-color: var(--buddyhub-border-color);
    --fc-today-bg-color: var(--buddyhub-today-bg);
    --fc-button-bg-color: var(--buddyhub-primary-color);
    --fc-button-border-color: var(--buddyhub-primary-color);
    --fc-button-hover-bg-color: var(--buddyhub-accent-color);
    --fc-button-hover-border-color: var(--buddyhub-accent-color);
    --fc-button-active-bg-color: var(--buddyhub-accent-darker);
    --fc-button-active-border-color: var(--buddyhub-accent-darker);
    --fc-button-text-color: #ffffff;
    --fc-event-bg-color: var(--buddyhub-primary-color);
    --fc-event-border-color: var(--buddyhub-primary-color);
    --fc-event-text-color: #ffffff;
    --fc-more-link-bg-color: #e9ecef;
    --fc-more-link-text-color: var(--buddyhub-text-light);
}

#buddyhub-booking-calendar .fc-day-today,
#buddyhub-booking-calendar-1on1 .fc-day-today {
    background-color: var(--fc-today-bg-color) !important;
}

.fc-daygrid-event.buddyhub-slot,
.fc-timegrid-event.buddyhub-slot {
    border: none;
    color: #fff !important;
    padding: 3px 5px;
    margin-bottom: 3px;
    border-radius: 5px;
    font-size: 0.88em;
    cursor: default;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: var(--buddyhub-shadow-sm);
}

.fc-daygrid-event.buddyhub-slot-available,
.fc-timegrid-event.buddyhub-slot-available {
    background: var(--buddyhub-gradient-primary);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
}

.fc-daygrid-event.buddyhub-slot-available:hover,
.fc-timegrid-event.buddyhub-slot-available:hover {
    background: var(--buddyhub-gradient-accent);
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}

.fc-daygrid-event.buddyhub-slot-booked,
.fc-timegrid-event.buddyhub-slot-booked {
    background: #adb5bd !important;
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.fc-daygrid-event.buddyhub-slot-selected,
.fc-timegrid-event.buddyhub-slot-selected {
    background: var(--buddyhub-gradient-accent) !important;
    box-shadow: 0 0 0 3px var(--buddyhub-primary-lighter), inset 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transform: scale(1.02);
}

/* Separator */
.buddyhub-separator {
    border: none;
    border-top: 1px solid var(--buddyhub-border-color);
    margin: 35px 0;
}

/* --- Booking Details Form Styling --- */
#buddyhub-booking-details-form,
#buddyhub-1on1-booking-form {
    border: 1px solid var(--buddyhub-secondary-border);
    background-color: var(--buddyhub-secondary-bg);
    padding: 35px 40px;
    border-radius: var(--buddyhub-border-radius);
    margin-top: 25px;
    box-shadow: var(--buddyhub-shadow-sm);
}

#buddyhub-booking-details-form h2,
#buddyhub-1on1-booking-form h2 {
    margin-top: 0;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
}

#buddyhub-booking-details-form>p:first-of-type,
#buddyhub-1on1-booking-form>p:first-of-type {
    text-align: center;
    font-size: 1.1em;
    color: var(--buddyhub-text-light);
    margin-bottom: 30px;
}

#buddyhub-booking-details-form strong#selected-timeslot-display,
#buddyhub-1on1-booking-form strong#selected-1on1-timeslot-display {
    font-weight: 700;
    color: var(--buddyhub-accent-color);
}

/* Common Input/Textarea/Select Styles */
#buddyhub-booking-details-form .input,
#buddyhub-booking-details-form input[type="text"].input,
#buddyhub-booking-details-form input[type="email"].input,
#buddyhub-booking-details-form input[type="file"].input,
#buddyhub-booking-details-form select.input,
#buddyhub-booking-details-form textarea.input,
#buddyhub-1on1-booking-form .input,
#buddyhub-1on1-booking-form textarea.input,
.buddyhub-practice-form textarea.input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--buddyhub-border-color);
    border-radius: var(--buddyhub-border-radius);
    box-sizing: border-box;
    font-size: 0.98em;
    background-color: var(--buddyhub-bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--buddyhub-font-family);
    line-height: 1.5;
    margin-top: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#buddyhub-booking-details-form p,
#buddyhub-1on1-booking-form p,
.buddyhub-practice-form p {
    margin-bottom: 20px;
}

/* File Input */
#buddyhub-booking-details-form input[type="file"].input,
#buddyhub-1on1-booking-form input[type="file"].input {
    padding: 10px 12px;
    line-height: 1.5;
    font-size: 0.9em;
    color: var(--buddyhub-text-light);
    background-color: var(--buddyhub-bg-light);
    box-shadow: none;
}

#buddyhub-booking-details-form input[type="file"]::file-selector-button,
#buddyhub-1on1-booking-form input[type="file"]::file-selector-button {
    padding: 8px 15px;
    border-radius: var(--buddyhub-button-border-radius);
    background: var(--buddyhub-gradient-primary);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-right: 10px;
}

#buddyhub-booking-details-form input[type="file"]::file-selector-button:hover,
#buddyhub-1on1-booking-form input[type="file"]::file-selector-button:hover {
    opacity: 0.9;
}


/* Focus Styles use accent color */
#buddyhub-booking-details-form .input:focus,
#buddyhub-booking-details-form input[type="text"].input:focus,
#buddyhub-booking-details-form input[type="email"].input:focus,
#buddyhub-booking-details-form select.input:focus,
#buddyhub-booking-details-form textarea.input:focus,
#buddyhub-1on1-booking-form .input:focus,
#buddyhub-1on1-booking-form textarea.input:focus,
.buddyhub-practice-form textarea.input:focus {
    border-color: var(--buddyhub-accent-color);
    box-shadow: 0 0 0 3px rgba(236, 23, 68, 0.15);
    outline: none;
    background-color: var(--buddyhub-bg-white);
}

#buddyhub-booking-details-form input[readonly].input {
    background-color: #e9ecef;
    cursor: not-allowed;
    border-color: #ced4da;
}

/* Label Styles */
#buddyhub-booking-details-form label,
#buddyhub-1on1-booking-form label,
.buddyhub-practice-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--buddyhub-text-color);
    font-size: 0.9em;
}

/* Optional Hint */
#buddyhub-1on1-booking-form small {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 5px;
}

/* Required asterisk uses accent color */
.required {
    color: var(--buddyhub-accent-color);
    font-weight: bold;
    margin-left: 3px;
}

#buddyhub-booking-details-form p.buddyhub-submit,
#buddyhub-1on1-booking-form p.buddyhub-submit,
.buddyhub-practice-form p.buddyhub-submit {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 0;
}

/* --- Footer --- */
.buddyhub-footer {
    background-color: var(--buddyhub-secondary-bg);
    border-top: 1px solid var(--buddyhub-border-color);
    color: var(--buddyhub-text-light);
    padding: 25px 35px;
    text-align: center;
    font-size: 0.88em;
    margin-top: auto;
    border-bottom-left-radius: var(--buddyhub-border-radius);
    border-bottom-right-radius: var(--buddyhub-border-radius);
}

.buddyhub-footer p {
    margin: 0;
}

/* --- Auth Modal Styles --- */
.buddyhub-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 51, 93, 0.7);
    padding-top: 6%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.buddyhub-modal-content {
    background-color: var(--buddyhub-bg-white);
    margin: 5% auto;
    padding: 45px 50px;
    border: none;
    width: 90%;
    max-width: 450px;
    border-radius: var(--buddyhub-border-radius);
    box-shadow: var(--buddyhub-shadow-md);
    position: relative;
}

.buddyhub-modal-close {
    color: #aaa;
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
}

.buddyhub-modal-close:hover,
.buddyhub-modal-close:focus {
    color: var(--buddyhub-accent-color);
    transform: scale(1.1);
}

/* --- Form Styles (Inside Modal) --- */
.buddyhub-form h2 {
    font-size: 1.7em;
    margin-bottom: 30px;
    color: var(--buddyhub-primary-color);
    font-weight: 700;
    text-align: center;
    margin-top: 0;
}

.buddyhub-form p {
    margin-bottom: 20px;
    text-align: left;
}

.buddyhub-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--buddyhub-text-color);
    font-size: 0.9em;
}

.buddyhub-form .input,
.buddyhub-form input[type="text"],
.buddyhub-form input[type="email"],
.buddyhub-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--buddyhub-border-color);
    border-radius: var(--buddyhub-border-radius);
    box-sizing: border-box;
    font-size: 1em;
    margin-top: 0;
    background-color: var(--buddyhub-bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.buddyhub-form .input:focus,
.buddyhub-form input[type="text"]:focus,
.buddyhub-form input[type="email"]:focus,
.buddyhub-form input[type="password"]:focus {
    border-color: var(--buddyhub-accent-color);
    box-shadow: 0 0 0 3px rgba(236, 23, 68, 0.15);
    outline: none;
    background-color: var(--buddyhub-bg-white);
}

.buddyhub-form .buddyhub-submit {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 0;
}

.buddyhub-form p.buddyhub-rememberme {
    margin-top: -8px;
    margin-bottom: 28px;
}

.buddyhub-form p.buddyhub-rememberme label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    font-size: 0.9em;
    color: var(--buddyhub-text-light);
    cursor: pointer;
}

.buddyhub-form p.buddyhub-rememberme input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--buddyhub-primary-color);
}

.buddyhub-form .button-large {
    width: 100%;
    padding: 14px 25px;
    font-size: 1.05em;
}

/* Links in modal */
.buddyhub-register-link a,
.buddyhub-login-link a,
.buddyhub-lost-password a {
    color: var(--buddyhub-link-color);
    text-decoration: none;
    font-weight: 700;
}

.buddyhub-register-link a:hover,
.buddyhub-login-link a:hover,
.buddyhub-lost-password a:hover {
    color: var(--buddyhub-link-hover-color);
    text-decoration: underline;
}

.buddyhub-register-link,
.buddyhub-login-link,
.buddyhub-no-register,
.buddyhub-lost-password {
    margin-top: 30px;
    font-size: 0.9em;
    color: var(--buddyhub-text-light);
    text-align: center;
}

.buddyhub-lost-password {
    margin-top: -10px;
}


/* --- Message/Error Styles --- */
.buddyhub-message,
.buddyhub-message-area-inline {
    padding: 15px 20px;
    margin: 0 0 25px 0;
    border: 1px solid transparent;
    border-radius: var(--buddyhub-border-radius);
    text-align: left;
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: var(--buddyhub-shadow-sm);
}

.buddyhub-message:last-child {
    margin-bottom: 30px;
}

.buddyhub-message.buddyhub-error,
.buddyhub-message-area-inline.buddyhub-error {
    color: var(--buddyhub-error-text);
    background-color: var(--buddyhub-error-bg);
    border-color: var(--buddyhub-error-border);
}

.buddyhub-message.buddyhub-error strong {
    font-weight: 700;
}

.buddyhub-message.buddyhub-error a {
    color: var(--buddyhub-error-text);
    font-weight: 700;
    text-decoration: underline;
}

.buddyhub-message.buddyhub-error a:hover {
    color: #5a151c;
    /* Darker shade */
}

.buddyhub-message.buddyhub-success,
.buddyhub-message-area-inline.buddyhub-success {
    color: var(--buddyhub-success-text);
    background-color: var(--buddyhub-success-bg);
    border-color: var(--buddyhub-success-border);
}

/* --- Practice Area Specific Styles --- */
.buddyhub-practice-form {
    border: 1px solid var(--buddyhub-secondary-border);
    background-color: var(--buddyhub-secondary-bg);
    padding: 35px 40px;
    border-radius: var(--buddyhub-border-radius);
    margin-top: 25px;
    box-shadow: var(--buddyhub-shadow-sm);
}

.buddyhub-practice-form textarea.input {
    min-height: 150px;
    resize: vertical;
}

#buddyhub_practice_message {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background: none;
    border: none;
    padding: 10px;
}

#buddyhub_practice_message.buddyhub-loading {
    color: var(--buddyhub-text-light);
    font-style: italic;
}

#buddyhub_practice_message.buddyhub-error {
    background-color: var(--buddyhub-error-bg);
    border: 1px solid var(--buddyhub-error-border);
    color: var(--buddyhub-error-text);
    justify-content: flex-start;
    border-radius: var(--buddyhub-border-radius);
    box-shadow: var(--buddyhub-shadow-sm);
}


/* Results Area Styling */
#buddyhub_practice_results {
    margin-top: 35px;
}

#buddyhub_practice_results h2 {
    text-align: center;
    color: var(--buddyhub-primary-color);
}

.buddyhub-practice-output {
    border: 1px solid var(--buddyhub-border-color);
    background-color: var(--buddyhub-bg-white);
    padding: 30px;
    border-radius: var(--buddyhub-border-radius);
    margin-top: 20px;
    min-height: 100px;
    line-height: 1.7;
    white-space: normal;
    box-shadow: var(--buddyhub-shadow-sm);
}

.buddyhub-practice-output .practice-qa-block {
    margin-bottom: 2.8em;
    padding-bottom: 1.8em;
    border-bottom: 1px dashed var(--buddyhub-border-color);
}

.buddyhub-practice-output .practice-qa-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.buddyhub-practice-output h3 {
    font-size: 1.2em;
    color: var(--buddyhub-primary-color);
    margin-bottom: 1.2em;
    font-weight: 700;
}

.buddyhub-practice-output p {
    margin-bottom: 1em;
    color: var(--buddyhub-text-color);
}

.buddyhub-practice-output .star-label {
    font-weight: 700;
    color: var(--buddyhub-primary-color);
    margin-right: 7px;
    display: inline-block;
}

.buddyhub-practice-output .star-content {
    display: inline;
    color: var(--buddyhub-text-light);
}

/* Loading Spinner */
.buddyhub-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--buddyhub-primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: buddyhub-spin 1s linear infinite;
    margin-right: 12px;
    flex-shrink: 0;
}

@keyframes buddyhub-spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .buddyhub-sidebar {
        width: 220px;
    }

    .buddyhub-content {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --buddyhub-base-font-size: 14px;
    }

    #buddyhub-page-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .buddyhub-header {
        padding: 0 15px;
        border-radius: 0;
    }

    .buddyhub-header-container {
        height: 60px;
    }

    .buddyhub-logo .logo-main-text {
        font-size: 1.4em;
    }

    .buddyhub-logo .logo-sub-text {
        display: none;
    }

    .buddyhub-header-right .buddyhub-user-info {
        display: none;
    }

    .buddyhub-header-right .header-auth button#buddyhub-open-modal-button {
        margin-right: 10px;
        padding: 7px 15px;
        font-size: 0.9em;
    }

    .buddyhub-mobile-menu-toggle {
        display: block;
        font-size: 1.4em;
    }

    .buddyhub-main-container {
        flex-direction: column;
        position: relative;
        overflow: hidden;
    }

    .buddyhub-sidebar {
        width: 280px;
        max-width: 85%;
        border-right: none;
        border-bottom: none;
        display: block;
        padding: 25px;
        order: -1;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1010;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        background-color: var(--buddyhub-bg-white);
    }

    .buddyhub-sidebar.is-open {
        transform: translateX(0);
    }

    body.buddyhub-mobile-nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1005;
    }


    .buddyhub-content {
        padding: 25px 20px;
    }

    .buddyhub-content h1 {
        font-size: 1.7em;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .buddyhub-content h2 {
        font-size: 1.4em;
    }

    .buddyhub-modal-content {
        width: 92%;
        padding: 30px 25px;
        margin-top: 15%;
    }

    .buddyhub-form h2 {
        font-size: 1.5em;
    }

    /* Responsive Calendar */
    #buddyhub-booking-calendar .fc-toolbar-title,
    #buddyhub-booking-calendar-1on1 .fc-toolbar-title {
        font-size: 1.2em;
    }

    #buddyhub-booking-calendar .fc-toolbar.fc-header-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    #buddyhub-booking-calendar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    #buddyhub-booking-calendar .fc-button,
    #buddyhub-booking-calendar-1on1 .fc-button {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    .fc-daygrid-event.buddyhub-slot {
        font-size: 0.85em;
        padding: 2px 4px;
    }

    #buddyhub-booking-calendar .fc-daygrid-day-number,
    #buddyhub-booking-calendar-1on1 .fc-daygrid-day-number {
        font-size: 0.9em;
        padding: 3px;
    }

    /* Responsive Booking Form Inputs */
    #buddyhub-booking-details-form,
    #buddyhub-1on1-booking-form {
        padding: 25px;
    }

    #buddyhub-booking-details-form .input,
    #buddyhub-1on1-booking-form .input,
    #buddyhub-booking-details-form select.input,
    .buddyhub-practice-form textarea.input {
        padding: 11px 14px;
        font-size: 1em;
    }

    /* Responsive Session List */
    .buddyhub-session-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .buddyhub-session-list .session-details {
        margin-right: 0;
        margin-bottom: 8px;
        padding-left: 0;
    }

    .buddyhub-session-list .session-actions {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .buddyhub-footer {
        border-radius: 0;
    }
}

/* Prevent body scroll when mobile menu is open */
body.buddyhub-mobile-nav-open {
    overflow: hidden;
}

/* --- CV Generation Modal & Output --- */
#buddyhub-cv-modal .buddyhub-modal-content {
    max-width: 800px; /* Increased width for CV modal */
    width: 90%; /* Ensure responsiveness */
    padding: 35px 40px; /* Adjusted padding for larger modal */
}

@media (max-width: 768px) {
    #buddyhub-cv-modal .buddyhub-modal-content {
        max-width: 92%; /* Adjust max-width for smaller screens */
        padding: 25px 20px; /* Adjust padding for smaller screens */
    }
}

.buddyhub-cv-output {
    border: 1px solid var(--buddyhub-border-color);
    background-color: var(--buddyhub-bg-white);
    padding: 20px;
    border-radius: var(--buddyhub-border-radius);
    margin-top: 20px;
    min-height: 200px;
    line-height: 1.6;
    white-space: normal;
    box-shadow: var(--buddyhub-shadow-sm);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.buddyhub-cv-output h2 {
    font-size: 1.5em;
    color: var(--buddyhub-primary-color);
    margin-top: 0;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--buddyhub-primary-color);
    padding-bottom: 0.5em;
}

.buddyhub-cv-output h3 {
    font-size: 1.2em;
    color: var(--buddyhub-primary-darker);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--buddyhub-border-color);
    padding-bottom: 0.4em;
}

.buddyhub-cv-output p {
    margin-bottom: 1em;
    color: var(--buddyhub-text-color);
}

.buddyhub-cv-output ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

.buddyhub-cv-output li {
    margin-bottom: 0.5em;
}

.buddyhub-modal-footer {
    text-align: right;
    margin-top: 20px;
}
