:root {
    --primary-color: #b32121;
    /* Fesmos red */
    --accent-color: #b32121;
    /* Fesmos Orange */
    --text-dark: #222222;
}

body {
    /*font-family: 'Inter', sans-serif;*/
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    color: var(--text-dark);
    /* Space for fixed header */
    padding-top: 90px;
}

/* --- Navbar Styling --- */
.navbar {
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    padding: 1.2rem 0;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -1px;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border: none;
    color: var(--primary-color);
    border-top: .3em solid;
}

.nav-link:hover:after {
    width: 90%;
}

/* --- Mega Menu Logic --- */
@media (min-width: 992px) {
    .dropdown-static {
        position: static !important;
    }

    .megamenu {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        border: none;
        border-radius: 0;
        border-top: 1px solid #eee;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }

    .dropdown:hover .megamenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

.megamenu h6 {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.megamenu-list {
    list-style: none;
    padding: 0;
}

.megamenu-list li a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.megamenu-list li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Utility Buttons --- */
.btn-contact {
    background-color: var(--text-dark);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    border: none;
    transition: background 0.3s;
}

.btn-contact:hover {
    background-color: white;
    color: var(--accent-color);
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* --- Hero Placeholder --- */

.hero {
    height: 80vh;

    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.safetyhero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/Safety-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.procurehero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('https://res.cloudinary.com/elucomputing/image/upload/v1771768663/fesmos/Images/gen.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

/* --- Contact Hero --- */
.contact-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* --- Services Hero --- */
.services-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('images/services-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-attachment: fixed;
}

/* --- Policy Hero --- */
.policy-hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('images/Safety-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-attachment: fixed;
}

.service-image-wrapper {
    overflow: hidden;
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.shadow-text {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}


/* Custom background requested */
.footer-custom {
    background-color: darkred;
    /* font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;*/
}

/* Bright green button styling */
/*.btn-contact {
    background-color: #2aff9a;*/
/* Bright mint green from the image */
/*color: #000;
    border-radius: 0;*/
/* Square edges as seen in image */
/*border: none;
    transition: background-color 0.3s ease;
}*/

/* .btn-contact:hover {
        background-color: #24d683;
        color: #000;
    }*/

/* Link styling */
.footer-link {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    opacity: 0.9;
}

.footer-link:hover {
    /* color: #2aff9a;*/
    opacity: 1;
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

/* List spacing */
ul li {
    margin-bottom: 0.2rem;
}



/* --- Blazor styles --- */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* --- Blazor styles ends --- */



/* --- Featured Work Slider --- */
.featured-work-section {
    position: relative;
    overflow: hidden;
}

.featured-work-text-panel {
    background-color: #e8eef2;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.4) 10px,
            rgba(255, 255, 255, 0.4) 20px);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.featured-work-content {
    max-width: 480px;
}

.featured-work-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 1rem;
}

.featured-work-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.featured-work-category {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.25rem;
}

.featured-work-desc {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.btn-featured-learn {
    background-color: #2aff9a;
    color: #000;
    border: none;
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.btn-featured-learn:hover {
    background-color: #24d683;
    color: #000;
}

.featured-work-image-panel {
    min-height: 450px;
    overflow: hidden;
}

.featured-work-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider controls - bottom right */
.featured-work-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.featured-progress-wrap {
    width: 120px;
}

.featured-progress-track {
    height: 4px;
    background-color: #d0d0d0;
    border-radius: 2px;
    overflow: hidden;
}

.featured-progress-fill {
    height: 100%;
    width: 25%;
    background-color: darkred;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.featured-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-featured-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-featured-nav:hover {
    background: #f5f5f5;
}

.btn-featured-next {
    background: #e8e8e8;
    border-color: #ddd;
}


/* --- Client Section --- */
.client-section {
    padding: 3rem 0;
    background-color: #f8f8f8;
}

.client-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

.clients-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    cursor: pointer;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .clients-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .client-logo {
        height: 80px;
    }

    .client-section h3 {
        font-size: 1.25rem;
    }
}

/* --- Company Page Styles --- */
.company-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent !important;
}

.company-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;

}

.company-feature-card i {
    transition: transform 0.3s ease;
}

.company-feature-card:hover i {
    transform: scale(1.1);
}

/* --- Projects Page --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.filter-btn {
    border: 2px solid var(--text-dark);
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-dark);
    color: white;
}

/* --- Products Page --- */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.request-quote-btn {
    transition: all 0.3s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.request-quote-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Pagination theme colors */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    color: var(--primary-color);
    background-color: rgba(179, 33, 33, 0.08);
    border-color: transparent;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #aaa;
}

/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

/* Admin Shell - Main Container */
.admin-shell {
    min-height: 100vh;
    background-color: #f4f6f9;
    display: flex;
}

/* --- Sidebar Navigation --- */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-brand-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 1rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #b0b8cc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: var(--primary-color);
}

.sidebar-link.active {
    background: rgba(179, 33, 33, 0.15);
    color: #fff;
    border-left-color: var(--primary-color);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link span {
    flex-grow: 1;
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a8197;
    padding: 1rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

/* --- Topbar --- */
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    height: 62px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-topbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.topbar-left {
    flex-shrink: 0;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1.5rem;
    border-right: 1px solid #e0e0e0;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-role {
    display: flex;
    align-items: center;
}

.user-role .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    font-weight: 600;
}

/* --- Main content area --- */
.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #f4f6f9;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
}

/* Admin Footer */
.admin-footer {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Page header --- */
.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* --- Stat cards --- */
.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.bg-primary-soft { 
    background-color: rgba(179, 33, 33, 0.1); 
}

.bg-primary-soft i {
    color: var(--primary-color);
}

.bg-success-soft { 
    background-color: rgba(25, 135, 84, 0.1); 
}

.bg-success-soft i {
    color: #198754;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

/* --- Quick action cards --- */
.admin-quick-action-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-quick-action-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.admin-quick-action-card i {
    transition: transform 0.3s ease;
}

.admin-quick-action-card:hover i {
    transform: scale(1.1);
}

/* --- Admin table --- */
.admin-table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-table {
    margin: 0;
    font-size: 0.9rem;
}

.admin-table thead th {
    background: #f8f9fb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ebebeb;
    padding: 0.9rem 1rem;
}

.admin-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f3f3;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background-color: #fafafa;
}

.admin-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* --- Loading / empty state --- */
.admin-loading {
    padding: 3rem;
    text-align: center;
    color: #6b7280;
}

.admin-empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px dashed #ddd;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* --- Form card --- */
.admin-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.admin-input {
    border-radius: 8px;
    border-color: #e0e0e0;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 33, 33, 0.1);
}

/* --- Preview card --- */
.admin-preview-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-preview-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    max-height: 280px;
    border: 1px solid #ebebeb;
}

.admin-preview-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 2px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.admin-preview-placeholder i {
    font-size: 2.5rem;
}

/* --- Confirm modal --- */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* --- Search group --- */
.admin-search-group {
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.admin-search-group .input-group-text {
    border-right: none;
    border-radius: 8px 0 0 8px;
    border-color: #e0e0e0;
}

.admin-search-group .form-control {
    border-left: none;
    border-color: #e0e0e0;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
    /* Hide sidebar on mobile, use hamburger menu if needed */
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        display: none;
        width: 100%;
        min-width: auto;
        height: auto;
        position: relative;
        top: auto;
    }

    .admin-sidebar.show {
        display: flex;
    }

    .admin-content {
        width: 100%;
    }

    .admin-topbar {
        padding: 0 1rem;
        height: 56px;
    }

    .admin-topbar-container {
        gap: 1rem;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .topbar-right {
        gap: 0.75rem;
    }

    .user-section {
        display: none;
    }

    .admin-main {
        padding: 1.5rem;
    }

    .admin-page-title {
        font-size: 1.5rem;
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .admin-quick-action-card {
        padding: 1.5rem;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table thead th {
        padding: 0.6rem 0.75rem;
        font-size: 0.7rem;
    }

    .admin-table tbody td {
        padding: 0.6rem 0.75rem;
    }

    .admin-thumb {
        width: 40px;
        height: 40px;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* --- File Upload Component --- */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    display: block;
    width: 100%;
}

.file-upload-wrapper input[type="file"]::file-selector-button {
    padding: 0.6rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.file-upload-wrapper input[type="file"]::file-selector-button:hover {
    background-color: #8b1818;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 33, 33, 0.3);
}

.file-upload-wrapper input[type="file"]::-webkit-file-upload-button {
    padding: 0.6rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.file-upload-wrapper input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #8b1818;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 33, 33, 0.3);
}

/* --- File Upload Blue Theme Variant --- */
.file-upload-wrapper.file-upload-blue input[type="file"]::file-selector-button {
    padding: 0.6rem 1rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.file-upload-wrapper.file-upload-blue input[type="file"]::file-selector-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.file-upload-wrapper.file-upload-blue input[type="file"]::-webkit-file-upload-button {
    padding: 0.6rem 1rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.file-upload-wrapper.file-upload-blue input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* --- Authentication Pages Styling ---

.auth-container {
    min-height: calc(100vh - 90px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

/* Admin Layout Auth Pages - Centered in main content area */
.auth-admin-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #f4f6f9;
    min-height: calc(100vh - 152px);
    /* 100vh minus topbar (62px) minus footer (90px) */
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-admin-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-content {
    background: white;
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-admin-content {
    background: white;
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-input {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(179, 33, 33, 0.1);
    outline: none;
}

.auth-checkbox {
    border-color: #d0d0d0;
    border-radius: 4px;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-checkbox:focus {
    box-shadow: 0 0 0 3px rgba(179, 33, 33, 0.1);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.btn-auth {
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border: none;
    font-family: "Montserrat", sans-serif;
}

.btn-primary.btn-auth {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary.btn-auth:hover {
    background-color: #8b1818;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 33, 33, 0.3);
}

.btn-primary.btn-auth:active {
    transform: translateY(0);
}

.btn-outline-primary.btn-auth {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary.btn-auth:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 33, 33, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #999;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.auth-divider span {
    padding: 0 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.auth-footer p {
    margin-bottom: 0.75rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.auth-link:hover {
    color: #8b1818;
    text-decoration: none;
}

.auth-help-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.external-auth {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.external-auth-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Alert styling for auth pages */
.alert.alert-danger {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.validation-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-content {
        padding: 2rem;
    }

    .auth-admin-content {
        padding: 2rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .auth-admin-wrapper {
        max-width: 100%;
    }

    .auth-admin-container {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .btn-auth {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* --- Product Categories Component --- */
.product-categories-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.category-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(179, 33, 33, 0.15) !important;
    transform: translateY(-8px);
}

.category-card:hover .category-image-container img {
    transform: scale(1.05);
}

.category-card:hover .category-title {
    color: var(--primary-color);
}

.category-title {
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.category-description {
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .category-image-container {
        height: 180px !important;
    }

    .category-title {
        font-size: 1rem;
    }
}
