* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0b1d28;
}

body {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: #0b1d28;
    color: white;
}

.phone-frame, .app-container {
    animation: fadeInPage 0.2s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* App Container - mimicking the mobile screen */
.app-container {
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #163a52;
    background-image: linear-gradient(rgba(11, 29, 40, 0.4), rgba(11, 29, 40, 0.4)), url('bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 50px 20px 150px;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    color: white;
}

.app-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Top Navigation */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed from flex-start to center */
    position: relative;
    /* Added for absolute centering of logo */
    margin-bottom: 15px;
    /* Reduced to pull all content up */
}

.menu-icon {
    font-size: 26px;
    cursor: pointer;
    z-index: 2;
    /* Keep above logo if needed */
}

.logo-container {
    position: absolute;
    left: 50%;
    top: calc(50% - 10px);
    transform: translate(-50%, -50%);
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.5px;
    color: white;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.card-icon {
    width: 38px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
    color: #4285F4;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.payment-icon span {
    font-size: 10px;
    font-weight: 500;
}

/* Target Balances Section */
.target-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 10px;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.target-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.target-tab {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 6px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.target-tab.active {
    background: rgba(255, 255, 255, 0.85);
    color: #1a3a8f;
    /* Dark blue for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.target-amount {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0px;
    line-height: 1.1;
}

.target-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Shared Timer CSS */
.mdrt-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 5px;
}

.mdrt-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mdrt-timer-num {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mdrt-timer-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* Stats Grid (New 2-column Layout) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 16px;
    padding: 9px;
    /* Reduced vertical padding */
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-title {
    font-size: 9px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 12px;
    font-weight: 700;
    align-self: flex-start;
}

.stat-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

/* Leader's Dashboard Button */
.leader-dashboard-btn {
    width: 100%;
    margin-top: 35px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leader-dashboard-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 75px);
    justify-content: center;
    row-gap: 15px;
    column-gap: 18px;
    margin-bottom: 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.action-item span {
    font-size: 10px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 5px;
    min-height: 24px;
    /* Ensure alignment even if some wrap to two lines */
    display: flex;
    align-items: flex-end;
}

.action-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 16px;
    /* Keeping the iOS squircle shape */
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    transition: all 0.2s ease;
    box-shadow: none;
    color: white;
}

.action-item:hover .action-icon {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Page Top Bar */
.page-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.home-icon {
    position: absolute;
    right: 0;
    color: white;
    font-size: 22px;
    text-decoration: none;
}

/* Search Container */
.search-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px;
    border-radius: 25px;
    border: none;
    background-color: transparent;
    color: white;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px;
}

/* Add Button */
.add-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 40px;
    left: 0;
    padding: 0 20px;
}

.add-btn {
    width: 60%;
    max-width: 250px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form UI */
.back-icon {
    position: absolute;
    left: 0;
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.prospect-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    padding-left: 5px;
}

.input-container,
.select-container,
.date-container {
    position: relative;
    border-radius: 25px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.input-container,
.select-container {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.date-container.outline-date {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    justify-content: center;
}

.title-select {
    flex: 1;
}

.outline-date {
    flex: 1;
}

.form-icon {
    color: white;
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.input-container input,
.select-container select,
.date-container input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 15px;
    color: white;
    font-weight: 600;
}

.date-container input {
    color: white;
    text-align: center;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.select-container select {
    appearance: none;
    cursor: pointer;
}

/* Style for select options to make them readable on Windows */
.select-container select option {
    color: #333;
}

.select-container::after {
    display: none;
}

/* Checkbox */
.checkboxes-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container span {
    color: white;
    font-size: 15px;
}

.custom-checkbox {
    display: none;
}

.checkbox-label {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
}

.custom-checkbox:checked+.checkbox-label {
    background-color: white;
}

.custom-checkbox:checked+.checkbox-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4285F4;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Submit Button */
.submit-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.submit-btn {
    width: 60%;
    max-width: 250px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Inline Card Styles */
.inline-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    text-align: left;
    animation: slideDown 0.3s ease-out forwards;
    box-shadow: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.modal-add-btn,
.add-child-btn {
    width: 60%;
    max-width: 250px;
    margin: 5px auto 0 auto;
    display: block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-add-btn:hover,
.add-child-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Shared Tabs CSS ---------- */
.tabs-row {
    display: flex;
    gap: 10px;
    padding: 14px 10px 6px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.tabs-row::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    padding: 10px 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #4285F4;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tab-btn:hover:not(.active) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Appointment Page Specifics */
.appt-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.appt-panel {
    display: none;
    width: 100%;
    text-align: center;
}

.appt-panel.active {
    display: block;
}

.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-top: 80px;
    /* Push it down a bit towards the center */
}

.empty-state-card i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.appt-add-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}

.appt-add-btn {
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.appt-add-btn:hover {
    background: white;
    color: #4285F4;
}

/* Follow Up Page */
.search-bar-container {
    padding: 10px 15px;
    width: 100%;
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    color: white;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    padding: 0 15px;
}

/* To Do List Page */
.todo-date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.date-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.todo-date-picker {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    /* extra right padding for icon */
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    text-align: center;
    box-shadow: none;
    width: 135px;
}

.date-picker-icon {
    position: absolute;
    right: 12px;
    color: white;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.8;
}

/* Custom Flatpickr Theme for Glassmorphism (White) */
.flatpickr-calendar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 15px !important;
    font-family: 'Outfit', sans-serif !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #333 !important;
    background: transparent !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #333 !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #333 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #333 !important;
}

.flatpickr-day {
    color: #333 !important;
    border-radius: 50% !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #4285F4 !important;
    border-color: #4285F4 !important;
    color: white !important;
}

.flatpickr-day:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: transparent !important;
}

.flatpickr-weekday {
    color: #666 !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: rgba(255, 255, 255, 0.95) !important;
}

.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(0, 0, 0, 0.2) !important;
}

.todo-date-separator {
    color: white;
    font-weight: bold;
}

.todo-tabs {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.todo-tabs::-webkit-scrollbar {
    display: none;
}

.todo-tab {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 5px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.todo-tab.active {
    color: white;
    font-weight: 700;
    border-bottom: 2px solid white;
}

.todo-panel {
    display: none;
}

.todo-panel.active {
    display: block;
}

/* Custom Select UI */
.custom-select-ui {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    padding: 0 20px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-select-text::placeholder,
.custom-time-picker::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.custom-select-trigger.open {
    border-radius: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.custom-select-trigger .form-icon {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.custom-select-text {
    flex: 1;
}

.custom-select-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.custom-select-trigger.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    /* White glossy edge */
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    /* White glossy edge */
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 455px;
    padding-bottom: 15px;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nop-input-group .custom-select-options {
    top: calc(100% + 8px);
}

#spouseSection .custom-select-options {
    max-height: 367px;
}

.custom-select-options::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.custom-select-options.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

/* Fix for nested backdrop-filter bug in browsers when inside a glass box */
.calendar-glass-box .custom-select-options {
    background: rgba(45, 105, 190, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-select-option {
    padding: 12px 20px;
    color: white;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background: rgba(150, 200, 255, 0.2);
}

.custom-select-option:not(:last-child) {
    border-bottom: 1px solid rgba(150, 200, 255, 0.15);
}

.custom-select-option.selected {
    background: rgba(150, 200, 255, 0.25);
    font-weight: 600;
}

/* Login Page Specific Styles */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: calc(100vh - 80px);
    padding: 0 10px;
}

.login-logo {
    font-family: 'Lora', serif;
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    z-index: 10;
}

.login-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password {
    text-align: right;
    color: white;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    margin-top: 5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a8f;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.login-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.signup-link {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

.signup-link a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 455px;
    padding-bottom: 15px;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nop-input-group .custom-select-options {
    top: calc(100% + 8px);
}

#spouseSection .custom-select-options {
    max-height: 367px;
}

.custom-select-options::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.custom-select-options.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

/* Fix for nested backdrop-filter bug in browsers when inside a glass box */
.calendar-glass-box .custom-select-options {
    background: rgba(45, 105, 190, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-select-option {
    padding: 12px 20px;
    color: white;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background: rgba(150, 200, 255, 0.2);
}

.custom-select-option:not(:last-child) {
    border-bottom: 1px solid rgba(150, 200, 255, 0.15);
}

.custom-select-option.selected {
    background: rgba(150, 200, 255, 0.25);
    font-weight: 600;
}

/* Login Page Specific Styles */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: calc(100vh - 80px);
    padding: 0 10px;
}

.login-logo {
    font-family: 'Lora', serif;
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    z-index: 10;
}

.login-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-input:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password {
    text-align: right;
    color: white;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    margin-top: 5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a8f;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.login-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.signup-link {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

.signup-link a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}


/* Custom Calendar */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.calendar-glass-box,
.calendar-glass-box,
.clock-glass-box {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 22px !important;
    padding: 16px 18px !important;
    width: 90% !important;
    max-width: 330px !important;
    transform: none !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}
.clock-glass-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.calendar-header button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.calendar-header button:hover {
    background: rgba(255,255,255,0.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cal-year-label {
    cursor: pointer;
}

.cal-year-picker {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background: rgba(20, 50, 90, 0.95);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 50;
    width: 90px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cal-year-picker.open {
    display: block;
}

.cal-year-option {
    padding: 7px 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.cal-year-option:hover,
.cal-year-option.selected {
    background: rgba(255,255,255,0.2);
}

.cal-day:not(.empty):hover {
    background: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cal-day.selected {
    background: rgba(255, 255, 255, 0.9);
    color: #1a3a8f;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cal-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    outline: none;
    cursor: pointer;
    margin: 0 4px;
    font-family: inherit;
    text-align: center;
}

.cal-select option {
    color: #333;
    background: white;
}

.cal-dropdown-container {
    position: relative;
    display: inline-block;
    margin: 0 4px;
}

.cal-dropdown-trigger {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cal-dropdown-trigger:hover {
    background: transparent;
}

.cal-dropdown-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    min-width: 80px;
    flex-direction: column;
}

/* Fix for nested backdrop-filter bug in browsers when inside a glass box */
.calendar-glass-box .cal-dropdown-options {
    background: rgba(45, 105, 190, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cal-dropdown-options.show {
    display: flex;
}

.cal-dropdown-option {
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cal-dropdown-option:hover,
.cal-dropdown-option.active {
    background: rgba(255,255,255,0.1);
}

.cal-dropdown-option.active {
    background: #1a3a8f;
    color: white;
    font-weight: bold;
}


.cal-dropdown-options::-webkit-scrollbar {
    display: none;
}

.cal-dropdown-options {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Time Picker Styles */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Used by nop.html's "Add Cover" popup — kept separate from .custom-time-modal
   (the class name custom-time.js also uses for its own dynamically-created
   clock popup) since a second, more specific .custom-time-modal rule further
   down this file positions/z-indexes that clock popup differently, and the
   shared class name was causing the two to collide. */
.add-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.add-cover-overlay.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.custom-time-modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.time-glass-box {
    background: rgba(255, 255, 255, 0.15);
    /* Light bluish glass transparent */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(200, 230, 255, 0.5);
    /* Bluish glossy top edge */
    border-left: 1px solid rgba(200, 230, 255, 0.5);
    /* Bluish glossy left edge */
    box-shadow: 0 10px 40px rgba(0, 10, 40, 0.2), inset 0 0 15px rgba(100, 180, 255, 0.1);
    border-radius: 28px;
    padding: 20px;
    width: 92%;
    max-width: 360px;
    transform: scale(0.95);
    margin: 0 auto;
    color: white;
    /* White text */
}

.time-header {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.time-columns {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin-bottom: 20px;
    position: relative;
}



.time-column {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: 60px;
    text-align: center;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    z-index: 1;
    /* Stay above highlight box */
}

.time-column::-webkit-scrollbar {
    display: none;
}

.time-item {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    scroll-snap-align: center;
    opacity: 0.4;
    color: white;
    transition: opacity 0.3s, font-size 0.3s, text-shadow 0.3s;
    cursor: pointer;
}

.time-item.active {
    opacity: 1;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.time-colon {
    font-size: 24px;
    font-weight: bold;
    margin: 0 10px;
    font-size: 20px;
    font-weight: bold;
    margin: 0 5px;
}

.time-set-btn {
    display: block;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.time-set-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- Ticket Card --- */
.ticket-card {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
    width: 100%;
    position: relative;
}

.ticket-left {
    width: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.ticket-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.ticket-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    padding: 0 35px;
}

.ticket-datetime {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

.ticket-datetime:last-child {
    margin-bottom: 0;
}

.ticket-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ticket-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.3s, border-color 0.3s;
}

.ticket-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.ticket-delete-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.2s;
}

.ticket-delete-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Glass Modal --- */
.glass-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 20px;
    padding: 25px;
    width: 75%;
    max-width: 300px;
    text-align: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    animation: scaleUp 0.3s ease-out forwards;
}

.glass-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.glass-modal-text {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.glass-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.glass-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.glass-btn.ok-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.glass-btn.ok-btn:hover {
    background: white;
    color: #1a3a8f;
}

.glass-btn.cancel-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-btn.cancel-btn:hover {
    background: white;
    color: #1a3a8f;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* NOP Modal Styles */
#nopModal input::placeholder,
#addCoverModal input::placeholder,
#salesInterviewModal input::placeholder,
#rescheduleModal input::placeholder,
.nop-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

#nopModal select {
    color: white;
}

#nopModal option {
    color: #333;
}

.nop-input-group {
    position: relative;
    margin-bottom: 20px;
}

.nop-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    font-size: 18px;
    pointer-events: none;
}

.nop-input {
    width: 100%;
    border-radius: 20px;
    padding: 18px 15px 18px 55px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15); /* White glass tint */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.liquid-glass-btn {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.liquid-glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.3);
    background: transparent;
}



/* Fix for native time input styling on WebKit */
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    background: transparent !important;
}
input[type="time"]::-webkit-datetime-edit {
    color: white !important;
}
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
input[type="time"] {
    color-scheme: dark;
}

/* Custom Clock Time Picker Styles */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
.custom-time-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.calendar-glass-box,
.clock-glass-box {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 22px !important;
    padding: 16px 18px !important;
    width: 90% !important;
    max-width: 330px !important;
    transform: none !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}
.clock-glass-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.clock-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}
.clock-time-display {
    font-size: 48px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
}
.clock-time-display span {
    cursor: pointer;
    transition: color 0.3s;
}
.clock-time-display span.active {
    color: white;
    font-weight: 500;
}
.clock-colon {
    margin: 0 5px;
    color: white;
    cursor: default !important;
}
.clock-ampm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.clock-ampm div {
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}
.clock-ampm div.active {
    color: white;
}
.clock-body {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 15px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 4px 15px rgba(0,0,0,0.1);
}
.clock-face {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
    touch-action: none;
}
.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.clock-hand {
    position: absolute;
    bottom: 50%;
    left: calc(50% - 1px);
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent 15px, white 15px);
    transform-origin: bottom center;
    z-index: 4;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.clock-hand-circle {
    position: absolute;
    top: -15px;
    left: -14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 255, 255, 0.6);
}
.clock-numbers {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 6;
}
.clock-number {
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: white;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
}
.clock-number.active {
    color: #0f172a;
    font-weight: 800;
    transform: scale(1.15);
    text-shadow: none;
}
.clock-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
}
.clock-actions button {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.clock-actions button:hover { /* Use default glass-btn hover */
    
    transform: translateY(-2px);
}
.nop-new-label { color: white; font-weight: 600; font-size: 14px; margin-bottom: 8px; display: block; font-family: 'Outfit', sans-serif; text-align: left; }
.nop-new-input-container { position: relative; margin-bottom: 20px; }
.nop-new-input { width: 100%; border-radius: 25px; padding: 12px 15px 12px 45px; border: none; background: white; color: #4285F4; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 500; outline: none; box-sizing: border-box; }
.nop-new-input::placeholder { color: rgba(66, 133, 244, 0.7); }
.nop-new-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #4285F4; font-size: 16px; z-index: 2; }
.nop-new-btn { background: transparent; border: none; color: white; font-size: 18px; font-weight: 500; font-family: 'Outfit', sans-serif; cursor: pointer; margin-top: 10px; }

/* Custom Dropdown Overlap Prevention Styles */
.custom-select-wrapper:has(.custom-select-options.open) ~ button {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-select-wrapper:has(.custom-select-options.open) ~ div {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease;
}

/* Also for other custom selects to prevent overlaps */
.select-container.open ~ button,
.select-container.open ~ .form-group,
.select-container.open ~ .form-row {
    opacity: 0.15 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}

/* Rows below an open dropdown are hidden by custom-select.js via inline styles —
   sibling-combinator rules are not reliably re-applied here when the class toggles. */


/* Added for date picker inputs */
.liquid-glass-btn::placeholder, .custom-date-picker::placeholder {
    color: #ffffff;
    opacity: 1;
}

/* Fix for webkit autofill background for NOP inputs */
.nop-input:-webkit-autofill,
.nop-input:-webkit-autofill:hover, 
.nop-input:-webkit-autofill:focus, 
.nop-input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s !important;
    -webkit-text-fill-color: white !important;
}



/* -- Custom Time Picker --------------------------- */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
.custom-time-picker-modal.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
.ctp-box {
    background: rgba(20, 60, 100, 0.75);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 28px;
    padding: 20px 18px 16px;
    width: 92%;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.ctp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ctp-display {
    display: flex;
    align-items: center;
    gap: 2px;
}
.ctp-display-hour, .ctp-display-min {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.2s;
    line-height: 1;
}
.ctp-display-hour.active, .ctp-display-min.active {
    color: white;
    background: rgba(255,255,255,0.15);
}
.ctp-display-sep {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.ctp-ampm-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ctp-ampm-btn {
    width: 46px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.ctp-ampm-btn.selected {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    color: white;
}
.ctp-clock-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.ctp-clock {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
}
.ctp-clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    height: 2px;
    transform-origin: left center;
    transform: rotate(0deg);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    margin-top: -1px;
}
.ctp-hand-line {
    position: absolute;
    left: 0; top: 0;
    width: calc(100% - 14px);
    height: 100%;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}
.ctp-hand-dot {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
}
.ctp-clock-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 8px; height: 8px;
    background: white;
    border-radius: 50%;
    z-index: 5;
}
.ctp-num {
    position: absolute;
    transform: translate(-50%,-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.15s;
    z-index: 10;
}
.ctp-num:hover { background: rgba(255,255,255,0.15); color: white; }
.ctp-num.selected {
    background: rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.6);
}
.ctp-mode-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ctp-mode-btn {
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.55);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}
.ctp-mode-btn.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.ctp-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.ctp-cancel-btn, .ctp-ok-btn {
    padding: 9px 26px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.ctp-cancel-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.ctp-cancel-btn:hover { background: rgba(255,255,255,0.18); color: white; }
.ctp-ok-btn {
    background: rgba(255,255,255,0.22);
    color: white;
}
.ctp-ok-btn:hover { background: rgba(255,255,255,0.35); }

/* -- Custom Time Picker --------------------------- */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
.custom-time-picker-modal.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
.ctp-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    padding: 24px 20px 20px;
    width: 92%;
    max-width: 300px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    backdrop-filter: none;
}
.ctp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.ctp-display {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ctp-display-hour, .ctp-display-min {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}
.ctp-display-hour.active, .ctp-display-min.active {
    color: white;
}
.ctp-display-sep {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    line-height: 1;
}
.ctp-ampm-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}
.ctp-ampm-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.ctp-ampm-btn.selected {
    color: white;
}
.ctp-clock-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.ctp-clock {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
}
.ctp-clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    height: 2px;
    transform-origin: left center;
    transform: rotate(-90deg);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    margin-top: -1px;
    z-index: 2;
}
.ctp-hand-line {
    position: absolute;
    left: 0; top: 0;
    width: calc(100% - 14px);
    height: 100%;
    background: white;
    border-radius: 2px;
}
.ctp-hand-dot {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
}
.ctp-clock-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 5;
}
.ctp-num {
    position: absolute;
    transform: translate(-50%,-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 10;
}
.ctp-num.selected {
    /* No background needed since hand dot outlines it, but we keep the class for logic */
}
.ctp-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.ctp-cancel-btn, .ctp-ok-btn {
    padding: 10px 32px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    transition: all 0.2s;
    background: transparent;
    color: white;
}
.ctp-cancel-btn:hover, .ctp-ok-btn:hover { 
    background: rgba(255,255,255,0.1); 
}

/* -- Custom Time Picker --------------------------- */
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-calendar-modal,
.custom-time-modal,
.custom-time-picker-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10050 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 170px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.custom-calendar-modal.open,
.custom-time-modal.open,
.custom-time-picker-modal.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
.custom-time-picker-modal.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}
.ctp-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 20px 16px 16px;
    width: 90%;
    max-width: 260px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    backdrop-filter: none;
}
.ctp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ctp-display {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ctp-display-hour, .ctp-display-min {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 8px;
}
.ctp-display-hour.active, .ctp-display-min.active {
    color: white;
    background: rgba(255,255,255,0.15);
}
.ctp-display-sep {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
    line-height: 1;
}
.ctp-ampm-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}
.ctp-ampm-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
}
.ctp-ampm-btn.selected {
    color: white;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}
.ctp-clock-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.ctp-clock {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
}
.ctp-clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    height: 2px;
    transform-origin: left center;
    transform: rotate(-90deg);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    margin-top: -1px;
    z-index: 2;
}
.ctp-hand-line {
    position: absolute;
    left: 0; top: 0;
    width: calc(100% - 14px);
    height: 100%;
    background: white;
    border-radius: 2px;
}
.ctp-hand-dot {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
}
.ctp-clock-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 5;
}
.ctp-num {
    position: absolute;
    transform: translate(-50%,-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 10;
}
.ctp-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.ctp-cancel-btn, .ctp-ok-btn {
    padding: 8px 24px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    transition: all 0.2s;
    background: transparent;
    color: white;
}
.ctp-cancel-btn:hover, .ctp-ok-btn:hover { 
    background: rgba(255,255,255,0.1); 
}






/* Fix for removed emulator scrolling */
.phone-frame {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: transparent;
    /* Several modals (delete/reschedule/date/time pickers, alarm) are DOM
       siblings of .app-container rather than nested inside it, and use
       position:absolute + width:100% relative to .phone-frame. Without this
       max-width, .phone-frame spans the full browser viewport on wide
       screens, so those modals' dark overlays bleed past the phone mockup
       instead of staying within it. Capping .phone-frame itself to the same
       400px as .app-container keeps every modal correctly contained. */
}
.app-container {
    height: 100% !important;
    min-height: 100%;
}

.app-container:has(.scrollable-body) {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.fixed-header {
    padding: 50px 20px 0 20px;
    flex-shrink: 0;
    z-index: 100;
    background: transparent;
}

.scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding: 0px 20px 30px 20px;
}
.scrollable-body::-webkit-scrollbar {
    display: none;
}
.scrollable-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Remove blur globally for all pages as requested */
.glass-card, .liquid-glass-btn, .nav-item, .mdrt-card, .stat-card, .action-icon, .leader-dashboard-btn, .target-section, .target-tab, .opt-row, .dz-box, .mini-stat, .todo-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Enforce exact same height and spacing for top elements in fixed header across all pages */
.fixed-header > nav {
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
}

.fixed-header > .target-section {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Font Awesome Fallback Protection */
.fa-solid, .fa-regular, .fas, .far, .fa {
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block;
}

/* ============================================================
   Reschedule / date-time picker — responsive centering fix
   ------------------------------------------------------------
   The date-calendar and clock popups are full-screen overlays
   appended directly to .app-container. They previously opened
   pinned with padding-top:170px + align-items:flex-start, so on
   shorter phones the lower clock numbers and the OK/Cancel row
   were clipped (.app-container is overflow:hidden and the
   overlay didn't scroll).

   Here we vertically center them with a scroll-safe fallback:
   margin:auto centers the card, but collapses to 0 and lets the
   overlay scroll when the card is taller than the screen, so
   nothing is ever cut off. Scoped to `.app-container > ...`
   (direct-child overlays only) so the in-flow home calendar
   variant is not affected.
   ============================================================ */
.app-container > .custom-calendar-modal.open,
.app-container > .custom-time-modal.open {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 12px !important;      /* replaces the fixed 170px top */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.app-container > .custom-calendar-modal.open > .calendar-glass-box,
.app-container > .custom-time-modal.open > .clock-glass-box {
    margin: auto 0 !important;
    transform: translateY(-70px) scale(1.05) !important;
    transform-origin: center top !important;          /* vertical center, scroll-safe */
    flex: 0 0 auto !important;
}

/* Shrink the picker slightly on short/small screens so it fits
   fully without needing to scroll. transform:scale keeps the
   JS-positioned clock numbers correctly aligned (uniform scale). */
@media (max-height: 760px) {
    .app-container > .custom-calendar-modal.open > .calendar-glass-box,
    .app-container > .custom-time-modal.open > .clock-glass-box {
        transform: translateY(-65px) scale(0.96) !important;
        transform-origin: center top !important;
        transform-origin: center center !important;
    }
}
@media (max-height: 660px), (max-width: 340px) {
    .app-container > .custom-calendar-modal.open > .calendar-glass-box,
    .app-container > .custom-time-modal.open > .clock-glass-box {
        transform: translateY(-55px) scale(0.88) !important;
        transform-origin: center top !important;
        transform-origin: center center !important;
    }
}

/* When the appointments Reschedule / Sales pickers keep the header visible,
   push the popup down so it clears the title / tabs / search bar (no overlap).
   Still centered in the remaining space and scroll-safe on short screens. */
.app-container > .custom-calendar-modal.open.keep-header,
.app-container > .custom-time-modal.open.keep-header {
    padding-top: 65px !important;
    padding-bottom: 20px !important;
}

/* Align the clock hand's end-circle with the number ring (radius 95 on the
   240px face) so the selected number sits centered inside the pin. */
.clock-hand { height: 95px !important; }

/* Calendar month-nav header: lay out as [<]  Month Year  [>] in one row.
   (There was no .calendar-header rule, so prev/month/next stacked & hugged
   the left edge, looking cut off.) */
.calendar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.calendar-header > #cal-month-year {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Picker Modal (new-appointment.html, nop.html, etc.) - Positioned cleanly
   below the Name dropdown / Select Date field, top-anchored (not vertically
   centered like the reschedule/keep-header pickers above). Scoped to its own
   class so it doesn't affect the reschedule/keep-header behavior. */
.app-container > .custom-calendar-modal.open.form-picker-modal > .calendar-glass-box,
.app-container > .custom-time-modal.open.form-picker-modal > .clock-glass-box {
    margin: 0 auto !important;
    transform: scale(1.02) !important;
    transform-origin: center top !important;
}
.app-container > .custom-time-modal.open.form-picker-modal,
.custom-time-modal.open.form-picker-modal {
    padding-top: 250px !important;
    padding-bottom: 20px !important;
}
.app-container > .custom-calendar-modal.open.form-picker-modal,
.custom-calendar-modal.open.form-picker-modal {
    padding-top: 300px !important;
    padding-bottom: 20px !important;
}

/* NOP Commencement Date / Todo Date pickers (nop.html, follow-up.html's NOP
   modal, todo-list.html) - own class, own offset, kept separate from
   .form-picker-modal above so new-appointment.html's already-tuned 300px
   value is never touched when this one gets retuned. */
.app-container > .custom-calendar-modal.open.nop-form-picker-modal,
.custom-calendar-modal.open.nop-form-picker-modal {
    padding-top: 370px !important;
    padding-bottom: 20px !important;
}

/* Child Date Of Birth picker (new-prospect.html "Add Child" card). The
   Children section can be scrolled arbitrarily far down the page, so a
   fixed overlay padding-top can't reliably land near the field the way it
   does for the shorter modal-based pickers above. Instead this field's
   calendar is moved into the document flow right after the field itself
   (see mountChildCalendarInFlow in custom-calendar.js) - this class turns
   off the full-screen overlay positioning so it renders as a normal inline
   block there instead. */
.custom-calendar-modal.child-inline-picker {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    padding: 15px 0 5px !important;
    z-index: 1 !important;
}
