/* ==========================================================================
   SOLAR ERP — PREMIUM AUTHENTICATION DESIGN SYSTEM
   Brand Colors:
     --solar-primary: #1E3765 (Solar Navy)
     --solar-action-blue: #245EDB (Primary Action Blue)
     --solar-action-hover: #1D4ED8 (Darker Action Blue)
     --solar-secondary-blue: #4779CF (Secondary Blue)
     --solar-bg-light: #F5F7FB (Light Surface)
     --solar-border: #DCE3ED (Subtle Border Grey)
     --solar-text-primary: #18263D (Primary Dark Text)
     --solar-text-secondary: #667085 (Secondary Slate Text)
     --solar-white: #FFFFFF
   ========================================================================== */

:root {
    --solar-primary: #1D335B;
    --solar-primary-hover: #152748;
    --solar-action-blue: #1D335B;
    --solar-action-hover: #152748;
    --solar-secondary-blue: #4779CF;
    --solar-bg-light: #F5F7FB;
    --solar-border: #DCE3ED;
    --solar-text-primary: #18263D;
    --solar-text-secondary: #667085;
    --solar-white: #FFFFFF;
}

html, body {
    height: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Background video & subtle enterprise dark-blue contrast tint */
.login-page-bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;

    overflow: hidden;
}

.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay-tint {
    display: none !important;
}

.account-pages {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.login-split-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 80px;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Left Section: Brand Presentation
   -------------------------------------------------------------------------- */
.brand-presentation-section {
    color: #FFFFFF;
    padding-right: 40px;
    height: auto;
    max-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-top-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.brand-hero-logo {
    height: 48px;
    max-height: 48px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.brand-tagline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #93C5FD;
    margin: 0;
    display: inline-block;
}

.brand-orbit-connector {
    position: absolute;
    top: 20%;
    left: 48%;
    width: 150px;
    height: 75px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.85;
}

.brand-orbit-connector svg {
    width: 100%;
    height: 100%;
}

.brand-hero-content {
    margin: 8px 0 14px;
    padding: 0;
}

.brand-headline {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.brand-headline-accent {
    color: #38BDF8;
    text-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
}

.brand-description {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand-feature-cards {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 4px;
}

.brand-feature-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.brand-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.feature-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #2563EB;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.feature-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.feature-card-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    margin: 0;
}

.brand-footer-note {
    margin-top: 14px;
}

.brand-trust-badges {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 20px;
    color: #38BDF8;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.4));
}

.trust-text strong {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.trust-text span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Right Section: Premium Login Card
   -------------------------------------------------------------------------- */
.login-card-wrapper {
    max-width: 440px;
    width: 100%;
    margin-left: auto;
}

.modern-login-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid var(--solar-border) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-login-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
}

.modern-login-card .card-body {
    padding: 24px 28px 12px !important;
    position: relative;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.login-card-logo {
    max-height: 48px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.card-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
}

.card-brand-pill .pill-sun-icon {
    font-size: 13px;
    display: inline-block;
}

.card-brand-pill .pill-brand-name {
    color: #1E3765;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.card-brand-pill .pill-version {
    color: #94A3B8;
    font-weight: 600;
    font-size: 10px;
}

.login-card-head {
    text-align: center;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    color: #1D335B;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.login-subtitle {
    font-size: 12.5px;
    color: var(--solar-text-secondary);
    line-height: 1.45;
    margin-top: 3px;
}

/* Form inputs & labels */
.form-label-custom {
    font-size: 13px;
    font-weight: 600;
    color: var(--solar-text-primary);
    margin-bottom: 6px;
    display: block;
}

.input-group-custom {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid var(--solar-border);
    border-radius: 10px;
    padding: 0 14px;
    height: 46px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-custom:hover {
    border-color: #CBD5E1;
}

.input-group-custom:focus-within {
    background: #FFFFFF;
    border-color: #1D335B;
    box-shadow: 0 0 0 3px rgba(29, 51, 91, 0.15);
}

.input-icon-prefix {
    color: var(--solar-text-secondary);
    font-size: 14.5px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-group-custom .form-control-custom {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--solar-text-primary);
    padding: 10px 0;
    width: 100%;
    outline: none !important;
    box-shadow: none !important;
}

.input-group-custom .form-control-custom::placeholder {
    color: #94A3B8;
    font-size: 14px;
    font-weight: 400;
}

.toggle-password {
    color: var(--solar-text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.15s ease;
}

.toggle-password:hover {
    color: #1D335B;
}

/* Remember me & forgot password row */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.custom-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--solar-border);
    cursor: pointer;
    accent-color: #1D335B !important;
}

.custom-checkbox-wrap label {
    font-size: 13px;
    color: var(--solar-text-primary);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.forgot-link,
.forget-device-btn {
    font-size: 13px;
    font-weight: 600;
    color: #1D335B;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: #152748;
    text-decoration: underline;
}

.forget-device-btn {
    color: #DC2626;
}

.forget-device-btn:hover {
    color: #B91C1C;
}

/* Primary Login Button */
.btn-login-submit {
    background-color: #1D335B !important;
    color: #FFFFFF !important;
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    width: 100%;
    height: 48px;
    box-shadow: 0 4px 14px rgba(29, 51, 91, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit:hover:not(:disabled) {
    background-color: #152748 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 18px rgba(29, 51, 91, 0.35);
    transform: translateY(-1px);
}

.btn-login-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 51, 91, 0.2);
}

.btn-login-submit:disabled {
    cursor: wait;
    opacity: 0.85;
}

/* Divider & Secondary Mode Switch Button */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 0;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--solar-border);
}

.login-divider span {
    padding: 0 12px;
    color: #94A3B8;
}

.btn-otp-switch {
    height: 46px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #1E293B;
    font-size: 13.5px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-otp-switch:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    color: #1E3765;
    box-shadow: 0 3px 10px rgba(29, 51, 91, 0.08);
}

.btn.btn-otp-switch:hover,
.btn.btn-otp-switch:focus-visible,
.btn.btn-otp-switch:active {
    border: 1.5px solid #94A3B8 !important;
}

.btn.btn-otp-switch:focus-visible {
    outline: 3px solid rgba(29, 51, 91, 0.18);
    outline-offset: 2px;
}

.btn-otp-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.btn-otp-icon-badge.otp-phone-badge {
    background: #1D335B;
    color: #FFFFFF;
}

.otp-phone-badge .mdi-cellphone-key {
    font-size: 23px;
    line-height: 1;
    transform: scale(1.08);
}

.btn-otp-icon-badge.user-badge {
    background: #1D335B;
    color: #FFFFFF;
}

.btn-otp-switch-text {
    flex: 1;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.btn-otp-switch .arrow-icon {
    font-size: 17px;
    color: #64748B;
    transition: transform 0.2s ease;
}

.btn-otp-switch:hover .arrow-icon {
    transform: translateX(3px);
    color: #1D335B;
}

.btn-otp-switch:active {
    transform: translateY(0);
}

/* Dual OTP channel buttons (Email & WhatsApp) */
.otp-channel-buttons {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 6px;
}

.btn-otp-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 10px;
    line-height: 1;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-otp-channel i {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.btn-otp-channel span {
    line-height: 1;
}

.btn-otp-email {
    background: #FFFFFF;
    border: 1.5px solid #1D335B;
    color: #1D335B;
}

.btn-otp-email:hover {
    background: #F1F5F9;
    border-color: #152748;
    color: #152748;
}

.btn-otp-whatsapp {
    background: #1D335B;
    border: 1.5px solid #1D335B;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(29, 51, 91, 0.22);
}

.btn-otp-whatsapp:hover {
    background: #152748;
    border-color: #152748;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(29, 51, 91, 0.3);
}

.btn-otp-channel:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Decorative Bottom Artwork (Section 10)
   -------------------------------------------------------------------------- */
.card-bottom-artwork {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin: 14px -28px -12px;
    padding: 0;
    background: #FFFFFF;
    border-top: 0;
    min-height: 78px;
}

.card-bottom-artwork-image {
    display: block;
    width: 100%;
    height: 78px;
    object-fit: cover;
    object-position: center;
}

/* --------------------------------------------------------------------------
   WhatsApp OTP & Forgot-Password Verification Dialogs
   -------------------------------------------------------------------------- */
.otp-inputs-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 16px 0;
}

.otp-digit-box {
    width: 46px;
    height: 52px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--solar-primary);
    background: #F8FAFC;
    border: 1.5px solid var(--solar-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-digit-box:focus {
    border-color: var(--solar-action-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(36, 94, 219, 0.14);
}

.otp-digit-box.is-invalid {
    border-color: #DC2626;
    background: #FEF2F2;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid var(--solar-border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
}

.timer-label {
    color: var(--solar-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-clock {
    font-weight: 700;
    color: var(--solar-primary);
    font-variant-numeric: tabular-nums;
}

.timer-clock.expired {
    color: #DC2626;
}

.btn-verify-submit {
    background-color: var(--solar-action-blue);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 50px;
    box-shadow: 0 6px 18px rgba(36, 94, 219, 0.28);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-verify-submit:hover:not(:disabled) {
    background-color: var(--solar-action-hover);
    color: #FFFFFF;
    box-shadow: 0 8px 22px rgba(36, 94, 219, 0.35);
}

.btn-verify-submit:disabled {
    background-color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

.resend-section {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--solar-text-secondary);
}

.btn-resend-link {
    background: none;
    border: none;
    color: var(--solar-action-blue);
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.btn-resend-link:hover:not(:disabled) {
    color: var(--solar-action-hover);
}

.btn-resend-link:disabled {
    color: #94A3B8;
    text-decoration: none;
    cursor: not-allowed;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--solar-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.back-to-login:hover {
    color: var(--solar-action-blue);
}

.alert-custom {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
    align-items: center;
    gap: 8px;
}

.alert-custom.alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.alert-custom.alert-success {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

#forgotPasswordSection .input-group-custom {
    width: 100%;
}

#forgotPasswordSection .forgot-footer {
    border-top: 1px solid var(--solar-border);
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 12px;
}

/* --------------------------------------------------------------------------
   Company & Year Selection Dropdown (selectionForm)
   -------------------------------------------------------------------------- */
.precision-block {
    margin-bottom: 20px;
}

.precision-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--solar-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--solar-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.dropdown-header:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.custom-dropdown.active .dropdown-header {
    border-color: var(--solar-action-blue);
    box-shadow: 0 0 0 3px rgba(36, 94, 219, 0.14);
}

.selected-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--solar-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--solar-border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(24, 38, 61, 0.18);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.custom-dropdown.open-up .dropdown-content {
    top: auto;
    bottom: calc(100% + 5px);
    box-shadow: 0 -10px 25px rgba(24, 38, 61, 0.18);
}

.custom-dropdown.active .dropdown-content {
    display: block !important;
}

.dropdown-search-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--solar-border);
    font-size: 13px;
    outline: none;
}

.options-list {
    max-height: 200px;
    overflow: hidden;
    padding: 5px 0;
    margin: 0;
    list-style: none;
}

.options-list li {
    padding: 9px 15px;
    font-size: 13px;
    color: var(--solar-text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.options-list li:hover {
    background: #F1F5F9;
    color: var(--solar-action-blue);
}

.options-list li.selected {
    background: var(--solar-primary);
    color: #FFFFFF;
    font-weight: 600;
}

.header-actions {
    color: #94A3B8;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .brand-headline {
        font-size: 38px;
    }
    .login-split-container {
        padding: 24px 28px;
    }
}

@media (max-width: 991px) {
    html, body {
        overflow-y: auto !important;
    }
    .login-page-bg {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    .account-pages {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        padding: 24px 16px;
    }
    .brand-presentation-section {
        display: none !important;
    }
    .login-card-wrapper {
        margin: 20px auto;
        max-width: 440px;
    }
    .login-split-container {
        padding: 0;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .modern-login-card .card-body {
        padding: 28px 22px 18px !important;
    }
    .card-bottom-artwork {
        margin: 20px -22px -18px;
        padding: 0;
    }
    .brand-headline {
        font-size: 28px;
    }
    .otp-inputs-wrapper {
        gap: 6px;
    }
    .otp-digit-box {
        width: 40px;
        height: 46px;
    }
}

/* ==========================================================================
   Modern Toast Notifications (Solar ERP Standard Theme)
   ========================================================================== */
#toast-container {
    z-index: 9999999 !important;
    pointer-events: none !important;
}

#toast-container * {
    box-sizing: border-box !important;
    overflow: visible !important;
    max-height: none !important;
}

#toast-container.toast-top-right {
    top: 24px !important;
    right: 24px !important;
}

#toast-container > div {
    pointer-events: auto !important;
    position: relative !important;
    width: 380px !important;
    max-width: calc(100vw - 36px) !important;
    min-height: 56px !important;
    margin: 0 0 12px 0 !important;
    padding: 14px 40px 14px 58px !important;
    border-radius: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.15), 0 4px 10px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 3px !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: toastPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-container > div[style*="display: none"] {
    display: none !important;
}

#toast-container > div:hover {
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.18), 0 6px 14px -3px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
    transform: translateY(-2px) !important;
}

#toast-container > .toast-success {
    background-color: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 4px solid #10b981 !important;
}

#toast-container > .toast-error {
    background-color: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%) !important;
    border: 1px solid #fecaca !important;
    border-left: 4px solid #ef4444 !important;
}

#toast-container > .toast-warning {
    background-color: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 1px solid #fde68a !important;
    border-left: 4px solid #f59e0b !important;
}

#toast-container > .toast-info {
    background-color: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
}

#toast-container > div::before {
    content: '' !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    z-index: 2 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

#toast-container > div:has(.toast-title)::before {
    top: 15px !important;
    transform: none !important;
}

#toast-container > .toast-success::before {
    background-color: #ecfdf5 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

#toast-container > .toast-error::before {
    background-color: #fef2f2 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
}

#toast-container > .toast-warning::before {
    background-color: #fffbeb !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E") !important;
}

#toast-container > .toast-info::before {
    background-color: #eff6ff !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") !important;
}

#toast-container .toast-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

#toast-container > .toast-success .toast-title { color: #065f46 !important; }
#toast-container > .toast-error .toast-title { color: #991b1b !important; }
#toast-container > .toast-warning .toast-title { color: #92400e !important; }
#toast-container > .toast-info .toast-title { color: #1e40af !important; }

#toast-container .toast-message {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

#toast-container > .toast-success .toast-message { color: #047857 !important; }
#toast-container > .toast-error .toast-message { color: #b91c1c !important; }
#toast-container > .toast-warning .toast-message { color: #b45309 !important; }
#toast-container > .toast-info .toast-message { color: #1d4ed8 !important; }

#toast-container .toast-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    opacity: 0.7 !important;
    text-shadow: none !important;
    transition: all 0.15s ease !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
}

#toast-container .toast-close-button:hover {
    color: #0f172a !important;
    opacity: 1 !important;
    background: rgba(15, 23, 42, 0.05) !important;
}

#toast-container .toast-progress {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    opacity: 1 !important;
    border-radius: 0 0 12px 12px !important;
    z-index: 4 !important;
}

#toast-container > .toast-success .toast-progress { background: linear-gradient(90deg, #10b981, #34d399) !important; }
#toast-container > .toast-error .toast-progress { background: linear-gradient(90deg, #ef4444, #f87171) !important; }
#toast-container > .toast-warning .toast-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24) !important; }
#toast-container > .toast-info .toast-progress { background: linear-gradient(90deg, #3b82f6, #60a5fa) !important; }
