﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 6px #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 14px;
}

.logo img {
    height: 36px;
}

.categories .dropdown-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #34495e;
    padding: 6px 14px;
    border-radius: 10px;
    transition: background 0.18s;
}

    .categories .dropdown-btn:hover {
        background: #f2f2f2;
    }

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 3px 8px;
}

    .search-bar input[type="text"] {
        border: none;
        background: none;
        outline: none;
        font-size: 1rem;
        width: 140px;
        padding: 5px 8px;
    }

    .search-bar button {
        background: none;
        border: none;
        color: #1976d2;
        font-size: 1.2rem;
        cursor: pointer;
        margin-right: 4px;
    }

.quick-links a {
    color: #3c4251;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.18s;
}

    .quick-links a:hover {
        background: #f3f3f3;
        color: #181818;
    }

.user-section {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.07rem;
}

    .user-section a {
        color: #1976d2;
        text-decoration: none;
        margin-right: 4px;
        margin-left: 2px;
    }

    .user-section .logout-link {
        color: #e53935;
        font-weight: bold;
    }

.cart {
    position: relative;
    font-size: 1.3rem;
    color: #1976d2;
    margin-left: 8px;
}

.cart-count {
    position: absolute;
    left: 16px;
    top: -6px;
    background: #e53935;
    color: #fff;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 1px 6px;
    font-weight: bold;
}

.business-cta {
    background: #43a047;
    color: #fff;
    padding: 7px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 4px;
    transition: background 0.18s;
}

    .business-cta:hover {
        background: #357a38;
        color: #fff;
    }

@media (max-width: 1024px) {
    .sticky-header {
        flex-wrap: wrap;
        padding: 10px 8px;
        gap: 7px;
    }

    .search-bar input[type="text"] {
        width: 95px;
    }

    .quick-links {
        display: none;
    }
}

@media (max-width: 680px) {
    .sticky-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 2vw;
    }

    .logo, .categories, .search-bar, .user-section, .cart, .business-cta {
        margin: 0 0 5px 0;
    }

        .search-bar input[type="text"] {
            width: 60vw;
        }
}
.app-shell {
    display: flex;
    gap: 16px
}

.app-sidebar {
    min-width: 240px
}

.app-main {
    flex: 1
}
/* ---- Dashboard (User) ---- */
.dashboard-cards .card {
    border-radius: 14px;
}

.table thead th {
    white-space: nowrap;
}

.table td, .table th {
    vertical-align: middle;
}
/* --- Shell کلی پنل (ثابت) --- */
.app-shell {
    display: flex;
    gap: 16px
}

.app-sidebar {
    min-width: 260px
}

.app-main {
    flex: 1
}

/* --- کارت‌های KPI --- */
.kpi-card {
    border-radius: 16px
}

    .kpi-card .kpi-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef2ff;
    }

    .kpi-card .kpi-value {
        font-weight: 700;
        font-size: 1.35rem
    }

/* --- جدول واکنش‌گرا --- */
.table thead th {
    white-space: nowrap
}

.table td, .table th {
    vertical-align: middle
}

/* تبدیل جدول به کارت روی موبایل خیلی کوچک (اختیاری/زیباتر) */
@media (max-width: 576px) {
    .table.table-mobile thead {
        display: none
    }

    .table.table-mobile tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        overflow: hidden
    }

    .table.table-mobile tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: .6rem .9rem
    }

        .table.table-mobile tbody td::before {
            content: attr(data-label);
            color: #6c757d
        }
}

/* فاصله‌های عمومی داشبورد */
.dashboard-cards .card {
    border-radius: 16px
}

