
/* ============================
   MASTER IMPORTS (LOAD FIRST)
============================ */
@import url("platform-star-tag-all.css");
@import url("other-all.css");



/* =========================
   YOUR ORIGINAL ADMIN CSS
 ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}



/* THEME TOKENS */
.admin-layout {
    min-height: 100vh;
    display: flex;
    --bg-page: #f5f7fb;
    --bg-card: #ffffff;
    --bg-topbar: #ffffff;

    --sidebar-bg: #020617;
    --sidebar-border: #1e293b;
    --sidebar-text: #cbd5f5;
    --sidebar-muted: #64748b;
    --sidebar-active-bg: #0f172a;
    --sidebar-active-border: #38bdf8;
    --sidebar-active-text: #e5f2ff;

    --text-main: #0f172a;
    --text-muted: #6b7280;

    --border-subtle: #e5e7eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.12);
}



/* DARK THEME OVERRIDE */
.admin-layout[data-theme="dark"] {
    --bg-page: #020617;
    --bg-card: #020617;
    --bg-topbar: #020617;

    --sidebar-bg: #020617;
    --sidebar-border: #111827;
    --sidebar-text: #e5e7eb;
    --sidebar-muted: #6b7280;
    --sidebar-active-bg: #0b1120;
    --sidebar-active-border: #38bdf8;
    --sidebar-active-text: #e0f2fe;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;

    --border-subtle: #1f2937;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
}


/* SIDEBAR */
.admin-sidebar {
    width: 180px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    color: var(--sidebar-text);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: width 0.18s ease-out;
}

.admin-layout.sidebar-collapsed .admin-sidebar {
    width: 78px;
}

.icon {
    width: 20px;
    height: 20px;
}

/* brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 14px;
    text-decoration: none;
    color: inherit;
}



.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 0, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfdf5;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 14px;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--sidebar-muted);
}

/* nav */
.sidebar-nav {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section-label {
    margin: 12px 8px 4px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 4px;
    border-radius: 999px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    transition: background .16s ease, color .16s ease, transform .08s ease, border-color .16s ease;
    border: 1px solid transparent;
}

.sidebar-icon {
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-text {
    white-space: nowrap;
}

.admin-layout.sidebar-collapsed .sidebar-text,
.admin-layout.sidebar-collapsed .brand-text,
.admin-layout.sidebar-collapsed .sidebar-section-label {
    display: none;
}

.sidebar-link:hover {
    background: var(--sidebar-active-bg);
    transform: translateY(-1px);
}

.sidebar-link.is-active {
    background: var(--sidebar-active-bg);
    border-color: var(--sidebar-active-border);
    color: var(--sidebar-active-text);
}

/* BACKDROP (mobile) */
.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease-out;
    z-index: 35;
}

.admin-layout.mobile-sidebar-open .admin-backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* MAIN AREA */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
}

/* TOPBAR */
.admin-topbar {
    height: 64px;
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.topbar-link-front {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.topbar-slash {
    font-size: 13px;
    color: var(--text-muted);
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

/* topbar right */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    border: none;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, transform .08s ease;
}

.icon-btn:hover {
    background: rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97316;
    position: relative;
    top: -9px;
    right: -9px;
}

/* theme icons */
.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: opacity .16s ease, transform .16s ease;
}

.theme-icon-moon { opacity: 0; transform: scale(.8); }

.admin-layout[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: scale(.8);
}

.admin-layout[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: scale(1);
}

/* user */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 6px;
    position: relative;
}


.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 14px;
    font-weight: 600;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* CONTENT */
.admin-content {
    padding: 18px 20px 28px;
}



/* DASHBOARD CARDS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-icon .icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* PANEL */
.panel {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 16px 18px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: var(--accent);
    color: #f9fafb;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .35);
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

/* system table */
.sys-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.sys-table th,
.sys-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
}

.sys-table th {
    text-align: left;
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
}

.sys-table td {
    color: var(--text-main);
    
}

.text-green { color: #16a34a; }
.text-blue { color: #2563eb; }
.text-orange { color: #ea580c; }
.text-red { color: #dc2626; }

@media (max-width: 960px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        height: 100vh;
        transition: transform .2s ease-out;
    }
    .admin-layout.mobile-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .admin-topbar {
        padding-inline: 12px;
    }
}

@media (max-width: 640px) {
    .topbar-title-wrap {
        display: none;
    }
    .admin-content {
        padding: 14px 12px 22px;
    }
}




/* USER DROPDOWN MENU */



.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
}

.user-toggle:focus {
    outline: none;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 50px;
    width: 180px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--border-subtle);
    display: none;
    overflow: hidden;
    z-index: 999;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
    transition: background .15s ease;
}

.user-dropdown a:hover {
    background: var(--accent-soft);
}

.user-dropdown svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.6;
}

.user-dropdown.open {
    display: block !important;
}



/* LOGIN / SIGNUP STYLES (kept as you provided) */


.login-body {
    background: var(--bg-page);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center !important;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    padding: 38px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 38px rgba(15,23,42,0.12);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
}

.login-sub {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.login-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.login-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.login-form input {
    padding: 15px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #eef3ff;
    font-size: 16px;
    color: var(--text-main);
}

.login-form input:focus {
    border-color: var(--accent);
    background: #e6edff;
    outline: none;
}

.login-btn {
    margin-top: 10px;
    padding: 16px;
    width: 100%;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.login-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.login-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.4);
    color: #dc2626;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-body {
        justify-content: center !important;
        align-items: center !important;
        padding: 20px;
    }

    .login-card {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-form input {
        padding: 16px;
    }

    .login-btn {
        padding: 16px;
        font-size: 16px;
    }
}


/* =================================================================================================================================
                               WEB SERIES LIST ALL CSS START FROM HERE FULL CSS CHECK BELLOW
   ================================================================================================================================= */

/* list controls */
.header-flex { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.list-controls { display:flex; gap:12px; align-items:center; width:100%; justify-content:space-between; margin-top:8px; }
.list-controls .control-left, .list-controls .control-right { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.select-label, .search-label { font-size:14px; color:var(--text-muted); }
.select-label select, .search-label input { margin-left:8px; padding:6px 8px; border-radius:8px; border:1px solid var(--border-subtle); background:var(--bg-card); color:var(--text-main); }

/* table base */
.webseries-table { width:100%; border-collapse: collapse; }

/* main cell spacing */
.webseries-table th, .webseries-table td { padding:14px 12px; vertical-align:middle; border-bottom:1px solid var(--border-subtle); }

/* header row look */
.webseries-table thead th {
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:0.04em;
    color:#fff;
    background: linear-gradient(180deg, #16a5ad, #18a3a9); /* teal-ish header */
    border-bottom: 2px solid rgba(0,0,0,0.04);
}

/* small columns */
.webseries-table tbody tr td.col-select { width:48px; text-align:center; }

/* thumbnail */
.list-thumb { width:56px; height:56px; object-fit:cover; border-radius:8px; box-shadow:0 6px 18px rgba(2,6,23,0.06); }

/* table buttons */
.table-btn { 
             display:inline-block; 
             padding:6px 10px; 
             border-radius:8px; 
             font-size:13px; 
             /*margin-left:6px; */
             text-decoration:none; 
             border:1px solid transparent; }
.table-btn.edit { 
                background: rgba(59,130,246,0.08); 
                color: #2563eb; }
.table-btn.delete { 
                 background: rgba(239,68,68,0.08); 
                 color: #ef4444; }

/* small ui buttons */
.btn-sm.danger { background: linear-gradient(180deg,#fee2e2,#fef2f2); color:#b91c1c; border-color:rgba(220,38,38,0.15); }
.btn-sm.muted { opacity:0.7; }

/* badges */
.badge-active { background: linear-gradient(90deg,#ecfdf5,#d1fae5); padding:6px 10px; border-radius:999px; color:#065f46; font-weight:600; font-size:12px; }
.badge-inactive { background: linear-gradient(90deg,#fff7ed,#fff1e6); padding:6px 10px; border-radius:999px; color:#92400e; font-weight:600; font-size:12px; }

/* footer controls */
.table-footer { display:flex; align-items:center; justify-content:space-between; padding:12px 4px; gap:12px; }


/*  =======================================================================================================================================
              RESPONSIVE TABLE DESIGN OF WEBSERIES LIST PAGE TABLE CSS START FORM HERE (MOBILE AND PC)
=============================================================================================================================================*/

/* =========================================
   MOBILE CARD VIEW – SEPARATE BLOCKS
========================================= */
@media (max-width: 880px) {

    .list-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .webseries-table thead {
        display: none;
    }

    .webseries-table,
    .webseries-table tbody,
    .webseries-table td {
        display: block;
        width: 100%;
    }

    /* EACH FIELD = ITS OWN BLOCK */
    .webseries-table tr {
        display: block;
        width: 100%;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 12px;

        /* CRITICAL: kill table + float behavior */
        float: none !important;
        text-align: left;
    }

    /* Title styling only */
    .webseries-table td.col-title {
        font-weight: 600;
        font-size: 15px;
        line-height: 1.4;
    }

    /* Lighter info fields */
    .webseries-table td.col-duration,
    .webseries-table td.col-platform,
    .webseries-table td.col-star,
    .webseries-table td.col-tags,
    .webseries-table td.col-badge,
    .webseries-table td.col-views,
    .webseries-table td.col-status,
    .webseries-table td.col-date {
        color: var(--text-muted);
        font-size: 13px;
    }

    /* Actions */
    .webseries-table td.col-actions {
        display: flex;
        justify-content: flex-start;
        gap: 5px;
    }


/* Make info fields lighter color */
    .webseries-table td.col-duration,
    .webseries-table td.col-platform,
    .webseries-table td.col-star,
    .webseries-table td.col-tags,
    .webseries-table td.col-badge,
    .webseries-table td.col-views,
    .webseries-table td.col-status,
    .webseries-table td.col-date {
        color: var(--text-muted);
        font-size: 13px;
        margin-top: 4px;
    }

    .webseries-table td.col-actions {
        text-align: right;
        margin-top: 10px;
    }
}


/* table sorting hint */
.sortable { cursor:pointer; user-select:none; position:relative; }
.sortable::after {
    content: " ";
    width:10px;
    height:10px;
    border-left:6px solid transparent;
    border-right:6px solid transparent;
    border-top:6px solid rgba(255,255,255,0.9);
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    opacity:0.6;
}
.sortable.sorted-asc::after { border-top-color:#fff; transform: translateY(-50%) rotate(180deg); opacity:1; }
.sortable.sorted-desc::after { border-top-color:#fff; transform: translateY(-50%); opacity:1; }

/* small improvements - prevent huge ID column on mobile */
.col-id { width:70px; white-space:nowrap; }



/* Desktop column sizing */
@media (min-width: 881px) {

    .webseries-table th.col-select,
    .webseries-table td.col-select {
        width: 40px !important;
        min-width: 40px !important;
    }

    .webseries-table th.col-id,
    .webseries-table td.col-id {
        width: 70px !important;
        min-width: 70px !important;
        text-align: center;
    }

    .webseries-table th.col-poster,
    .webseries-table td.col-poster {
        width: 100px !important;
        min-width: 90px !important;
    }

    .webseries-table th.col-title, 
    .webseries-table td.col-title {
        width: 250px !important;
        min-width: 200px !important;
        max-width: 300px !important;
    }
    

    .webseries-table th.col-duration,
    .webseries-table td.col-duration {
        width: 100px !important;
        min-width: 90px !important;
        max-width: 120px !important;
        text-align: center;
    }

    .webseries-table th.col-platform,
    .webseries-table td.col-platform {
        width: 100px !important;
        min-width: 85px !important;
        max-width: 120px !important;
    }

    .webseries-table th.col-star,
    .webseries-table td.col-star {
        width: 160px !important;
        min-width: 120px !important;
    }

    /* NEW → TAGS COLUMN */
    .webseries-table th.col-tags,
    .webseries-table td.col-tags {
        width: 150px !important;
        min-width: 120px !important;
        max-width: 250px !important;
        
    }

    /* NEW → BADGE COLUMN */
    .webseries-table th.col-badge,
    .webseries-table td.col-badge {
        width: 110px !important;
        min-width: 90px !important;
    }

    .webseries-table th.col-views,
    .webseries-table td.col-views {
        width: 100px !important;
        text-align: center;
    }

    .webseries-table th.col-status,
    .webseries-table td.col-status {
        width: 120px !important;
        text-align: center;
    }

    .webseries-table th.col-date,
    .webseries-table td.col-date {
        width: 110px !important;
        text-align: center;
    }

    .webseries-table th.col-actions,
    .webseries-table td.col-actions {
        width: 150px !important;
        text-align: center;
    }
}



/* dark-mode tweaks for bulk */
.bulk-actions { display:flex; gap:8px; align-items:center; }
.admin-layout[data-theme="dark"] .bulk-actions button, .admin-layout[data-theme="dark"] .bulk-actions .btn-sm { background: #0b1220 !important; color: #e5e7eb !important; border: 1px solid #1f2937 !important; }
.admin-layout[data-theme="dark"] .btn-delete { background: rgba(239,68,68,0.12) !important; color: #ffb4b4 !important; border-color: rgba(239,68,68,0.2) !important; }

/* accessibility focus */
.webseries-table input:focus, .webseries-table a:focus, .webseries-table button:focus { outline: 3px solid rgba(37,99,235,0.12); outline-offset: 2px; }

/* pagination / small extras */
.page-btn { 
            padding:6px 10px; 
            border-radius:8px; 
            margin-right:6px; 
            border:1px solid var(--border-subtle); 
            background:var(--bg-card); 
            cursor:pointer; }
.page-btn.active { 
                  background:var(--accent); 
                  color:#fff; }
.table-info { 
             color:var(--text-muted); 
             font-size:13px; }

/* Tiny helpers */
.no-thumb { color:var(--text-muted); font-size:13px; }


/* ===========================================
   Fix search input breaking layout on mobile
=========================================== */
.search-label input {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .list-controls {
        flex-direction: column !important;
        width: 100%;
        align-items: stretch !important;
        gap: 10px;
    }

    .control-right,
    .control-left {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }

    .search-label {
        width: 100% !important;
    }

    .search-label input {
        width: 100% !important;
    }
}


/* ===========================================
   UNIVERSAL SWEETALERT OVERRIDES
   Works with customClass + default classes
=========================================== */
/* Modern SweetAlert – Light & Dark Mode */
.sa-modern-popup {
    border-radius: 22px !important;
    padding: 32px 40px !important;
    backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.20) !important;
}

/* LIGHT MODE */
html[data-theme="light"] .sa-modern-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
}

/* DARK MODE */
html[data-theme="dark"] .sa-modern-popup {
    background: rgba(2, 6, 23, 0.85) !important;
    color: #e5e7eb !important;
}


/* Title */
.sa-modern-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

/* Text */
.sa-modern-text {
    font-size: 15px !important;
    opacity: 0.9;
}

/* Confirm Button */
.sa-confirm-btn {
    background: #2563eb !important;
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 10px !important;
}

/* Cancel Button */
.sa-cancel-btn {
    background: #475569 !important;
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 10px !important;
}

/* Select Dropdown inside SweetAlert */
.sa-modern-select {
    padding: 10px !important;
    border-radius: 10px !important;
}




/* ============================================
  GLOBAL SWEETALERT CSS CODE START HERE
============================================ */

/* =========================================
   SWEETALERT — ABOVE MODALS (GLOBAL)
========================================= */
.swal2-container {
    z-index: 10000 !important;
}


/*div.swal2-container.swal2-center.swal2-backdrop-show {*/
/*    background: rgba(0,0,0,0.35) !important;*/
/*    backdrop-filter: blur(2px) !important;*/
/*}*/


.swal2-container.swal2-backdrop-show {
    background: rgba(0,0,0,0.35) !important;
    backdrop-filter: blur(2px) !important;
}


/* ============================================
   REMOVE WHITE BACKGROUND FROM SUCCESS ICON
   (keep green tick + animation only)
============================================ */

/* Remove the big white circular background */
.swal2-icon.swal2-success {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove the white outer circle */
.swal2-success-ring {
    background: transparent !important;
    border-color: rgba(16, 185, 129, 0.25) !important; /* light green */
}

/* Remove extra white shapes SweetAlert adds */
.swal2-icon.swal2-success::before,
.swal2-icon.swal2-success::after {
    background: transparent !important;
}

/* Remove those diagonal white lines */
.swal2-success-circular-line-left,
.swal2-success-circular-line-right {
    background: transparent !important;
}

/* Keep only the check mark bright */
.swal2-success-line-tip,
.swal2-success-line-long {
    background: #22c55e !important; /* green tick */
}

.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix {
    display: none !important;
    opacity: 0 !important;
}


/*CSS for up/down arrows*/

th.sortable {
    cursor: pointer;
    position: relative;
}

th.sorted-asc::after,
th.sorted-desc::after {
    content: "";
    border: 5px solid transparent;
    position: absolute;
    right: 10px;
    top: 50%;
}

th.sorted-asc::after {
    border-bottom-color: #111;
    margin-top: -8px;
}

th.sorted-desc::after {
    border-top-color: #111;
    margin-top: 2px;
}


/* ==========================================================
   MODERN PREMIUM PAGINATION FOR BOTH LIGHT + DARK THEMES
   ========================================================== */

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 0;
}

/* Base button */
.table-pagination .page-btn {
    padding: 8px 14px;
    min-width: 42px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);

    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.22s ease, transform 0.12s ease;
    user-select: none;
}

/* Hover */
.table-pagination .page-btn:hover:not(.active):not(.disabled) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Active page */
.table-pagination .page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* Disabled buttons */
.table-pagination .page-btn.disabled {
    opacity: 0.45;
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Ellipsis (…) */
.table-pagination .page-btn.ellipsis {
    pointer-events: none;
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}


/* ==========================================================
   MOBILE RESPONSIVE PAGINATION (SCREEN < 480px)
   ========================================================== */
@media (max-width: 480px) {

    .table-pagination {
        justify-content: center; /* center align for mobile */
        gap: 6px;
        margin-top: 10px;
        padding: 6px 0;
        flex-wrap: wrap; /* allow wrapping when needed */
    }

    .table-pagination .page-btn {
        padding: 6px 10px;
        min-width: 34px;
        height: 32px;

        font-size: 12px;
        border-radius: 8px;
    }

    /* Active button smaller shadow on mobile */
    .table-pagination .page-btn.active {
        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
        transform: translateY(-1px);
    }

    /* Reduce hover effects for mobile */
    .table-pagination .page-btn:hover:not(.active):not(.disabled) {
        transform: none;
    }

    /* Ellipsis spacing fix */
    .table-pagination .page-btn.ellipsis {
        font-size: 12px;
        padding: 0 4px;
    }
}


/* =========================================================================
   FIX: COLUMNS BUTTON & DROPDOWN INVISIBLE IN DARK MODE
   ========================================================================= */

/* Button in dark mode */
.admin-layout[data-theme="dark"] .column-toggle .btn-sm {
    background: #1e293b !important;   /* dark bluish */
    color: #ffffff !important;
    border: 1px solid #334155 !important;
}

/* Button hover */
.admin-layout[data-theme="dark"] .column-toggle .btn-sm:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Dropdown panel */
.admin-layout[data-theme="dark"] .column-panel {
    background: #0f172a !important; 
    border: 1px solid #334155 !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.55) !important;
}

/* Dropdown text */
.admin-layout[data-theme="dark"] .column-panel label {
    color: #e5e7eb !important;
}

/* Checkbox color */
.admin-layout[data-theme="dark"] .column-panel input[type="checkbox"] {
    accent-color: #38bdf8 !important;   /* sky-blue highlight */
}

/* Inside panel → All / Reset buttons */
.admin-layout[data-theme="dark"] .column-panel .btn-sm {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
}


/* ======================================================
           WEBESRIES LIST PAGE CSS END HERE 
 ====================================================== */


/* =======================================================
   CUSTOM FILE INPUT — EXACT MATCH TO YOUR 2nd SCREENSHOT
======================================================= */

.ws-file {
    position: relative;
    width: 100%;
    height: 42px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding-left: 16px;
    font-size: 14px;
    color: var(--text-main);
    overflow: hidden;
}

/* Invisible actual file input */
.ws-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}


/* Left text ("Choose File" OR filename) */
.ws-file-left {
    font-weight: 600;
    color: var(--text-main);
    max-width: calc(100vw - 900px);
    flex: 1;                
    min-width: 0;  
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Right button */
.ws-file-btn {
    background: #edf2fa;
    color: var(--text-main);
    padding: 12px 20px;
    border-left: 1px solid var(--border-subtle);
    font-weight: 600;
    border-radius: 0 12px 12px 0;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0; 
}


.ws-file:hover {
    border-color: var(--accent);
}

/* ===== DARK MODE ===== */
.admin-layout[data-theme="dark"] .ws-file {
    background: #0f172a;
    border-color: #1f2937;
}

.admin-layout[data-theme="dark"] .ws-file-left {
    color: #e5e7eb;
}

.admin-layout[data-theme="dark"] .ws-file-btn {
    background: #1e293b;
    border-left: 1px solid #334155;
    color: #e5e7eb;
}


/* Select dropdown fix in dark mode */
.admin-layout[data-theme="dark"] select,
.admin-layout[data-theme="dark"] option {
    background: #0f172a !important;
    color: #e5e7eb !important;
}


/* Checkbox correct color in dark mode */
.admin-layout[data-theme="dark"] input[type="checkbox"] {
    accent-color: #38bdf8 !important;
}


.admin-layout[data-theme="dark"] .ws-select {
    border-color: #1f2937 !important;
}



@media (max-width: 1200px) {
    .ws-file-left {
        max-width: calc(100vw - 600px);
    }
}


@media (max-width: 900px) {
    .ws-file-left {
        flex: none;
        max-width: calc(100vw - 240px);
    }
}


@media (max-width: 600px) {
    .ws-file-left {
        flex: none;
        max-width: calc(100vw - 220px);
        font-size: 13px;
    }

}


@media (max-width: 420px) {
    .ws-file-left {
        max-width: calc(100vw - 210px);
    }
}




/* ======================================================================================
           WEB SERIES ADD PAGE — RESPONSIVE GRID + DARK FIX + PANEL FIX
   ====================================================================================== */

/* MATCH LIST PAGE WIDTH */
.ws-container {
    width: 100%;
    max-width: 100%;          /* FIX 1 → same width as list page */
    margin: 0 auto;
}

/* MATCH LIST PAGE PANEL PADDING */
.panel-body {
    padding: 24px 28px !important;   /* FIX 2 — same spacing as list */
}

/* FLEX GRID */
.ws-row {
    display: flex;
    width: 100%;
    gap: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* Column fixed widths */
.ws-col-10, .ws-col-30, .ws-col-50, .ws-col-70, .ws-col-100 {
    flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    
}

.ws-col-10  { flex-basis: 10%;  max-width: 10%; }
.ws-col-30  { flex-basis: 30%;  max-width: 30%; }
.ws-col-50  { flex-basis: 50%;  max-width: 50%; }
.ws-col-70  { flex-basis: 70%;  max-width: 70%; }
.ws-col-100 { flex-basis: 100%; max-width: 100%; }


/* INPUT + LABEL FIX */
.ws-label {
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
    font-size: 15px;
    color:var(--text-main);
}


.ws-input,
.ws-input-file,
.ws-select,
.ws-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-input);
    color: var(--text-main);
}

/* Watermark Grid */
.ws-watermark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.wm-dot input {
    width: 14px;
    height: 14px;
}

/* AJAX dropdowns */
.ws-ajax-results {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-top: 4px;
    display: none;
}
.ws-ajax-selected {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* Cards */
.ws-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}


/* Submit */
.ws-submit-box {
    text-align: center;
}
.ws-submit {
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}


/* Hidden */
.ws-hidden { display: none !important; }

/* =============================
      RESPONSIVE 
   ============================= */
@media(max-width: 900px) {

    .panel-body {
        padding: 16px !important;
    }

    .ws-row { 
        flex-wrap: wrap; 
    }

    .ws-col-10,
    .ws-col-30,
    .ws-col-50,
    .ws-col-70,
    .ws-col-100 {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .ws-watermark-grid { 
        max-width: 140px;
        margin: auto;
    }


    /* Make watermark take full width */
    .ws-col-20 {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Center the grid itself */
    .ws-watermark-grid {
        margin: 0 auto !important;
        justify-content: center !important;
    }
}



/*======================================================================================================
                  Beautiful pill UI Platform, Star, Tag Search Box
======================================================================================================*/

/* OUTER WRAP */
.ws-tagbox {
    position: relative;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    padding: 0;
}

/* MAIN SCROLLABLE AREA: Pills + Input */

.ws-tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    min-height: 44px;
    
 /*  max-height: 110px;  HEIGHT LIMIT → SHOW ARROWS */
 
    height: 44px;       /* ONLY 1 ROW VISIBLE */
    overflow-y: auto;  /* ENABLE VERTICAL SCROLL */
    overflow-x: hidden;
    border-radius: 10px;
}

/* Smooth scrollbars with up/down arrows (Firefox + Chrome) */
.ws-tag-input {
    scrollbar-width: auto;         /* Firefox */
    scrollbar-color: #b5b5b5 #ffffff00;
}

.ws-tag-input::-webkit-scrollbar {
    width: 14px;                     /* SPACE FOR UP/DOWN ARROWS */
}

.ws-tag-input::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.ws-tag-input::-webkit-scrollbar-button:single-button {
    display: block;
    height: 14px;
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Up arrow */
.ws-tag-input::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><polygon points='6,2 10,8 2,8' fill='gray'/></svg>");
}

/* Down arrow */
.ws-tag-input::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><polygon points='2,4 10,4 6,10' fill='gray'/></svg>");
}

/* PILL CONTAINER */
.tag-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* INPUT BOX INSIDE TAG FIELD */
.ws-tag-input input {
    border: none;
    background: transparent;
    padding: 6px 2px;
    outline: none;
    font-size: 17px;
    color: var(--text-primary);
    min-width: 120px;
    flex: 1;

    /* REMOVE ARROWS COMPLETELY */
    -moz-appearance: textfield;
}

.ws-tag-input input::-webkit-inner-spin-button,
.ws-tag-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* PILL STYLE */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #d5edc4;
    border-radius: 6px;
    border: 1px solid #a5d48d;
    font-size: 14px;
    color: #406720;
    /*white-space: normal;       */
    /*word-break: break-word;     */
    /*overflow-wrap: anywhere;    */
    /*max-width: 100%;         */
    
}

/* DARK MODE PILL */
[data-theme="dark"] .tag-pill {
    background: #23361e;
    color: #b7e2a4;
    border-color: #355a2d;
}

/* REMOVE BUTTON */
.tag-pill span {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* DROPDOWN RESULTS */
.ws-tag-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 8px;
    z-index: 50;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

/* DROPDOWN ITEM */
.ws-tag-results div {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-primary);
}

.ws-tag-results div:hover {
    background: var(--bg-hover);
}

/* ============================================================
   FIX: TAG INPUT + RESULT BOX COLORS FOR LIGHT & DARK MODE
============================================================ */

/* LIGHT MODE */
.ws-tag-input {
    background: var(--bg-card);
    color: var(--text-main);
}

.ws-tag-input input {
    color: var(--text-main);
}

/* Dropdown in light mode */
.ws-tag-results {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.ws-tag-results div {
    color: var(--text-main);
}

.ws-tag-results div:hover {
    background: var(--accent-soft);   /* Light hover */
    color: var(--accent);
}


/* ============================================================
   DARK MODE OVERRIDES
============================================================ */
.admin-layout[data-theme="dark"] .ws-tag-input {
    background: #0b1120;       /* slightly lighter than bg */
    border-color: #1f2937;
    color: #e5e7eb;
}

.admin-layout[data-theme="dark"] .ws-tag-input input {
    color: #e5e7eb !important;
}

/* Dropdown background in dark mode */
.admin-layout[data-theme="dark"] .ws-tag-results {
    background: #0f172a;
    border: 1px solid #1f2937;
    box-shadow: 0 12px 22px rgba(0,0,0,0.55);
}

/* Dropdown item text */
.admin-layout[data-theme="dark"] .ws-tag-results div {
    color: #e5e7eb;
}

/* Hover effect in dark mode */
.admin-layout[data-theme="dark"] .ws-tag-results div:hover {
    background: rgba(56, 189, 248, 0.12);   /* accent soft blue */
    color: #38bdf8;                         /* sky blue text */
}

/* =======================================================================================
    MODERN DOWNLOAD & EMBED LINK INPUT GROUP (LIGHT + DARK MODE)
======================================================================================= */

/* WRAPPER CARD */
.ws-card {
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 12px;
}



/* CARD HEAD */
.ws-card-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* ADD BUTTON (+) */
.ws-btn-add {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.15s ease;
}

.ws-btn-add:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* EACH INPUT GROUP */
.ws-input-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 10px;
    border-radius: 10px;
    align-items: center;
    transition: border-color .15s ease;
}

.ws-input-group:hover {
    border-color: var(--accent);
}

/* The link input */
.ws-input-group input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
}

.ws-input-group input:focus {
    border-color: var(--accent);
    outline: none;
}

/* REMOVE button */
.ws-input-group-remove {
    padding: 8px 14px;
    border: none;
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s ease;
}

.ws-input-group-remove:hover {
    background: rgba(239,68,68,0.2);
    transform: translateY(-1px);
}

/* ================================
   DARK MODE SUPPORT
================================ */

.admin-layout[data-theme="dark"] .ws-input-group {
    background: #0f172a;
    border: 1px solid #1f2937;
}

.admin-layout[data-theme="dark"] .ws-input-group input {
    background: #0b1120;
    border: 1px solid #1f2937;
    color: #e5e7eb;
}

.admin-layout[data-theme="dark"] .ws-input-group input:focus {
    border-color: #38bdf8;
}

.admin-layout[data-theme="dark"] .ws-input-group-remove {
    background: rgba(239,68,68,0.15);
    color: #ff9e9e;
}

.admin-layout[data-theme="dark"] .ws-input-group-remove:hover {
    background: rgba(239,68,68,0.28);
}

/* Fix spacing inside card */
#ws-download-links,
#ws-embed-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================================
   MODERN SELECT DROPDOWN (LIGHT + DARK MODE)
   Works on Chrome, Edge, Brave, Firefox
============================================================================ */

/* Base select styling */
.ws-input,
select.ws-input,
.ws-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: var(--bg-card);
    color: var(--text-main);

    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 17px;
    width: 100%;
    cursor: pointer;
}

/* On focus */
.ws-input:focus,
select.ws-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Dropdown menu styling */
select.ws-input option {
    padding: 12px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 0 !important;
}

/* Hover inside dropdown */
select.ws-input option:hover {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
}

/* ============================
      DARK MODE FIXES
============================ */
.admin-layout[data-theme="dark"] select.ws-input {
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
    color: #e5e7eb !important;
}

.admin-layout[data-theme="dark"] select.ws-input option {
    background: #0f172a !important;
    color: #e5e7eb !important;
}

.admin-layout[data-theme="dark"] select.ws-input option:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #38bdf8 !important;
}


/* ============================================================================
   PREMIUM SMALL BUTTON (Back Button) - .btn-sm
   Light + Dark mode compatible
============================================================================ */

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer !important;
    transition: 0.25s ease;
    box-shadow: var(--shadow-soft);
}

/* Hover effect */
.btn-sm:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Active click */
.btn-sm:active {
    transform: scale(0.97);
}

/* Dark mode */
.admin-layout[data-theme="dark"] .btn-sm {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #1f2937;
}

.admin-layout[data-theme="dark"] .btn-sm:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8;
}


/* Apply pointer cursor to all ws-input EXCEPT title, slug, thumb-url */
.ws-input:not(#ws-title):not(#ws-slug):not(#ws-thumb-url),
select.ws-input,
.ws-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 17px;
    width: 100%;
    cursor: pointer; /* cursor enabled here */
} 

/* Force TEXT cursor for title, slug, and thumb-url */
#ws-title,
#ws-slug,
#ws-thumb-url {
    cursor: text !important;
}


/* Download & Embed links input must also use typing cursor */
.ws-input-group input[type="text"] {
    cursor: text !important;
}


/* Duration input must use typing cursor */
.ws-input[name="duration"] {
    cursor: text !important;
}


/*Showing the Top Success Bar*/
.ws-top-success {
    background: #d4f5e1;
    color: #0b6b3a;
    padding: 14px 20px;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid #11a75c;
}



/*Dropdown Colum Fix*/
.column-toggle {
    position: relative;      /* dropdown anchor */
    display: inline-block;
}

/* panel absolute relative to .column-toggle, NOT the list container */
.column-panel {
    position: absolute;
    top: 40px;
    right: 0;

    min-width: 180px;
    max-width: 240px;
    width: auto;

    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: rgba(15,23,42,0.08) 0px 10px 30px;
    padding: 8px;
    border-radius: 8px;
    z-index: 99999;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .column-panel {
        right: 0;           
        left: 0;        
        width: 100%;        
        max-width: none;
        max-height: 60vh;
        overflow-y: auto;
    }
}





/*Single Status for Stars,Tags, Webseries Table Active
Inactive Button Hand Show On Hover*/

/*.status-toggle {*/
/*    padding: 6px 12px;*/
/*    border-radius: 999px;*/
/*    font-size: 13px;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*    transition: all 0.2s ease;*/
/*}*/

/*.status-toggle.on {*/
/*    background: #16a34a;*/
/*    color: #fff;*/
/*}*/

/*.status-toggle.off {*/
/*    background: #dc2626;*/
/*    color: #fff;*/
/*}*/

/*.status-toggle:hover {*/
/*    opacity: 0.85;*/
/*}*/



/*.pf-status-toggle {*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    padding: 6px 12px;*/
/*}*/






/* =====================================================
   PREMIUM STATUS TOGGLE BUTTON ON WEBSERIES LIST PAGE
===================================================== */

.status-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    padding: 6px 14px;

    border-radius: 5px;
    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.12s ease;
}

/* ---------- ACTIVE ---------- */
.status-toggle.on {
    background: linear-gradient(90deg, #dcfce7, #bbf7d0);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.35);
}

/* ---------- INACTIVE ---------- */
.status-toggle.off {
    background: linear-gradient(90deg, #fee2e2, #fecaca);
    color: #7f1d1d;
    border-color: rgba(220, 38, 38, 0.35);
}

/* ---------- HOVER ---------- */
.status-toggle:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

/* ---------- CLICK ---------- */
.status-toggle:active {
    transform: scale(0.96);
}

/* ---------- KEYBOARD ACCESSIBILITY ---------- */
.status-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}



/* =========================================
   DARK MODE STATUS TOGGLE
========================================= */

.admin-layout[data-theme="dark"] .status-toggle.on {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.45);
}

.admin-layout[data-theme="dark"] .status-toggle.off {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}







/* =======================================================================
   PREMIUM STATUS TOGGLE BUTTON ON TAG PLATFROM STAR LIST PAGE
   Matches Admin Panel + Dark Mode 
========================================= */

.pf-status-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 14px;
    min-width: 84px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;

    border-radius: 5px;
    border: 1px solid transparent;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.12s ease,
        box-shadow 0.2s ease;
}







/* ACTIVE */
.pf-status-toggle.is-active {
    background: linear-gradient(90deg, #dcfce7, #bbf7d0);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.35);
}

/* INACTIVE */
.pf-status-toggle.is-inactive {
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    color: #92400e;
    border-color: rgba(234, 88, 12, 0.35);
}

/* Hover */
.pf-status-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Click */
.pf-status-toggle:active {
    transform: scale(0.96);
}

/* Keyboard focus */
.pf-status-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}



/* =========================================
   DARK MODE STATUS BUTTON
========================================= */
.admin-layout[data-theme="dark"] .pf-status-toggle.is-active {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.45);
}

.admin-layout[data-theme="dark"] .pf-status-toggle.is-inactive {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.45);
}




/* END OF admin.css */