/* ======================================================= */
/* 1. CSS GỐC (MENU MOBILE, THEME, HEADER...)              */
/* ======================================================= */

#menu_header_mobile {
    position: fixed;
    top: 0;
    left: 100%;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0s 0.3s;
}

#menu_header_mobile.active {
    left: 0;
    transition: left 0s;
}

#menu_header_mobile>ul {
    position: absolute;
    right: 0;
    width: 300px;
    height: 100vh;
    padding-top: 50px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#menu_header_mobile.active>ul {
    transform: translateX(0);
}

#close-menu-mobile {
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#menu_header_mobile.active #close-menu-mobile {
    opacity: 1;
}

.dark #close-menu-mobile svg {
    fill: #d9d1d1;
}

#mobile-menu-list>li {
    padding: 0 10px;
    border-bottom: none;
}

#mobile-menu-list>li>a,
#mobile-menu-list>li>button {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    padding: 0.5rem 0;
}

/* --- MOI THEM: CSS CHO AVATAR MOBILE --- */
#mobile-menu-list .auth-user button {
    display: flex;
    align-items: center;
    padding: 12px 0;
    width: 100%;
}

#mobile-menu-list .auth-user button img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
}

#mobile-menu-list .auth-user .user-name-span {
    font-weight: 700;
    color: #0ea5e9;
    flex: 1;
    text-align: left;
}

/* --------------------------------------- */

/* --- MOI THEM: CSS FIX DROPDOWN USER DESKTOP --- */
.auth-user .sub-menu {
    width: auto !important;
    min-width: 200px !important;
    right: 0;
    left: auto;
}

.auth-user .sub-menu a {
    white-space: nowrap !important;
    display: block;
    width: 100%;
}

/* ----------------------------------------------- */

.has_sub_menu_mobile svg {
    margin-top: 4px;
    transition: transform 0.2s ease-in-out;
    color: rgb(167 139 250);
    margin-left: 0.5rem;
}

.has_sub_menu_mobile.open>button svg {
    transform: rotate(180deg);
}

.sub-menu-mobile {
    display: none;
    margin-top: 0.5rem;
    padding: 0.25rem;
}

.has_sub_menu_mobile.open .sub-menu-mobile {
    display: block;
}

.sub-menu-mobile-grid {
    display: flex;
    flex-wrap: wrap;
}

.sub-menu-mobile-grid a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 0.375rem;
    color: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.sub-menu-mobile-grid a:hover {
    background-color: #8B5CF6;
    color: white;
}

.sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Thêm quy tắc hover cho Desktop để user menu hoạt động mượt mà hơn */
.has-dropdown:hover .sub-menu,
.sub-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a,
.sub-menu li {
    font-weight: normal;
}

.movie-title,
thead th {
    white-space: nowrap;
}

#movie-list-body td {
    white-space: nowrap;
    vertical-align: middle;
}

.dark .pagination .page-item:not(:active) .page-link {
    background-color: rgb(30 41 59 / 1);
    color: rgb(148 163 184 / 1);
    border-color: rgb(51 65 85 / 1);
}

.dark .pagination .page-item:not(:active) .page-link:hover {
    background-color: rgb(51 65 85 / 1);
}

.dark .pagination .page-item.active .page-link {
    background-color: #00366f;
    border-color: #00366f;
    color: white;
}

.dark .pagination .page-item.disabled .page-link {
    background-color: rgb(15 23 42 / 1) !important;
}

html {
    scroll-behavior: smooth !important;
}

nav.hidden.xl\:block .has-dropdown button svg {
    color: rgb(167 139 250);
}

#theme-toggle-button svg {
    color: currentColor;
}

#form-search-mobile {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#form-search-mobile.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* ======================================================= */
/* 3. AUDIO VISUALIZER ANIMATION (SÓNG NHẠC NHẢY)          */
/* ======================================================= */
.playing-icon {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    margin-right: 6px;
    padding-bottom: 2px;
}

.playing-icon span {
    display: block;
    width: 3px;
    background-color: #22c55e;
    border-radius: 1px;
    animation: audio-wave 1s infinite ease-in-out;
}

.playing-icon span:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.playing-icon span:nth-child(2) {
    height: 8px;
    animation-delay: 0.2s;
}

.playing-icon span:nth-child(3) {
    height: 6px;
    animation-delay: 0.4s;
}

@keyframes audio-wave {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 14px;
    }
}

/* ======================================================= */
/* 4. CSS CHO MODAL PLAYER (COMMON & DESKTOP)              */
/* ======================================================= */

.player-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 80;
    width: 40px;
    height: 40px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.player-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Sidebar Desktop */
#desktop-sidebar {
    width: 480px;
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #333;
    background-color: rgb(38, 38, 38);
    transition: width 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
}

#modal-player-overlay.is-full-screen #desktop-sidebar {
    width: 0 !important;
    border: none;
    opacity: 0;
}

/* Header của Sidebar Desktop */
#desktop-sidebar .sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(38, 38, 38);
}

/* Nút toggle sidebar */
.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 70;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: none;
}

#modal-player-overlay.is-full-screen .sidebar-toggle-btn {
    display: flex;
}

/* Mũi tên điều hướng */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    display: none;
}

@media (min-width: 769px) {
    .nav-arrow {
        display: block;
    }
}

.nav-arrow:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.2);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* LIST SERVER DESKTOP */
#modal-server-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid #333;
    background-color: rgb(38, 38, 38);
}

.modal-server-btn {
    text-align: center;
    padding: 15px 10px;
    background: transparent;
    color: #888;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #3c3c3c;
}

.modal-server-btn:hover {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-server-btn.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    background: rgba(0, 0, 0, 0.2);
}

#modal-movie-title {
    margin: 0;
    color: white;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal-episode-count {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    margin: 0;
    display: block;
}

/* LIST TẬP PHIM DESKTOP */
#modal-episode-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
    background-color: rgb(38, 38, 38);
    flex-grow: 1;
    align-content: flex-start;
}

#modal-episode-list::-webkit-scrollbar {
    width: 6px;
}

#modal-episode-list::-webkit-scrollbar-track {
    background: rgb(32, 32, 32);
}

#modal-episode-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

/* NÚT TẬP PHIM DESKTOP */
.modal-ep-btn {
    height: 45px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-ep-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #3b82f6;
}

.modal-ep-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.modal-ep-btn.active .playing-icon {
    position: absolute;
    bottom: 4px;
    left: 6px;
    margin: 0;
    height: 16px;
    gap: 3px;
}

.modal-ep-btn.active .playing-icon span {
    width: 4px;
    background-color: #4ade80;
}

@keyframes audio-wave {

    0%,
    100% {
        height: 6px;
    }

    50% {
        height: 16px;
    }
}

/* ======================================================= */
/* 5. MOBILE PLAYER & BOTTOM SHEET                         */
/* ======================================================= */
#mobile-player-controls {
    display: none;
}

#mobile-bottom-sheet {
    display: none;
}

/* MEDIA QUERY CHO ĐIỆN THOẠI DỌC (PORTRAIT) */
@media (max-width: 768px) {
    #desktop-sidebar {
        display: none !important;
    }

    .nav-arrow {
        display: none !important;
    }

    .player-close-btn {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
    }

    .player-close-btn svg {
        width: 18px;
        height: 18px;
    }

    #mobile-player-controls {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 60;
    }

    .mobile-player-info {
        position: absolute;
        /* CẬP NHẬT: Nâng lên cao (130px) */
        bottom: 130px;
        left: 15px;
        right: 60px;
        pointer-events: auto;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }

    .mobile-player-info h3 {
        color: white;
        font-size: 1rem;
        font-weight: 700;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-player-info p {
        color: #ddd;
        font-size: 0.8rem;
        margin: 2px 0 0 0;
    }

    .mobile-playlist-toggle {
        position: absolute;
        /* CẬP NHẬT: Nâng lên cao (150px) */
        bottom: 150px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        pointer-events: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 65;
    }

    .mobile-ep-counter {
        position: absolute;
        /* CẬP NHẬT: Nâng lên cao (195px) */
        bottom: 195px;
        right: 15px;
        color: white;
        font-size: 12px;
        font-weight: bold;
        text-shadow: 0 1px 2px black;
    }

    /* BOTTOM SHEET */
    #mobile-bottom-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70vh;
        background-color: #1f1f1f;
        z-index: 99999;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;
    }

    #mobile-bottom-sheet.active {
        transform: translateY(0);
    }

    .mbs-header {
        padding: 15px;
        border-bottom: 1px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        background: #252525;
    }

    .mbs-title h3 {
        color: white;
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 700;
        margin: 0;
    }

    .mbs-title p {
        color: #888;
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: bold;
        margin: 2px 0 0 0;
    }

    .mbs-close {
        background: none;
        border: none;
        color: #aaa;
        cursor: pointer;
        padding: 5px;
    }

    .mbs-servers {
        padding: 10px 15px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        background: #1f1f1f;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mbs-servers::-webkit-scrollbar {
        display: none;
    }

    .mbs-server-btn {
        background-color: #333;
        border: 1px solid #444;
        border-radius: 8px;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mbs-server-btn.active {
        background-color: #444;
        border-color: #666;
    }

    .mbs-server-name {
        color: #ddd;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .mbs-server-badge {
        background-color: #854d0e;
        color: #fef3c7;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 6px;
    }

    .mbs-episodes {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        align-content: start;
    }

    /* NÚT TẬP PHIM MOBILE */
    .mbs-ep-btn {
        height: 45px;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: white;
        font-size: 15px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mbs-ep-btn:active,
    .mbs-ep-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border-color: #3b82f6;
    }

    .mbs-ep-btn.active {
        background-color: #007bff;
        border-color: #007bff;
        color: white;
    }

    .mbs-ep-btn.active .playing-icon {
        position: absolute;
        bottom: 4px;
        left: 6px;
        margin: 0;
        height: 16px;
        gap: 3px;
    }

    .mbs-ep-btn.active .playing-icon span {
        width: 4px;
        background-color: #4ade80;
    }

    .mbs-footer {
        padding: 10px 15px;
        border-top: 1px solid #333;
        text-align: right;
        background: #252525;
    }

    .mbs-footer-close {
        color: #ff4d4f;
        font-weight: 600;
        background: none;
        border: none;
        font-size: 1rem;
    }
}

/* ======================================================= */
/* 6. XỬ LÝ CHO ĐIỆN THOẠI QUAY NGANG (LANDSCAPE)          */
/* ======================================================= */
@media (max-width: 1023px) and (orientation: landscape) {

    /* 1. Bắt buộc ẩn giao diện Desktop (Sidebar) */
    #desktop-sidebar {
        display: none !important;
    }

    .nav-arrow {
        display: none !important;
    }

    /* 2. Bắt buộc hiển thị giao diện Mobile */
    #mobile-player-controls {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 60;
    }

    /* 3. Định vị lại các nút cho màn hình ngang (chiều cao thấp) */

    /* FIX LỖI KHÔNG BẤM ĐƯỢC: DÙNG FIXED ĐỂ THOÁT KHỎI CONTAINER */
    .mobile-playlist-toggle {
        display: flex !important;
        position: fixed;
        /* CẬP NHẬT: Nâng lên 90px */
        bottom: 90px;
        right: 20px;
        /* Sát phải */
        width: 45px;
        height: 45px;
        /* Tăng kích thước một chút cho dễ bấm */
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        color: white;

        /* BẮT BUỘC CÓ ĐỂ BẤM ĐƯỢC TRÊN MOBILE */
        pointer-events: auto !important;
        cursor: pointer;
        z-index: 2147483647;
        /* Max Z-Index để luôn nằm trên cùng */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    /* Hiệu ứng khi bấm nút */
    .mobile-playlist-toggle:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }

    /* Thông tin phim nằm góc dưới trái */
    .mobile-player-info {
        position: absolute;
        /* CẬP NHẬT: Hạ thấp xuống sát đáy (5px) để tránh nút Jump Play */
        bottom: 5px;
        left: 20px;
        width: auto;
        max-width: 60%;
        pointer-events: auto;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    }

    .mobile-player-info h3 {
        font-size: 1.1rem;
        color: white;
        margin: 0;
    }

    .mobile-player-info p {
        font-size: 0.9rem;
        color: #ddd;
        margin: 0;
    }

    /* Số tập nằm trên nút danh sách */
    .mobile-ep-counter {
        position: fixed;
        /* CẬP NHẬT: Nâng lên 145px */
        bottom: 145px;
        right: 20px;
        color: white;
        font-size: 12px;
        font-weight: bold;
        text-shadow: 0 1px 2px black;
        z-index: 2147483647;
    }

    /* 4. KÍCH HOẠT HIỂN THỊ BOTTOM SHEET TRONG LANDSCAPE */
    /* QUAN TRỌNG: Copy style hiển thị từ Portrait sang để nó hiện ra */
    #mobile-bottom-sheet {
        display: flex !important;
        /* Ghi đè display:none mặc định */
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #1f1f1f;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;

        /* Cấu hình riêng cho landscape */
        height: 90vh !important;
        z-index: 2147483647 !important;
    }

    #mobile-bottom-sheet.active {
        transform: translateY(0);
    }

    /* Các thành phần con của Bottom Sheet */
    .mbs-header {
        padding: 10px 15px;
        border-bottom: 1px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        background: #252525;
    }

    .mbs-title h3 {
        color: white;
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
    }

    .mbs-title p {
        color: #888;
        font-size: 0.8rem;
        font-weight: bold;
        margin: 0;
    }

    .mbs-close {
        background: none;
        border: none;
        color: #aaa;
        cursor: pointer;
        padding: 5px;
    }

    .mbs-servers {
        padding: 8px 15px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        background: #1f1f1f;
    }

    .mbs-servers::-webkit-scrollbar {
        display: none;
    }

    .mbs-server-btn {
        background-color: #333;
        border: 1px solid #444;
        border-radius: 6px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

    .mbs-server-btn.active {
        background-color: #444;
        border-color: #666;
    }

    .mbs-server-name {
        color: #ddd;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .mbs-server-badge {
        background-color: #854d0e;
        color: #fef3c7;
        font-size: 0.7rem;
        padding: 1px 6px;
        border-radius: 4px;
    }

    .mbs-episodes {
        flex: 1;
        overflow-y: auto;
        padding: 10px 15px;
        display: grid;
        /* Chia 6 cột để tận dụng chiều ngang */
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 8px;
        align-content: start;
    }

    .mbs-ep-btn {
        height: 40px;
        background-color: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        color: white;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mbs-ep-btn.active {
        background-color: #007bff;
        border-color: #007bff;
        color: white;
    }

    .mbs-ep-btn.active .playing-icon {
        position: absolute;
        bottom: 3px;
        left: 4px;
        margin: 0;
        height: 14px;
        gap: 2px;
    }

    .mbs-ep-btn.active .playing-icon span {
        width: 3px;
        background-color: #4ade80;
    }

    .mbs-footer {
        padding: 8px 15px;
        border-top: 1px solid #333;
        text-align: right;
        background: #252525;
    }

    .mbs-footer-close {
        color: #ff4d4f;
        font-weight: 600;
        background: none;
        border: none;
        font-size: 0.9rem;
    }
}

/* ======================================================= */
/* 7. TOAST NOTIFICATION CSS                               */
/* ======================================================= */
#toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    background-color: white;
    border-left: 4px solid;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out forwards;
    transition: opacity 0.3s ease;
}

.toast.toast-success {
    border-color: #22c55e;
}

.toast.toast-success .toast-icon {
    color: #22c55e;
}

.toast.toast-error {
    border-color: #ef4444;
}

.toast.toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.875rem;
    color: #666;
}

/* Dark Mode support */
.dark .toast {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dark .toast-title {
    color: #f1f5f9;
}

.dark .toast-message {
    color: #cbd5e1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}