:root {
        --primary: #111827;
        --primary-dark: #111827;
        --text: #111827;
        --muted: #6B7280;
        --bg: #F9FAFB;
        --card: #FFFFFF;
        --border: #E5E7EB;
        --radius: 10px;
        --transition: all .25s ease;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: "Inter", sans-serif;
        background: var(--bg);
        color: var(--text);
        display: flex;
        min-height: 100vh;
        line-height: 1.6;
        font-size: 14px;
        font-weight: 400;
    }

    /* Typography */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--text);
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    p {
        color: var(--muted);
    }

    small,
    .muted {
        font-size: 12px;
        color: var(--muted);
    }

    button,
    .menu-item,
    .kpi-card h4,
    .table th {
        font-size: 13px;
    }

    .table th {
        font-weight: 500;
        color: var(--muted);
    }

    .table td {
        font-size: 14px;
        color: var(--text);
    }

    /* Sidebar */
    .sidebar {
        width: 15rem;
        background: var(--card);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .logo-circle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo span {
        font-weight: 600;
        font-size: 16px;
    }

    .menu {
        padding: 16px 0;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        color: var(--muted);
        font-weight: 500;
        cursor: pointer;
        border-left: 3px solid transparent;
        transition: var(--transition);
    }

    .menu-item.active {
        background: #EFF6FF;
        color: var(--primary);
        border-left-color: var(--primary);
    }

    .menu-item:hover {
        background: #F3F4F6;
        color: var(--text);
    }

    .sidebar-footer {
        padding: 16px;
        border-top: 1px solid var(--border);
    }

    .membership-card {
        background: linear-gradient(135deg, #111827, #1f2937, #374151);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 14px;
        text-align: center;
        margin-bottom: 16px;
    }

    .membership-circle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: white;
        color: #000;
        font-weight: 700;
        margin: 0 auto 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .membership-card h4 {
        font-size: 13px;
        color: white;
        font-weight: 600;
    }

    .membership-card p {
        font-size: 12px;
        color: white;
    }

    .membership-card button {
        background: var(--primary);
        color: #000;
        background-color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 8px;
        transition: var(--transition);
    }

    .membership-card button:hover {
        background: white;
        color: #000;
    }

    .logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 0;
         background: #000000;
        color: #E5E7EB;
        background: #F3F4F6;
        border-radius: 6px;
        color: var(--text);
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
    }

    .logout-btn:hover {
        background: #000000;
        color: #E5E7EB;
    }

    /* Main */
    .main {
        margin-left: 15rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Header */
    header {
        background: var(--card);
        border-bottom: 1px solid var(--border);
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .nav-buttons {
        display: flex;
        gap: 12px;
    }

    .nav-buttons button {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #F3F4F6;
        border: none;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
        padding: 8px 14px;
        border-radius: 6px;
        transition: var(--transition);
    }

    .nav-buttons button.active,
    .nav-buttons button:hover {
        background: var(--primary);
        color: #fff;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .notification {
        position: relative;
        cursor: pointer;
    }

    .notification-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #EF4444;
        color: #fff;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 8px;
        font-weight: 600;
    }

    .profile {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
    }

    .profile img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border);
    }

    .profile .details {
        display: flex;
        flex-direction: column;
    }

    .profile .details span.name {
        font-weight: 600;
        font-size: 13px;
    }

    .profile .details span.email {
        font-size: 12px;
        color: var(--muted);
    }

    /* Content */
    .content {
        padding: 24px;
        margin: auto;
    }

    .row {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .left {
        flex: 7;
        min-width: 300px;
    }

    .right {
        flex: 3;
        min-width: 260px;
    }

    .welcome,
    .upgrade-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 24px;
    }

    .welcome h2 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .welcome p {
        font-size: 14px;
        color: var(--muted);
    }

    .upgrade-card {
        text-align: center;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: #fff;
    }

    .upgrade-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .upgrade-card p {
        font-size: 13px;
        margin-bottom: 10px;
        color: #E0E7FF;
    }

    .upgrade-card button {
        background: #fff;
        color: var(--primary);
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
    }

    .upgrade-card button:hover {
        transform: translateY(-2px);
    }

    /* KPI */
    .kpi-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }

    .kpi-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .kpi-card h4 {
        font-size: 13px;
        color: var(--muted);
    }

    .kpi-card .value {
        font-weight: 700;
        font-size: 20px;
    }

    .kpi-icon {
        color: var(--primary);
        opacity: .7;
        font-size: 18px;
    }

    /* Charts */
    .charts-row {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }


    .chart-box {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        flex: 1;
        min-width: 300px;
    }

    .chart-placeholder {
        background: linear-gradient(145deg, #F3F4F6, #FFF);
        height: 180px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-weight: 600;
    }

    /* Website Cards */
    .website-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 24px;
    }

    .website-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .website-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }

    .website-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 18px;
        border-bottom: 1px solid var(--border);
        background: #F9FAFB;
    }

    .website-card-header h4 {
        font-weight: 600;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
    }

    .website-status {
        font-size: 12px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 12px;
        background: #E0E7FF;
        color: var(--primary);
        text-transform: capitalize;
    }

    .website-card-body {
        flex: 1;
        padding: 16px 18px;
    }

    .website-card-body p {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 10px;
    }

    .website-stats {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--text);
        font-weight: 500;
    }

    .website-card-footer {
        border-top: 1px solid var(--border);
        background: #F9FAFB;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
    }

    .website-domain {
        font-size: 12px;
        color: var(--muted);
    }

    .website-actions {
        display: flex;
        gap: 10px;
    }

    .website-actions i {
        color: var(--muted);
        cursor: pointer;
        transition: var(--transition);
        font-size: 16px;
    }

    .website-actions i:hover {
        color: var(--primary);
    }

    /* Tables */
    .table-row {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    .table-box {
        flex: 1;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
    }

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

    .table-header input,
    .table-header select {
        padding: 6px 8px;
        border: 1px solid var(--border);
        border-radius: 6px;
        font-size: 13px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    th,
    td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    th {
        color: var(--muted);
        font-weight: 500;
    }

    tr:hover {
        background: #F9FAFB;
    }

    footer {
        padding: 16px;
        text-align: center;
        font-size: 12px;
        color: var(--muted);
        border-top: 1px solid var(--border);
        margin-top: 24px;
    }

    /* Search Box */
    .search-box {
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
        padding: 6px 12px;
        width: 260px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        transition: var(--transition);
    }

    .search-box i {
        color: var(--muted);
        opacity: 0.8;
    }

    .search-box input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 14px;
        color: var(--text);
        font-family: "Inter", sans-serif;
    }

    .search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        background: var(--primary);
        color: #fff;
        border: none;
        padding: 10px 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
    }

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .grid-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Search Box */
    .search-box {
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
        padding: 6px 12px;
        width: 260px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        transition: var(--transition);
    }

    .search-box i {
        color: var(--muted);
        opacity: 0.8;
    }

    .search-box input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 14px;
        color: var(--text);
        font-family: "Inter", sans-serif;
    }

    .search-box:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    /* ===================== 📱 RESPONSIVE DESIGN ===================== */
    @media (max-width: 1024px) {
        .sidebar {
            width: 200px;
        }

        .main {
            margin-left: 200px;
        }

        header {
            padding: 0 16px;
        }
    }

    @media (max-width: 768px) {
        body {
            flex-direction: column;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -260px;
            width: 15rem;
            height: 100%;
            background: var(--card);
            z-index: 999;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.4s ease, left 0.4s ease;
        }

        .sidebar.active {
            left: 0;
        }

        .main {
            margin-left: 0;
            width: 100%;
        }

        header {
            justify-content: space-between;
            padding: 0 16px;
        }

        .nav-buttons {
            display: none;
        }

        .profile .details {
            display: none;
        }

        .content {
            padding: 16px;
        }

        .row {
            flex-direction: column;
        }

        .left,
        .right {
            width: 100%;
        }

        .kpi-row {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        }



        .website-grid {
            grid-template-columns: 1fr;
        }

        .table-row {
            flex-direction: column;
        }
    }

    /* ===================== ✨ ANIMATIONS & TRANSITIONS ===================== */
    .sidebar,
    header,
    .kpi-card,
    .chart-box,
    .website-card,
    .table-box {
        transition: all 0.3s ease;
    }

    /* Smooth hover lift */
    .website-card:hover,
    .kpi-card:hover,
    .chart-box:hover,
    .table-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

    /* Soft hover animation for buttons and menu items */
    button,
    .menu-item,
    .logout-btn,
    .membership-card button {
        transition: all 0.25s ease;
    }

    button:hover,
    .menu-item:hover,
    .logout-btn:hover {
        transform: translateY(-1px);
    }

    /* Fade-in animation for content */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

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

    .content>* {
        animation: fadeInUp 0.6s ease forwards;
    }

    /* Notification bounce */
    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-4px);
        }

        60% {
            transform: translateY(-2px);
        }
    }

    .notification:hover .bx-bell {
        animation: bounce 1s;
    }

    /* Optional smooth scroll and transition for UI polish */
    html {
        scroll-behavior: smooth;
    }

    a,
    button,
    input,
    .menu-item {
        transition: all 0.25s ease-in-out;
    }

    /* ===================== 📱 Mobile Sidebar Toggle ===================== */

    /* Hamburger icon (only visible on mobile) */
    .hamburger {
        display: none;
        position: fixed;
        top: 18px;
        left: 16px;
        background: var(--primary);
        color: #fff;
        border-radius: 6px;
        padding: 6px 8px;
        font-size: 22px;
        z-index: 1001;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .hamburger:hover {
        background: #1e3a8a;
        transform: scale(1.05);
    }

    @media (max-width: 768px) {
        .hamburger {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -260px;
            width: 15rem;
            height: 100%;
            background: var(--card);
            z-index: 1000;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
            transition: left 0.4s ease;
        }

        .sidebar.active {
            left: 0;
        }

        /* Dim overlay when sidebar is open */
        .sidebar-overlay {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 999;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

        .main {
            margin-left: 0;
        }
    }


    /* === FIXED Responsive Header, Sidebar, Dropdown & Mobile Layout === */

    /* Header fix for mobile/tablet */
    @media (max-width: 768px) {
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            height: auto;
            flex-wrap: wrap;
            gap: 8px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: flex-end;
            width: 100%;
        }

        .profile {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            position: relative;
        }

        .profile img {
            width: 34px;
            height: 34px;
        }

        .notification {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notification i {
            font-size: 1.4rem;
        }

        .hamburger {
            top: 12px;
            left: 12px;
            z-index: 1101;
        }

        .content {
            padding: 14px;
            width: 100%;
            overflow-x: hidden;
        }

        .kpi-row {
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .website-card,
        .chart-box,
        .table-box {
            margin-bottom: 16px;
        }
    }

    /* Profile dropdown positioning fix */
    .profile-menu {
        right: 20px !important;
        top: 60px !important;
        transform-origin: top right;
    }

    .profile-menu.active {
        display: flex;
        animation: fadeInSmooth 0.25s ease;
    }

    @keyframes fadeInSmooth {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Sidebar overlay coverage */
    .sidebar-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 900;
        opacity: 1;
        display: block;
        transition: opacity 0.3s ease;
    }

    /* Card uniform spacing */
    .website-card,
    .kpi-card,
    .chart-box,
    .table-box {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    footer {
        margin-top: 32px;
        padding-bottom: 24px;
    }

    @media (max-width: 1024px) {
        .charts-row {
            flex-direction: column !important;
        }

        .charts-row .chart-box {
            flex: 1 1 100% !important;
            width: 100% !important;
        }
    }

    .welcome:hover img {
        transform: scale(1.05);
    }

    @media (max-width: 992px) {
        .welcome {
            flex-direction: column;
            text-align: center;
            height: auto !important;
        }

        .welcome div[style*="flex:1; height:100%"] {
            width: 100%;
            height: auto;
            margin-top: 10px;
        }
    }

    /* === Profile Dropdown Styles === */
    .profile-menu {
        position: absolute;
        top: 60px;
        right: 24px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 180px;
        display: none;
        flex-direction: column;
        z-index: 9999;
        animation: fadeIn 0.25s ease;
    }

    .profile-menu.active {
        display: flex;
    }

    .profile-menu button {
        background: none;
        border: none;
        text-align: left;
        padding: 10px 16px;
        font-size: 13px;
        color: var(--text);
        cursor: pointer;
        transition: background 0.25s ease;
    }

    .profile-menu button:hover {
        background: #F3F4F6;
    }

    .profile-menu button.logout {
        color: #DC2626;
        font-weight: 600;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

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

    /* === FIXED Responsive Header, Sidebar, Dropdown & Mobile Layout === */

    /* Header fix for mobile/tablet */
    @media (max-width: 768px) {
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            height: auto;
            flex-wrap: wrap;
            gap: 8px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: flex-end;
            width: 100%;
        }

        .profile {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            position: relative;
        }

        .profile img {
            width: 34px;
            height: 34px;
        }

        .notification {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notification i {
            font-size: 1.4rem;
        }

        .hamburger {
            top: 12px;
            left: 12px;
            z-index: 1101;
        }

        .content {
            padding: 14px;
            width: 100%;
            overflow-x: hidden;
        }

        .kpi-row {
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .website-card,
        .chart-box,
        .table-box {
            margin-bottom: 16px;
        }
    }

    /* Profile dropdown positioning fix */
    .profile-menu {
        right: 20px !important;
        top: 60px !important;
        transform-origin: top right;
    }

    .profile-menu.active {
        display: flex;
        animation: fadeInSmooth 0.25s ease;
    }

    @keyframes fadeInSmooth {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Sidebar overlay coverage */
    .sidebar-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 900;
        opacity: 1;
        display: block;
        transition: opacity 0.3s ease;
    }

    /* Card uniform spacing */
    .website-card,
    .kpi-card,
    .chart-box,
    .table-box {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    footer {
        margin-top: 32px;
        padding-bottom: 24px;
    }
    
/* 🌀 LOADER OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 🗑️ DELETE CONFIRMATION MODAL */
.confirm-dialog-backdrop {
  position: fixed;
  height: 100vh;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease-in-out;
}

.confirm-dialog {
  background: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.25s ease;
}

.confirm-dialog i {
  font-size: 2rem;
  color: #ef4444;
  margin-bottom: 10px;
}

.confirm-dialog h3 {
  margin-bottom: 6px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
}

.confirm-dialog p {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-danger:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: #d1d5db;
}

/* ✨ EMPTY STATE PLACEHOLDER */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #fafafa;
  margin-top: 25px;
  animation: fadeIn 0.4s ease both;
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: #111827;
  font-weight: 600;
}

.empty-state p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.empty-state .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.empty-state .btn-primary:hover {
  background: var(--primary-dark, #2563eb);
}

/* ⚡ ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 📱 Responsive Improvements */
@media (max-width: 768px) {
  .confirm-dialog {
    width: 90%;
    padding: 18px;
  }

  .empty-state {
    padding: 40px 10px;
  }
}

/* Loader fix */
.global-loader {
  position: fixed;
  inset: 0;
  min-height: 80vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ddd;
  border-top: 4px solid #111827;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
