/* Custom Theme Styles for PWA Calendar */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(240, 249, 255, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(147, 197, 253, 0.7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.9);
}

/* =======================================================
   Card Design from extemp (Uiverse.io by Smit-Prajapati)
   ======================================================= */
.login-card {
    max-width: 440px;
    width: 100%;
    background: #F8F9FD;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(244, 247, 251) 100%);
    border-radius: 40px;
    padding: 30px 32px;
    border: 5px solid rgb(255, 255, 255);
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 30px 30px -20px;
    margin: 20px auto;
    position: relative;
    z-index: 10;
}

.login-split-card {
    max-width: 960px;
    width: 100%;
    background: #F8F9FD;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(244, 247, 251) 100%);
    border-radius: 40px;
    padding: 20px;
    border: 5px solid rgb(255, 255, 255);
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 30px 30px -20px;
    margin: 20px auto;
    position: relative;
    z-index: 10;
}

.login-card .heading,
.login-split-card .heading {
    text-align: center;
    font-weight: 900;
    font-size: 28px;
    color: rgb(16, 137, 211);
    letter-spacing: -0.5px;
}

.login-card .sub-heading,
.login-split-card .sub-heading {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.login-card .form,
.login-split-card .form {
    margin-top: 20px;
}

.login-card .form .input,
.login-split-card .form .input {
    width: 100%;
    background: white;
    border: none;
    padding: 14px 20px;
    border-radius: 20px;
    margin-top: 14px;
    box-shadow: #cff0ff 0px 10px 10px -5px;
    border-inline: 2px solid transparent;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

.login-card .form .input::-moz-placeholder,
.login-split-card .form .input::-moz-placeholder {
    color: rgb(170, 170, 170);
}

.login-card .form .input::placeholder,
.login-split-card .form .input::placeholder {
    color: rgb(170, 170, 170);
}

.login-card .form .input:focus,
.login-split-card .form .input:focus {
    outline: none;
    border-inline: 2px solid #12B1D1;
    box-shadow: #b3e7ff 0px 12px 14px -4px;
}

.login-card .form .forgot-password,
.login-split-card .form .forgot-password {
    display: block;
    margin-top: 10px;
    margin-left: 10px;
}

.login-card .form .forgot-password a,
.login-split-card .form .forgot-password a {
    font-size: 11px;
    color: #0099ff;
    text-decoration: none;
}

.login-card .form .login-button,
.login-split-card .form .login-button {
    display: block;
    width: 100%;
    font-weight: bold;
    background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
    color: white;
    padding-block: 14px;
    margin: 22px auto 10px;
    border-radius: 20px;
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 20px 10px -15px;
    border: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.login-card .form .login-button:hover,
.login-split-card .form .login-button:hover {
    transform: scale(1.03);
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 23px 10px -20px;
}

.login-card .form .login-button:active,
.login-split-card .form .login-button:active {
    transform: scale(0.95);
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 15px 10px -10px;
}

.login-card .agreement,
.login-split-card .agreement {
    display: block;
    text-align: center;
    margin-top: 18px;
}

.login-card .agreement a,
.login-split-card .agreement a {
    text-decoration: none;
    color: #0099ff;
    font-size: 11px;
    transition: color 0.2s;
}

.login-card .agreement a:hover,
.login-split-card .agreement a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Event bar global constraints - NEVER overflow cell or overlap adjacent days */
.event-bar {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1.15 !important;
}

.event-bar span,
.event-bar * {
    white-space: nowrap !important;
    overflow: hidden !important;
    line-height: 1.15 !important;
}

/* =======================================================
   Responsive View Styles (Mobile & iPad / Tablets)
   ======================================================= */
@media (max-width: 1023px) {
    .calendar-day-cell {
        padding: 2px 1px !important;
        overflow: hidden !important;
    }

    .calendar-week-row {
        min-height: 52px;
        overflow: hidden !important;
    }

    .event-bar {
        font-size: 10px !important;
        line-height: 1.15 !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        height: 18px !important;
        border-radius: 4px !important;
        gap: 2px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .event-bar span {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .calendar-day-cell span {
        font-size: 11px;
    }
}

/* iPad Landscape / Medium Desktop layout safeguards (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .calendar-week-row {
        min-height: 0;
    }

    .event-bar {
        font-size: 11px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
}