﻿:root {
    --primary: #f7941d;
    --primary-dark: #d97706;
    --dark: #171717;
    --dark-light: #242424;
    --text: #333333;
    --muted: #777777;
    --white: #ffffff;
    --border: #e5e5e5;
    --light: #f7f7f7;
    --danger: #dc3545;
    --success: #198754;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* ================================
   LOGIN PAGE
================================ */

.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #171717 0%, #292929 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 220px;
    max-height: 90px;
    object-fit: contain;
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.login-heading h1 {
    font-size: 27px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.login-heading p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 14px;
    z-index: 2;
}

.input-icon .form-control {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding-left: 43px;
    font-size: 14px;
    box-shadow: none;
}

.input-icon .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.12);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.remember-me {
    font-size: 13px;
    color: #666666;
}

.remember-me input {
    accent-color: var(--primary);
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-message {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.login-footer {
    border-top: 1px solid var(--border);
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.login-footer span {
    color: #888888;
    font-size: 11px;
}

.login-footer span i {
    color: var(--success);
    margin-right: 4px;
}

.login-footer a {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--dark);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 575px) {

    .admin-login-page {
        padding: 20px 12px;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ADMIN LAYOUT
======================================== */

.admin-body {
    margin: 0;
    padding: 0;
    background: #f5f6f8;
    color: var(--text);
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--dark);
    color: var(--white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-logo {
    height: 78px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo a {
    display: flex;
    align-items: center;
}

.sidebar-logo img {
    max-width: 185px;
    max-height: 55px;
    object-fit: contain;
}

.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 20px;
}

.sidebar-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
}

.sidebar-navigation::-webkit-scrollbar {
    width: 5px;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar-section-title {
    color: #888888;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 18px 14px 8px;
}

.admin-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    margin-bottom: 3px;
}

.admin-nav-link {
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c9c9c9;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.admin-nav-link i:first-child {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.admin-nav-link .submenu-arrow {
    margin-left: auto;
    width: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.has-submenu.open > .admin-nav-link {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.has-submenu.open > .admin-nav-link .submenu-arrow {
    transform: rotate(180deg);
}

.admin-submenu {
    list-style: none;
    margin: 3px 0 5px;
    padding: 0 0 0 43px;
    display: none;
}

.has-submenu.open > .admin-submenu {
    display: block;
}

.admin-submenu li {
    margin: 0;
}

.admin-submenu a {
    display: block;
    padding: 8px 10px;
    color: #999999;
    font-size: 12px;
    text-decoration: none;
    border-left: 1px solid #444444;
    transition: all 0.2s ease;
}

.admin-submenu a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-badge {
    margin-left: auto;
    min-width: 19px;
    height: 19px;
    padding: 2px 5px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.sidebar-bottom {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-website-link,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 7px;
    color: #bdbdbd;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-website-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-logout:hover {
    color: #ff8b8b;
    background: rgba(220, 53, 69, 0.08);
}

.sidebar-website-link i,
.sidebar-logout i {
    width: 18px;
    text-align: center;
}


/* ========================================
   MAIN AREA
======================================== */

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 78px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-page-title {
    color: var(--dark);
    font-size: 19px;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-view-site {
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-view-site:hover {
    color: var(--primary-dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--border);
}

.admin-user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff3e4;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.admin-user-info strong {
    color: var(--dark);
    font-size: 12px;
}

.admin-user-info small {
    color: #999999;
    font-size: 10px;
}

.topbar-logout {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777777;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-logout:hover {
    background: #fff0f0;
    color: var(--danger);
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--dark);
    font-size: 20px;
    padding: 5px;
}


/* ========================================
   CONTENT
======================================== */

.admin-content {
    flex: 1;
    padding: 28px;
}

.admin-footer {
    min-height: 55px;
    padding: 15px 28px;
    background: var(--white);
    border-top: 1px solid var(--border);
    color: #999999;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ========================================
   MOBILE OVERLAY
======================================== */

.admin-overlay {
    display: none;
}

body.sidebar-open {
    overflow: hidden;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .admin-overlay.show {
        display: block;
    }

    .admin-topbar {
        padding: 0 20px;
    }

    .admin-content {
        padding: 22px 20px;
    }

    .admin-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 767px) {

    .admin-topbar {
        height: 68px;
    }

    .topbar-page-title {
        font-size: 16px;
    }

    .topbar-view-site span {
        display: none;
    }

    .admin-user-info {
        display: none;
    }

    .admin-user {
        padding-left: 10px;
    }

    .topbar-right {
        gap: 8px;
    }

    .admin-content {
        padding: 18px 15px;
    }

    .admin-footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .topbar-view-site {
        display: none;
    }

    .topbar-page-title {
        font-size: 15px;
    }

    .admin-content {
        padding: 15px 12px;
    }
}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-wrapper {
    width: 100%;
}

.dashboard-welcome {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-welcome h1 {
    margin: 0 0 5px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
}

.dashboard-welcome h1 span {
    color: var(--primary-dark);
}

.dashboard-welcome p {
    margin: 0;
    color: #777777;
    font-size: 13px;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777777;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-date i {
    color: var(--primary);
}


/* ========================================
   STAT CARDS
======================================== */

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-stat-card {
    min-height: 175px;
    padding: 23px;
    border: 0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transition: all 0.25s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* Decorative circle */
.dashboard-stat-card::before {
    content: "";
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    right: -45px;
    top: -50px;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -25px;
    bottom: -45px;
    background: rgba(255, 255, 255, 0.08);
}

/* Card colors */

.dashboard-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #f7941d, #e06d00);
}

.dashboard-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #2878d8, #1554a5);
}

.dashboard-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #7b55c7, #51329b);
}

.dashboard-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #20a56b, #087c4b);
}


/* Icon */

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 2;
}

/* Remove old icon backgrounds */

.stat-icon-products,
.stat-icon-categories,
.stat-icon-blog,
.stat-icon-enquiries {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}


/* Content */

.stat-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.stat-content span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
}

.stat-content strong {
    color: var(--white);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
}


/* Manage link */

.stat-link {
    position: absolute;
    left: 23px;
    bottom: 18px;
    right: auto;
    color: rgba(255, 255, 255, 0.90);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    z-index: 3;
}

.stat-link i {
    margin-left: 5px;
    font-size: 9px;
    transition: transform 0.2s ease;
}

.stat-link:hover {
    color: var(--white);
}

.stat-link:hover i {
    transform: translateX(3px);
}


/* ========================================
   SMALL STAT CARDS
======================================== */

.dashboard-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-small-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.dashboard-small-card:hover {
    transform: translateY(-2px);
    border-color: #d8d8d8;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.06);
}

.small-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 11px;
    background: #fff3e4;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.dashboard-small-card span {
    display: block;
    color: #777777;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
}

.dashboard-small-card strong {
    display: block;
    color: var(--dark);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

/* ========================================
   SMALL STATISTICS
======================================== */

.dashboard-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-small-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.small-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f6f6f6;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dashboard-small-card span {
    display: block;
    color: #888888;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dashboard-small-card strong {
    display: block;
    color: var(--dark);
    font-size: 19px;
    font-weight: 800;
}


/* ========================================
   MAIN DASHBOARD GRID
======================================== */

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 22px;
    margin-bottom: 22px;
}

.dashboard-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-panel-header {
    min-height: 76px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-panel-header h2 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 750;
    margin: 0 0 3px;
}

.dashboard-panel-header p {
    color: #888888;
    font-size: 10px;
    margin: 0;
}

.panel-view-all {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.panel-view-all:hover {
    color: var(--dark);
}


/* ========================================
   ENQUIRY TABLE
======================================== */

.dashboard-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.dashboard-table th {
    background: #fafafa;
    color: #777777;
    border-bottom: 1px solid var(--border);
    padding: 11px 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 12px 15px;
    color: #555555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    vertical-align: middle;
}

.dashboard-table tr:last-child td {
    border-bottom: 0;
}

.dashboard-table tr:hover td {
    background: #fffaf4;
}

.status-read,
.status-unread {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.status-read {
    background: #e9f7ef;
    color: #198754;
}

.status-unread {
    background: #fff1e1;
    color: #d97706;
}


/* ========================================
   QUICK ACTIONS
======================================== */

.quick-actions {
    padding: 7px 18px;
}

.quick-action {
    display: grid;
    grid-template-columns: 38px 1fr 12px;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text);
    text-decoration: none;
}

.quick-action:last-child {
    border-bottom: 0;
}

.quick-action:hover strong {
    color: var(--primary-dark);
}

.quick-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff3e4;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.quick-action strong {
    display: block;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.quick-action span {
    display: block;
    color: #999999;
    font-size: 9px;
}

.quick-action > i {
    color: #bbbbbb;
    font-size: 9px;
}


/* ========================================
   WEBSITE SHORTCUTS
======================================== */

.dashboard-shortcuts {
    margin-bottom: 20px;
}

.website-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 18px;
}

.website-shortcut {
    min-height: 82px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.website-shortcut i {
    color: var(--primary-dark);
    font-size: 17px;
}

.website-shortcut span {
    font-size: 10px;
    font-weight: 600;
}

.website-shortcut:hover {
    border-color: var(--primary);
    color: var(--dark);
    background: #fffaf4;
}


/* ========================================
   DASHBOARD RESPONSIVE
======================================== */

@media (max-width: 1200px) {

    .dashboard-stat-grid,
    .dashboard-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .website-shortcut-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {

    .dashboard-welcome {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-welcome h1 {
        font-size: 19px;
    }

    .dashboard-date {
        white-space: normal;
    }

    .dashboard-stat-grid,
    .dashboard-small-grid {
        grid-template-columns: 1fr;
    }

    .website-shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px 11px;
    }
}

@media (max-width: 480px) {

    .website-shortcut-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .dashboard-panel-header {
        padding: 15px;
    }

    .quick-actions {
        padding: 5px 13px;
    }
}

@media (max-width: 1200px) {

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .website-shortcut-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {

    .dashboard-welcome {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-welcome h1 {
        font-size: 19px;
    }

    .dashboard-date {
        white-space: normal;
    }

    .dashboard-stat-grid,
    .dashboard-small-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        min-height: 165px;
    }

    .stat-content strong {
        font-size: 36px;
    }

    .website-shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px 11px;
    }
}

@media (max-width: 480px) {

    .dashboard-stat-card {
        min-height: 160px;
        padding: 20px;
    }

    .stat-content strong {
        font-size: 34px;
    }

    .website-shortcut-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .dashboard-panel-header {
        padding: 15px;
    }

    .quick-actions {
        padding: 5px 13px;
    }
}

/* ========================================
   PRIMARY STAT CARDS
======================================== */

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-stat-card {
    min-height: 190px;
    padding: 22px 23px;
    border: 0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transition: all 0.25s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    right: -45px;
    top: -50px;
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -25px;
    bottom: -45px;
    background: rgba(255, 255, 255, 0.08);
}

/* Card colors */

.dashboard-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #f7941d, #e06d00);
}

.dashboard-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #2878d8, #1554a5);
}

.dashboard-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #7b55c7, #51329b);
}

.dashboard-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #20a56b, #087c4b);
}

/* Icon */

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    z-index: 2;
}

.stat-icon-products,
.stat-icon-categories,
.stat-icon-blog,
.stat-icon-enquiries {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

/* Content */

.stat-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-bottom: 35px;
}

.stat-content span {
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-content strong {
    display: block;
    color: var(--white);
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0;
}

/* Manage / View link */

.stat-link {
    position: absolute;
    left: 23px;
    bottom: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    text-decoration: none;
    z-index: 3;
    white-space: nowrap;
}

.stat-link i {
    margin-left: 5px;
    font-size: 9px;
    transition: transform 0.2s ease;
}

.stat-link:hover {
    color: var(--white);
}

.stat-link:hover i {
    transform: translateX(3px);
}
@media (max-width: 767px) {

    .dashboard-welcome {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-welcome h1 {
        font-size: 19px;
    }

    .dashboard-date {
        white-space: normal;
    }

    .dashboard-stat-grid,
    .dashboard-small-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        min-height: 185px;
    }

    .stat-content strong {
        font-size: 34px;
    }

    .website-shortcut-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px 11px;
    }
}

@media (max-width: 480px) {

    .dashboard-stat-card {
        min-height: 180px;
        padding: 20px;
    }

    .stat-content strong {
        font-size: 32px;
    }

    .stat-link {
        left: 20px;
        bottom: 14px;
    }

    .website-shortcut-grid {
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    .dashboard-panel-header {
        padding: 15px;
    }

    .quick-actions {
        padding: 5px 13px;
    }
}

/* ========================================
   ADMIN PAGE COMMON
======================================== */

.admin-page {
    width: 100%;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-page-header h1 {
    color: var(--dark);
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 4px;
}

.admin-page-header p {
    color: #888888;
    font-size: 12px;
    margin: 0;
}

.admin-primary-btn {
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: var(--white);
    padding: 11px 17px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.admin-primary-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.admin-secondary-btn {
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: #666666;
    padding: 10px 17px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-secondary-btn:hover {
    background: #f7f7f7;
    color: var(--dark);
}


/* ========================================
   ALERT
======================================== */

.admin-alert {
    display: block;
    border-radius: 8px;
    padding: 11px 15px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
}

.admin-alert-success {
    background: #eaf8f1;
    color: #157347;
    border: 1px solid #c9ecd9;
}

.admin-alert-danger {
    background: #fff0f0;
    color: #b02a37;
    border: 1px solid #f3c6ca;
}


/* ========================================
   FORM CARD
======================================== */

.admin-form-card {
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
}

.admin-form-card.show {
    display: block;
}

.admin-form-header {
    min-height: 72px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-form-header h2,
.admin-table-header h2 {
    color: var(--dark);
    font-size: 15px;
    font-weight: 750;
    margin: 0 0 3px;
}

.admin-form-header p,
.admin-table-header p {
    color: #888888;
    font-size: 10px;
    margin: 0;
}

.admin-form-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: #f5f5f5;
    color: #777777;
    cursor: pointer;
}

.admin-form-close:hover {
    background: #fff0f0;
    color: #dc3545;
}

.admin-form-body {
    padding: 22px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-field {
    min-width: 0;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field label {
    display: block;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
}

.admin-field label span {
    color: #dc3545;
}

.admin-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px 12px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.10);
}

.admin-textarea {
    height: auto;
    resize: vertical;
    min-height: 95px;
}

.admin-field small {
    display: block;
    color: #999999;
    font-size: 9px;
    margin-top: 5px;
}

.admin-file-input {
    width: 100%;
    padding: 9px;
    border: 1px dashed #d5d5d5;
    border-radius: 7px;
    background: #fafafa;
    font-size: 11px;
}

.current-image-label {
    display: block;
    color: #777777;
    font-size: 10px;
    margin-top: 7px;
}

.admin-switch-wrapper {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555555;
    font-size: 12px;
}

.admin-switch-wrapper input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.admin-form-actions {
    border-top: 1px solid var(--border);
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ========================================
   TABLE CARD
======================================== */

.admin-table-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table-header {
    min-height: 78px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-search-box {
    width: 240px;
    position: relative;
}

.admin-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 11px;
}

.admin-search-input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 10px 8px 32px;
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.admin-search-input:focus {
    border-color: var(--primary);
}


/* ========================================
   DATA TABLE
======================================== */

.admin-data-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.admin-data-table th {
    background: #fafafa;
    color: #777777;
    border-bottom: 1px solid var(--border);
    padding: 12px 15px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-data-table td {
    padding: 12px 15px;
    color: #555555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    vertical-align: middle;
}

.admin-data-table tr:last-child td {
    border-bottom: 0;
}

.admin-data-table tr:hover td {
    background: #fffaf4;
}

.table-number {
    color: #999999;
    font-size: 10px;
    font-weight: 700;
}

.category-table-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 220px;
}

.category-table-image {
    width: 48px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.category-table-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-table-item strong {
    display: block;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.category-table-item small {
    display: block;
    color: #999999;
    font-size: 9px;
}

.status-active,
.status-inactive {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.status-active {
    background: #e9f7ef;
    color: #198754;
}

.status-inactive {
    background: #f1f1f1;
    color: #777777;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.table-action {
    width: 29px;
    height: 29px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.2s ease;
}

.edit-action {
    background: #eef4ff;
    color: #4274d9;
}

.edit-action:hover {
    background: #4274d9;
    color: var(--white);
}

.status-action {
    background: #fff5e8;
    color: #d97706;
}

.status-action:hover {
    background: #d97706;
    color: var(--white);
}

.delete-action {
    background: #fff0f0;
    color: #dc3545;
}

.delete-action:hover {
    background: #dc3545;
    color: var(--white);
}


/* ========================================
   GRIDVIEW PAGINATION
======================================== */

.admin-data-table tr:last-child td {
    border-bottom: 0;
}

.admin-data-table .pager td {
    padding: 15px;
    background: #fafafa;
}

.admin-data-table .pager a,
.admin-data-table .pager span {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    border-radius: 5px;
    font-size: 10px;
    text-decoration: none;
}

.admin-data-table .pager a {
    border: 1px solid var(--border);
    color: #666666;
    background: var(--white);
}

.admin-data-table .pager span {
    background: var(--primary);
    color: var(--white);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 767px) {

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-primary-btn {
        width: 100%;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-field-full {
        grid-column: auto;
    }

    .admin-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-search-box {
        width: 100%;
    }

    .admin-form-body {
        padding: 18px;
    }
}

/* ========================================
   PRODUCT IMAGES
======================================== */

.product-image-product-select {
    max-width: 600px;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 20px;
}

.product-image-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.2s ease;
}

.product-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.product-image-preview {
    width: 100%;
    height: 170px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-info {
    padding: 13px;
}

.product-image-info strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image-info > span {
    display: block;
    color: #999999;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #888888;
    font-size: 9px;
}

.product-image-actions {
    padding: 10px 13px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 5px;
}

.no-images-panel {
    padding: 50px 20px;
    text-align: center;
    color: #999999;
}

.no-images-panel i {
    font-size: 35px;
    color: #d6d6d6;
    margin-bottom: 12px;
}

.no-images-panel h3 {
    color: #777777;
    font-size: 14px;
    margin-bottom: 5px;
}

.no-images-panel p {
    font-size: 11px;
    margin: 0;
}

@media (max-width: 1200px) {
    .product-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .product-images-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 12px;
    }

    .product-image-preview {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .product-images-grid {
        grid-template-columns: 1fr;
    }

    .product-image-preview {
        height: 190px;
    }
}   
.blog-category-form {
    max-width: 900px;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-alert-success {
    background: #e9f8ef;
    border-color: #b8e5c8;
    color: #18743a;
}

.admin-alert-danger {
    background: #fff0f0;
    border-color: #f1b5b5;
    color: #a51f1f;
}

.admin-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search-box .admin-input {
    min-width: 230px;
}

@media (max-width: 767px) {
    .admin-search-box {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-search-box .admin-input {
        width: 100%;
        min-width: 0;
    }
}

.blog-post-filter-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.blog-content-editor {
    min-height: 320px;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.6;
}

.blog-current-image {
    display: block;
    width: 180px;
    height: 110px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.blog-post-table-title strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.blog-post-table-title span {
    display: block;
    color: #999999;
    font-size: 10px;
    line-height: 1.4;
}

.status-featured {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #fff4d6;
    color: #9a6700;
    font-size: 9px;
    font-weight: 700;
}

.status-normal {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f2f2f2;
    color: #777777;
    font-size: 9px;
    font-weight: 700;
}

.feature-action {
    color: #d89b00;
}

@media (max-width: 991px) {
    .blog-post-filter-area {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .blog-post-filter-area {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filter-select {
        width: 100%;
    }

    .admin-search-box {
        width: 100%;
    }

    .blog-content-editor {
        min-height: 240px;
    }
}
.service-area-current-image {
    display: block;
    width: 180px;
    height: 110px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.service-area-table-name strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.service-area-table-name span {
    display: block;
    color: #999999;
    font-size: 10px;
    line-height: 1.4;
}

.admin-field-full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .service-area-current-image {
        width: 150px;
        height: 95px;
    }
}

.faq-answer-editor {
    min-height: 180px;
}

.faq-table-question strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.faq-table-question span {
    display: inline-block;
    color: #888888;
    font-size: 9px;
    background: #f4f4f4;
    padding: 3px 7px;
    border-radius: 12px;
}

.faq-table-answer {
    max-width: 400px;
    color: #666666;
    font-size: 11px;
    line-height: 1.5;
}

.admin-field-full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .faq-answer-editor {
        min-height: 140px;
    }

    .faq-table-answer {
        max-width: 250px;
    }
}
.application-description-editor {
    min-height: 220px;
}

.application-current-image {
    display: block;
    width: 180px;
    height: 110px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.application-table-name strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.application-table-name span {
    display: block;
    color: #999999;
    font-size: 10px;
    line-height: 1.4;
}

.application-table-description {
    max-width: 360px;
    color: #666666;
    font-size: 11px;
    line-height: 1.5;
}

.feature-action {
    color: #d89b00;
}

@media (max-width: 767px) {
    .application-current-image {
        width: 150px;
        height: 95px;
    }

    .application-table-description {
        max-width: 250px;
    }

    .application-description-editor {
        min-height: 160px;
    }
}
.gallery-category-current-image {
    display: block;
    width: 180px;
    height: 110px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.gallery-category-table-name strong {
    display: block;
    color: var(--dark);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.gallery-category-table-name span {
    display: block;
    color: #999999;
    font-size: 10px;
    line-height: 1.4;
}

.gallery-category-table-description {
    max-width: 360px;
    color: #666666;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .gallery-category-current-image {
        width: 150px;
        height: 95px;
    }

    .gallery-category-table-description {
        max-width: 250px;
    }
}