/* Frontend Styles */
body.lr-coming * {
    margin: 0;
    padding: 0
}

body.lr-coming {
    font-family: Georgia, Arial, Helvetica, Sans Serif;
    font-size: 65.5%
}

body.lr-coming a {
    color: #fff
}

body.lr-coming a:hover {
    color: #0092BF
}

body.lr-coming #header {
    color: #333;
    padding: 1.5em;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 1px solid #fff;
    z-index: 9;
    position: relative
}

body.lr-coming #content {
    font-size: 150%;
    width: 605px;
    margin: 100px auto 0;
    padding: 5% 0;
    text-align: center;
    position: relative;
    z-index: 9
}

body.lr-coming::after {
    display: block;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(0, 0, 0, 0.7)
}

body.lr-coming #content p {
    font-size: 21px;
    padding: .8em 0;
    line-height: 32px;
    color: #fff
}

body.lr-coming h1,
body.lr-coming h2 {
    color: #08658F
}

body.lr-coming h2 a {
    color: #fff;
    font-size: 30px;
}

body.lr-coming h1 {
    font-size: 40px;
    padding: .5em 0
}

body.lr-coming ul.social {
    margin-top: 30px;
}

body.lr-coming ul.social li {
    display: inline-block;
    margin-right: 10px
}

body.lr-coming ul.social li a img {
    width: 38px
}

body.lr-coming img {
    max-width: 100%;
    width: auto\9;
    height: auto;
    border: 0
}

@media (max-width:767px) {
    body.lr-coming #content {
        width: 100% !important;
        margin: 50px auto 0;
    }

    body.lr-coming #content p {
        font-size: 18px;
        line-height: 27px;
    }
}

/* Backend Settings Switch Styles */
.lecsp-timer-switch {
    display: inline-flex;
    background: #f0f0f1;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 2px;
    user-select: none;
}

.lecsp-switch-label {
    cursor: pointer;
    margin: 0;
    display: inline-block;
}

.lecsp-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lecsp-switch-text {
    display: inline-block;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
}

.lecsp-switch-input:checked+.lecsp-switch-text.on-text {
    background-color: #2271b1;
    color: #ffffff;
}

.lecsp-switch-input:checked+.lecsp-switch-text.off-text {
    background-color: #d63638;
    color: #ffffff;
}

.lecsp-switch-input:not(:checked)+.lecsp-switch-text {
    color: #2c3338;
    background-color: transparent;
}

.lecsp-switch-label:hover .lecsp-switch-input:not(:checked)+.lecsp-switch-text {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Timer Input Fields styling */
.lecsp-time-input-group {
    display: inline-flex;
    align-items: flex-start;
    align-items: center;
    gap: 8px;
}

.lecsp-time-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lecsp-time-input {
    width: 55px !important;
    text-align: center;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    padding: 0 4px !important;
    line-height: 34px !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    height: 36px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.lecsp-time-select {
    width: 75px !important;
    height: 36px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 34px !important;
    text-indent: 0px !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M7.41%208.59L12%2013.17l4.59-4.58L18%2010l-6%206-6-6%201.41-1.41z%22%20fill%3D%22%232c3338%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 16px 16px !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.lecsp-time-select option {
    text-align: center !important;
}

.lecsp-time-colon {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #3c434a !important;
    height: 36px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    margin-top: 0 !important;
}

.lecsp-time-label {
    font-size: 11px !important;
    color: #646970 !important;
    margin-top: 6px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

tr.lecsp-timer-only-field {
    display: none;
}

/* Admin Bar Maintenance Mode Indicator Styles */
#wp-admin-bar-lecsp-maintenance-status .ab-item {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

#wp-admin-bar-lecsp-maintenance-status:hover .ab-item {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

#wp-admin-bar-lecsp-maintenance-status .lecsp-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: lecsp-pulse 1.6s infinite;
    transition: all 0.3s ease;
}

#wp-admin-bar-lecsp-maintenance-status:hover .lecsp-pulse-dot {
    background-color: #ffffff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes lecsp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Custom jQuery UI Datepicker & Input Styling */
.lecsp-datepicker-input {
    width: 130px !important;
    height: 36px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    padding: 0 10px !important;
    line-height: 34px !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    margin: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.ui-datepicker {
    z-index: 99999 !important;
    background: #ffffff !important;
    border: 1px solid #ccd0d4 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    width: 260px !important;
    box-sizing: border-box !important;
}

.ui-datepicker-header {
    position: relative !important;
    background: #2271b1 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 6px 0 !important;
    height: 30px !important;
    box-sizing: border-box !important;
}

.ui-datepicker-title {
    margin: 0 30px !important;
    line-height: 18px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    height: 100% !important;
}

.ui-datepicker-title select {
    padding: 2px 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    border: 1px solid #ccd0d4 !important;
    background: #ffffff !important;
    color: #1d2327 !important;
    margin: 0 !important;
    height: 24px !important;
    line-height: 1 !important;
    display: inline-block !important;
    width: auto !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
}

.ui-datepicker-prev {
    left: 6px !important;
}

.ui-datepicker-next {
    right: 6px !important;
}

.ui-datepicker-prev-hover,
.ui-datepicker-next-hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    text-indent: -99999px !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.ui-datepicker-next span {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.ui-datepicker-calendar {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 8px 0 0 0 !important;
}

.ui-datepicker th {
    font-weight: 600 !important;
    color: #50575e !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    padding: 6px 0 !important;
    border: none !important;
}

.ui-datepicker td {
    padding: 2px !important;
    border: none !important;
}

/* Base day styles */
.ui-datepicker td a {
    text-align: center !important;
    border: none !important;
    background: #f6f7f7 !important;
    color: #1d2327 !important;
    border-radius: 4px !important;
    padding: 6px 0 !important;
    display: block !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* Today's date styling (distinct highlight when not active/selected) */
.ui-datepicker-today a {
    background: #e5f3ff !important;
    border: 1px solid #2271b1 !important;
    color: #2271b1 !important;
    font-weight: bold !important;
}

/* Hover styles for all days (including today) */
.ui-datepicker td a:hover {
    background: #2271b1 !important;
    color: #ffffff !important;
}

/* Active / Selected day styling */
.ui-datepicker-current-day a {
    background: #2271b1 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border: 1px solid #2271b1 !important;
}

/* Custom Flatpickr Theme Styling */
.lecsp-datepicker-input {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.lecsp-datepicker-input:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2) !important;
    outline: none !important;
}

.flatpickr-calendar {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    width: 307.875px !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Months Header styling */
.flatpickr-months {
    padding: 4px 0 10px 0 !important;
}

.flatpickr-months .flatpickr-month {
    color: #1d2327 !important;
    fill: #1d2327 !important;
    height: 34px !important;
}

.flatpickr-current-month {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
}

.flatpickr-current-month .numInputWrapper {
    width: 6ch !important;
}

.flatpickr-current-month input.cur-year {
    font-weight: 600 !important;
}

.flatpickr-monthDropdown-months {
    font-weight: 600 !important;
    color: #1d2327 !important;
    background: transparent !important;
    border: none !important;
    font-size: 15px !important;
}

/* Navigation Arrows styling */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 5px !important;
    padding: 8px !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease, fill 0.2s ease !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background-color: #f0f0f1 !important;
    color: #2271b1 !important;
    fill: #2271b1 !important;
}

/* Weekdays styling */
span.flatpickr-weekday {
    font-weight: 600 !important;
    color: #8c8f94 !important;
    font-size: 12px !important;
}

/* Day Container and Days styling */
.flatpickr-day {
    border-radius: 8px !important;
    color: #2c3338 !important;
    font-size: 13px !important;
    max-width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

/* Hover style for days */
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    background: #f0f6fc !important;
    border-color: #2271b1 !important;
    color: #2271b1 !important;
}

/* Today's style */
.flatpickr-day.today {
    border-color: #2271b1 !important;
    color: #2271b1 !important;
    font-weight: bold !important;
}

.flatpickr-day.today:hover {
    background: #2271b1 !important;
    color: #ffffff !important;
}

/* Selected day style */
.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
    background: #2271b1 !important;
    color: #ffffff !important;
    border-color: #2271b1 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.3) !important;
}

/* Disable days */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #dcdcde !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* Frontend Countdown Timer Styles */
.lecsp-timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px auto;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lecsp-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.lecsp-timer-number {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
}

.lecsp-timer-label {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
    margin-top: 10px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
    .lecsp-timer-wrapper {
        gap: 20px;
        margin: 30px auto;
    }

    .lecsp-timer-item {
        min-width: 70px;
    }

    .lecsp-timer-number {
        font-size: 44px;
    }

    .lecsp-timer-label {
        font-size: 13px;
        margin-top: 6px;
    }
}

/* Settings Page dynamic field toggling */
.lecsp-bg-type-video tr.lecsp-image-only-field {
    display: none;
}
.lecsp-bg-type-image tr.lecsp-video-only-field {
    display: none;
}

/* Spin animation */
@keyframes lecsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}