﻿:root {
    --blue: #0d6efd;
    --white: #ffffff;
    --light-grey-bg: #f6f7fb;
    --dark-bg: #0f111a;
    --sci-accent: #47d7ff;
    --text-light: #d0dbe9;
    --bg-light: var(--light-grey-bg);
    --bg-dark-card: #1e1e1e;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0; /* ⬅️ Important: no global padding */
    background: var(--bg-light);
    transition: background 0.3s ease, color 0.3s ease;
}

    /* 🌙 Dark Theme */
    body[data-theme="dark"] {
        background-color: var(--dark-bg);
        color: var(--text-light);
    }

        body[data-theme="dark"] h1,
        body[data-theme="dark"] h2,
        body[data-theme="dark"] h3,
        body[data-theme="dark"] label {
            color: var(--text-light);
        }

        body[data-theme="dark"] .form-control {
            background-color: #1a1e2a !important;
            color: var(--text-light) !important;
            border: 1px solid #2e3650;
        }

            body[data-theme="dark"] .form-control::placeholder {
                color: #aaa !important;
            }

        body[data-theme="dark"] .btn {
            background-color: transparent;
            color: var(--sci-accent);
            border-color: var(--sci-accent);
        }

            body[data-theme="dark"] .btn:hover {
                background-color: var(--sci-accent);
                color: #0b1826;
            }

        body[data-theme="dark"] .btn-outline-secondary {
            border-color: #888;
            color: #aaa;
        }

            body[data-theme="dark"] .btn-outline-secondary:hover {
                background-color: #333;
                color: #fff;
            }

        body[data-theme="dark"] .dropdown-menu {
            background-color: #1e2536;
            color: var(--text-light);
        }

        body[data-theme="dark"] .dropdown-item {
            color: var(--text-light);
        }

            body[data-theme="dark"] .dropdown-item:hover {
                background-color: #2e3650;
            }

        body[data-theme="dark"] .pagination .page-link {
            background-color: #1a1e2a;
            color: var(--sci-accent);
            border-color: #27314d;
        }

        body[data-theme="dark"] .pagination .page-item.active .page-link {
            background-color: var(--sci-accent);
            color: var(--dark-bg);
        }

        body[data-theme="dark"] .card,
        body[data-theme="dark"] .table-container,
        body[data-theme="dark"] .modal-content {
            background-color: var(--bg-dark-card);
            color: var(--text-light);
        }

        body[data-theme="dark"] table th,
        body[data-theme="dark"] table td {
            border-color: #333;
        }

        body[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
            background-color: #14141f;
        }

        body[data-theme="dark"] .table-hover tbody tr:hover {
            background-color: #1c1c2a;
        }

        body[data-theme="dark"] table .badge {
            background-color: #27314d;
            color: var(--sci-accent);
        }

/* ✅ Light Table */
.corporate-table-container {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    overflow-x: auto;
    width: 100%;
}
    .corporate-table-container::-webkit-scrollbar {
        height: 8px;
    }

    .corporate-table-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }


.corporate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .corporate-table th, .corporate-table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #dee2e6;
        text-align: left;
    }

    .corporate-table thead {
        background-color: #f8f9fa;
    }

    .corporate-table th {
        text-transform: uppercase;
        font-size: 0.8rem;
        font-weight: 600;
        color: #343a40;
    }

.corporate-role {
    display: inline-block;
    background-color: #e2e6ea;
    color: #212529;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: capitalize;
}

/* ✅ Card Grid */
.corporate-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.corporate-user-card {
    background: #ffffff;
    border: 1px solid #e1e5ec;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .corporate-user-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .corporate-user-card img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px solid #e9ecef;
        margin-bottom: 1rem;
        object-fit: cover;
    }

    .corporate-user-card .user-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2f3c4e;
        margin-bottom: 0.3rem;
    }

    .corporate-user-card .user-role {
        font-size: 0.9rem;
        color: #888;
        margin-bottom: 0.5rem;
    }

    .corporate-user-card .user-meta {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 0.2rem;
    }

    .corporate-user-card .btn-modern {
        background-color: #4e73df;
        color: #ffffff;
        padding: 0.45rem 1.1rem;
        border-radius: 8px;
        font-size: 0.8rem;
        border: none;
        margin: 0.2rem;
        transition: 0.2s ease-in-out;
    }

        .corporate-user-card .btn-modern:hover {
            background-color: #3752c4;
        }

    .corporate-user-card .btn-outline {
        background: none;
        border: 1px solid #4e73df;
        color: #4e73df;
        padding: 0.45rem 1.1rem;
        border-radius: 8px;
        font-size: 0.8rem;
        margin: 0.2rem;
        transition: 0.2s ease-in-out;
    }

        .corporate-user-card .btn-outline:hover {
            background-color: #4e73df;
            color: white;
        }

/* ✅ Sci-Theme Hide/Show */
[data-theme="light"] .sci-table-container,
[data-theme="light"] .sci-card-grid {
    display: none;
}

[data-theme="dark"] .corporate-table-container,
[data-theme="dark"] .corporate-card-grid {
    display: none;
}

/* ✅ SCI TABLE - Dark Mode */
.sci-table-container {
    background: var(--dark-bg);
    border: 1px solid rgba(71, 215, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.sci-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    color: var(--text-light);
    table-layout: fixed;
}

    .sci-table thead {
        background-color: #141827;
    }

    .sci-table th {
        padding: 0.75rem;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--sci-accent);
        border-bottom: 1px solid #27314d;
        text-align: left;
    }

    .sci-table td {
        padding: 0.75rem;
        border-bottom: 1px solid #1e2536;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

/* ✅ SCI Role Badge */
.sci-role {
    background: var(--sci-accent);
    color: #0b1826;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
}

/* ✅ SCI Button */
.sci-btn {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--sci-accent);
    background: transparent;
    color: var(--sci-accent);
    transition: 0.2s ease;
    cursor: pointer;
    margin-right: 5px;
}

    .sci-btn:hover {
        background-color: var(--sci-accent);
        color: #0b1826;
    }

/* ✅ SCI CARD - Dark Mode */
.sci-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.sci-card {
    background-color: #0b0c2a;
    border: 1px solid #00f0ff33;
    border-radius: 12px;
    padding: 20px;
    color: #ccf2ff;
    box-shadow: 0 0 12px #00f0ff33;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
}

    .sci-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 18px #00f0ff88;
    }

    .sci-card .name {
        font-size: 1.25rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 0.5rem;
        text-shadow: 0 0 5px #00f0ff;
    }

    .sci-card .info {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        color: #aee9ff;
    }

    .sci-card .badge {
        display: inline-block;
        background: #00f0ff;
        color: #000;
        font-size: 0.75rem;
        padding: 3px 10px;
        border-radius: 50px;
        font-weight: bold;
        margin-right: 5px;
        margin-bottom: 5px;
        box-shadow: 0 0 6px #00f0ff;
    }

    .sci-card .actions {
        margin-top: 1rem;
    }

    .sci-card .btn {
        font-size: 0.8rem;
        padding: 5px 12px;
        border: 1px solid #00f0ff88;
        background: transparent;
        color: #00f0ff;
        text-shadow: 0 0 3px #00f0ff;
        border-radius: 6px;
        transition: 0.2s ease;
        margin-right: 8px;
    }

        .sci-card .btn:hover {
            background-color: #00f0ff;
            color: #000;
            box-shadow: 0 0 10px #00f0ff;
        }

/* ✅ Sidebar (Dark Mode) */
body[data-theme="dark"] .app-sidebar {
    background-color: #0d1a3f !important;
    border-right: 1px solid #1e2c48;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6);
}

body[data-theme="dark"] .sidebar-header {
    background-color: #07102c !important;
}

body[data-theme="dark"] .app-sidebar .navigation > li > a {
    color: #a5cfff;
}

    body[data-theme="dark"] .app-sidebar .navigation > li > a i {
        color: #47d7ff !important;
    }

    body[data-theme="dark"] .app-sidebar .navigation > li.active > a,
    body[data-theme="dark"] .app-sidebar .navigation > li > a:hover {
        background-color: #1c2b4a;
        color: #ffffff;
        font-weight: bold;
    }

body[data-theme="dark"] .logo-img img {
    filter: brightness(1.1) contrast(1.2);
}

/* ✅ Fix Role Pill in Sci Cards */
.sci-card .badge {
    background: transparent !important;
    color: var(--sci-accent) !important;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--sci-accent);
    margin-right: 5px;
    margin-bottom: 5px;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 3px var(--sci-accent);
}



/* ✅ Fix Corporate Table Edit Button */
.corporate-btn.edit {
    background-color: transparent;
    color: var(--blue);
    border: 1px solid var(--blue);
}

    .corporate-btn.edit:hover {
        background-color: var(--blue);
        color: white;
    }

/* ✅ Brighten sci-card text without glow */
.sci-card .info {
    color: #e2f6ff !important; /* Bright soft blue */
    font-weight: 500;
    letter-spacing: 0.3px;
}

    .sci-card .info strong {
        color: var(--sci-accent);
        font-weight: 600;
    }

.sci-card .name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    text-shadow: none; /* Remove glow */
}

/* ✅ Fix: Logged-in user name in navbar for dark mode */
body[data-theme="dark"] .navbar .user span,
body[data-theme="dark"] .navbar .user-dropdown span {
    color: var(--text-light) !important;
}

/* ✅ Fix: Discord button background & icon style */
body[data-theme="dark"] img[title="Join us on Discord"] {
    background-color: transparent !important;
    filter: brightness(1.3) contrast(1.2);
    border-radius: 50%;
    transition: filter 0.3s ease;
}

    /* Optional hover effect for Discord icon in dark mode */
    body[data-theme="dark"] img[title="Join us on Discord"]:hover {
        filter: brightness(1.5) drop-shadow(0 0 3px var(--sci-accent));
    }

/* ✅ Navbar - Dark Theme Integration */
body[data-theme="dark"] .navbar {
    background-color: #0b0c2a !important;
    border-bottom: 1px solid #1e2536;
    box-shadow: 0 2px 4px rgba(0, 240, 255, 0.05);
}

    /* ✅ Navbar text and links */
    body[data-theme="dark"] .navbar .navbar-nav .nav-link,
    body[data-theme="dark"] .navbar .navbar-brand,
    body[data-theme="dark"] .navbar .user span {
        color: var(--sci-accent) !important;
        font-weight: 500;
        text-shadow: 0 0 2px var(--sci-accent);
    }

    /* ✅ Navbar icons (menu, fullscreen, bell, etc.) */
    body[data-theme="dark"] .navbar i,
    body[data-theme="dark"] .navbar .ft-menu,
    body[data-theme="dark"] .navbar .ft-maximize,
    body[data-theme="dark"] .navbar .ft-bell,
    body[data-theme="dark"] .navbar .ft-user,
    body[data-theme="dark"] .navbar .ft-power {
        color: var(--sci-accent) !important;
    }

    /* ✅ Avatar in dark mode */
    body[data-theme="dark"] .navbar img.avatar {
        border: 2px solid var(--sci-accent);
        border-radius: 50%;
        background-color: transparent;
    }

/* ✅ Premium button in dark mode */
body[data-theme="dark"] .premium-button {
    background: linear-gradient(to right, #00b2ff, #007bff);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
    padding: 6px 14px;
}

    body[data-theme="dark"] .premium-button:hover {
        background: linear-gradient(to right, #33d6ff, #47d7ff);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    }

/* ✅ Discord icon fix */
body[data-theme="dark"] img[title="Join us on Discord"] {
    filter: brightness(1.3) contrast(1.3);
    background: transparent !important;
    border-radius: 50%;
    padding: 3px;
    transition: filter 0.3s ease;
}

/* ✅ User dropdown menu */
body[data-theme="dark"] .dropdown-menu {
    background-color: #141827;
    border: 1px solid #27314d;
    box-shadow: 0 0 10px #00f0ff33;
}

body[data-theme="dark"] .dropdown-item {
    color: var(--text-light);
}

    body[data-theme="dark"] .dropdown-item:hover {
        background-color: #1c2b3c;
        color: var(--sci-accent);
    }

/* ✅ Hover effect for nav links */
body[data-theme="dark"] .navbar .nav-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--sci-accent);
}

/* ✅ Logo tweak for better contrast */
body[data-theme="dark"] .logo-img img {
    filter: brightness(1.4) contrast(1.2);
}

/* ✅ Toggle theme button tweak */
#toggleTheme {
    color: var(--sci-accent);
    background: transparent;
    border-radius: 50%;
    padding: 6px;
    transition: background-color 0.2s ease;
}

    #toggleTheme:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

/* ✅ Light Theme Button Styling for Cards & Tables */
body:not([data-theme="dark"]) .btn-modern,
body:not([data-theme="dark"]) .corporate-btn,
body:not([data-theme="dark"]) .btn.btn-edit-user,
body:not([data-theme="dark"]) .corporate-user-card .btn-modern,
body:not([data-theme="dark"]) .corporate-user-card .btn-outline,
body:not([data-theme="dark"]) .corporate-table-container .btn {
    background-color: var(--blue);
    border: 1px solid var(--blue);
    color: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    margin: 0.2rem;
    transition: 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
}

    /* ✅ Light Theme Hover Effect */
    body:not([data-theme="dark"]) .btn-modern:hover,
    body:not([data-theme="dark"]) .corporate-btn:hover,
    body:not([data-theme="dark"]) .btn.btn-edit-user:hover,
    body:not([data-theme="dark"]) .corporate-user-card .btn-outline:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        color: var(--white);
    }


    /* ✅ Override only .edit in Light Theme */
    body:not([data-theme="dark"]) .corporate-btn.edit {
        background-color: transparent;
        color: var(--blue);
        border: 1px solid var(--blue);
    }

        body:not([data-theme="dark"]) .corporate-btn.edit:hover {
            background-color: var(--blue);
            color: white;
        }

/* ✅ SCI Button (used in sci-card and now also in sci-table) */
.sci-card-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    border: 1px solid #00f0ff88;
    background: transparent;
    color: #00f0ff;
    text-shadow: 0 0 3px #00f0ff;
    border-radius: 6px;
    transition: 0.2s ease;
    margin-right: 8px;
}

    .sci-card-btn:hover {
        background-color: #00f0ff;
        color: #000;
        box-shadow: 0 0 10px #00f0ff;
    }


/* ✨ Theme-aware Button (Unified) */
.theme-btn {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    margin: 0.2rem;
    border: 1px solid var(--blue);
    background-color: var(--blue);
    color: var(--white);
    transition: 0.2s ease-in-out;
}

    .theme-btn:hover {
        background-color: #0056b3;
        border-color: #0056b3;
        color: var(--white);
    }

/* 🌓 Dark theme override */
body[data-theme="dark"] .theme-btn {
    background-color: transparent;
    border-color: var(--sci-accent);
    color: var(--sci-accent);
    text-shadow: 0 0 2px var(--sci-accent);
}

    body[data-theme="dark"] .theme-btn:hover {
        background-color: var(--sci-accent);
        color: #0b1826;
    }

/* ✨ Theme-aware Outline Button */
.theme-btn-outline {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    margin: 0.2rem;
    border: 1px solid var(--blue);
    background-color: transparent;
    color: var(--blue);
    transition: 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
}

    .theme-btn-outline:hover {
        background-color: var(--blue);
        color: white;
    }

/* 🌓 Dark theme override for outline */
body[data-theme="dark"] .theme-btn-outline {
    border-color: var(--sci-accent);
    color: var(--sci-accent);
}

    body[data-theme="dark"] .theme-btn-outline:hover {
        background-color: var(--sci-accent);
        color: #0b1826;
    }

/* ✨ Theme-aware Badge */
.theme-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background-color: var(--blue);
    color: #fff;
    letter-spacing: 0.4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* 🌙 Dark Theme */
body[data-theme="dark"] .theme-badge {
    background-color: rgba(71, 215, 255, 0.1);
    color: var(--sci-accent);
    border: 1px solid var(--sci-accent);
    text-shadow: 0 0 1px var(--sci-accent);
    box-shadow: 0 0 6px rgba(71, 215, 255, 0.15);
}

.dual-view.d-none {
    display: none !important;
}


body[data-theme="dark"] .modal-dialog {
    top: 80px;
    position: relative;
}

body[data-theme="dark"] .modal-title {
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}


* General basket link */
.basket-link {
    color: inherit;
    font-size: 1rem;
    transition: color 0.2s ease;
}

/* Icon style */
.basket-icon {
    font-size: 1.3rem;
    color: inherit;
}

/* Count badge – reusing theme-badge class */
.basket-count {
    position: absolute;
    top: -6px;
    right: -10px;
    font-size: 0.65rem;
    padding: 3px 6px;
    line-height: 1;
    z-index: 1;
    font-weight: 600;
    border-radius: 999px;
}

/* 🎯 Force white text on basket count badge in dark mode */
/* 🎯 Basket badge: Clean & clear in dark mode */
body[data-theme="dark"] .basket-count {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}


