@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Inter', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
    --color-brand: #0D6B58;
    --color-brand-dark: #0A5546;
    --color-brand-light: #138A6E;
    --color-sidebar: #1a1a2e;
}

/* ==============================
   BANKING Design System
   Primary: Deep Sea Green #0D6B58
   ============================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.inline {
    display: inline-flex;
    vertical-align: middle;
}

/* ------------------------------
   Buttons
   ------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid #0D6B58;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #0D6B58;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0A5546;
}

.btn-outline {
    border: 1px solid rgba(13, 107, 88, 0.3);
    color: #0D6B58;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(13, 107, 88, 0.06);
}

.btn-green {
    background-color: #0D6B58;
    color: #ffffff;
}
.btn-green:hover { background-color: #0A5546; }

.btn-blue {
    background-color: #2563eb;
    color: #ffffff;
}
.btn-blue:hover { background-color: #1d4ed8; }

.btn-orange {
    background-color: #d97706;
    color: #ffffff;
}
.btn-orange:hover { background-color: #b45309; }

.btn-red {
    background-color: #dc2626;
    color: #ffffff;
}
.btn-red:hover { background-color: #b91c1c; }

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
}

.btn-muted {
    padding: 0.55rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #eef2f0;
    color: #0D6B58;
    transition: all 0.15s ease;
}
.btn-muted:hover { background-color: #e2e9e6; }

.btn-danger {
    padding: 0.55rem 1.1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #fee2e2;
    color: #b91c1c;
    transition: all 0.15s ease;
}
.btn-danger:hover { background-color: #fecaca; }

/* ------------------------------
   Public Layout
   ------------------------------ */

.public-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #ebf0ee;
}

.public-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.public-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.public-logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0D6B58;
    letter-spacing: 0.02em;
}

.public-logo-footer .public-logo-text {
    color: #ffffff;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.public-nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.15s ease;
}
.public-nav-links a:not(.btn):hover {
    color: #0D6B58;
}
.public-nav-links .btn-primary,
.public-nav-links .btn-green {
    color: #ffffff;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.public-nav-toggle {
    display: none;
    color: #334155;
    padding: 0.35rem;
}

.public-hero {
    background: linear-gradient(180deg, #EBF6F2 0%, #ffffff 100%);
    padding: 3.5rem 0 2.5rem;
}

.public-main {
    flex: 1;
}

.public-footer {
    background-color: #1a1a2e;
    color: #cbd5e1;
    margin-top: 4rem;
    padding: 3.5rem 0 1.5rem;
}

.public-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.public-footer-brand .public-logo-footer {
    margin-bottom: 1rem;
}

.public-footer-tagline {
    max-width: 280px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.public-footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0 0 1rem;
}

.public-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer-links li {
    margin-bottom: 0.6rem;
}

.public-footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.public-footer-links a:hover {
    color: #ffffff;
}

.public-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.public-footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* ------------------------------
   App Layout (Customer + Admin)
   ------------------------------ */

.app-layout {
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background-color: #1a1a2e;
    color: #8d93a8;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.sidebar-logo-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sidebar-admin-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #34d399;
    background-color: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    width: fit-content;
}

.sidebar-close {
    display: none;
    color: #94a3b8;
    padding: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1.5rem;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 2px 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8d93a8;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-nav-link:hover {
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-nav-item.active > .sidebar-nav-link,
.sidebar-nav-item.active > a.sidebar-nav-link {
    color: #34d399;
    background-color: rgba(52, 211, 153, 0.08);
    border-left-color: #0D6B58;
}

.sidebar-nav-link svg {
    flex-shrink: 0;
}

.sidebar-badge {
    margin-left: auto;
    background-color: #0D6B58;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
}

.sidebar-nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0.9rem 1.25rem;
}

.sidebar-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0 1.25rem 0.5rem;
}

.sidebar-nav-form {
    padding: 0;
    display: block;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8d93a8;
    background: none;
    text-align: left;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-nav-btn:hover {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.06);
}

/* Main area */
.app-main {
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-toggle {
    display: none;
    align-items: center;
    color: #475569;
    padding: 0.35rem;
}

.topbar-toggle:hover {
    color: #0D6B58;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.45rem 0.8rem;
    width: 320px;
    color: #94a3b8;
}

.topbar-search:focus-within {
    outline: 2px solid rgba(13, 107, 88, 0.25);
}

.topbar-search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.875rem;
    color: #1e293b;
    width: 100%;
}

.topbar-search-input::placeholder {
    color: #94a3b8;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    color: #475569;
    transition: all 0.15s ease;
}

.topbar-icon-btn:hover {
    background-color: #f1f5f9;
    color: #0D6B58;
}

.topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
}

.topbar-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.topbar-user:hover {
    background-color: #f1f5f9;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0D6B58;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    overflow: hidden;
}

.topbar-avatar-admin {
    background-color: #1a1a2e;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.topbar-user-role {
    font-size: 0.7rem;
    color: #94a3b8;
}

.topbar-admin-role {
    display: flex;
    align-items: center;
}

.topbar-role-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #34d399;
    background-color: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
}

/* Dropdown */
.topbar-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 220px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    display: none;
    z-index: 60;
}

.topbar-user.open .topbar-dropdown {
    display: block;
    animation: dropdownFade 0.15s ease;
}

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

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
    background: none;
    transition: background-color 0.15s ease;
}

.topbar-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0D6B58;
}

.topbar-dropdown-item-danger {
    color: #b91c1c;
}

.topbar-dropdown-item-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.topbar-dropdown-divider {
    border-top: 1px solid #e2e8f0;
    margin: 0.35rem 0.5rem;
}

/* Content */
.app-content {
    flex: 1;
    padding: 1.5rem;
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    z-index: 90;
}

/* Flash messages */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-message-icon {
    flex-shrink: 0;
    display: flex;
}

.flash-message-text {
    flex: 1;
    margin: 0.1rem 0 0;
    line-height: 1.4;
}

.flash-message-close {
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.6;
    padding: 0;
    display: flex;
    align-self: flex-start;
}

.flash-message-close:hover {
    opacity: 1;
}

.flash-message-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-message-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-message-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.flash-message-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ------------------------------
   Stat Card
   ------------------------------ */

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin: 0 0 0.35rem;
}

.stat-card-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.stat-card-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.stat-card-change-up {
    color: #059669;
}

.stat-card-change-down {
    color: #dc2626;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-icon-green { background-color: #0D6B58; }
.stat-card-icon-blue { background-color: #2563eb; }
.stat-card-icon-purple { background-color: #7c3aed; }
.stat-card-icon-orange { background-color: #f59e0b; }
.stat-card-icon-red { background-color: #dc2626; }

/* ------------------------------
   Data Table
   ------------------------------ */

.data-table-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table-thead {
    background-color: #f8fafc;
}

.data-table-thead th {
    padding: 0.8rem 1.25rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.data-table-tbody td {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.data-table-tbody tr:hover td {
    background-color: #f8fafc;
}

.data-table-empty {
    text-align: center;
    padding: 3rem 1.25rem;
}

.data-table-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
}

.data-table-empty-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.data-table-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

/* ------------------------------
   Pagination
   ------------------------------ */

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.pagination-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: inline-flex;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.pagination-btn:hover {
    border-color: #0D6B58;
    color: #0D6B58;
}

.pagination-btn-active {
    background-color: #0D6B58;
    border-color: #0D6B58;
    color: #ffffff;
}

.pagination-btn-active:hover {
    color: #ffffff;
}

.pagination-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn-disabled:hover {
    border-color: #e2e8f0;
    color: #475569;
}

.pagination-ellipsis {
    padding: 0 0.3rem;
    color: #94a3b8;
    font-weight: 500;
}

.pagination-btn-text {
    display: none;
}

/* ------------------------------
   Modal
   ------------------------------ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    background-color: #ffffff;
    border-radius: 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    transform: translateY(-15px) scale(0.98);
    transition: transform 0.2s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.modal-visible .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-dialog-sm { max-width: 420px; }
.modal-dialog-md { max-width: 560px; }
.modal-dialog-lg { max-width: 760px; }
.modal-dialog-xl { max-width: 960px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header-danger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
}

.modal-header-icon {
    display: flex;
    flex-shrink: 0;
}

.modal-header-danger .modal-close {
    margin-left: auto;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    color: #64748b;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.modal-body {
    padding: 1.4rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.modal-footer-between {
    justify-content: space-between;
}

.confirm-modal-message {
    margin: 0;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ------------------------------
   Mobile
   ------------------------------ */

.mobile-bottomnav {
    display: none;
}

/* Admin Mobile Bottom Navigation */
.admin-mobile-bottomnav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 80;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}

.admin-mobile-bottomnav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.55rem 0 0.45rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.admin-mobile-bottomnav-item.active {
    color: #0D6B58;
}

.admin-mobile-bottomnav-more {
    color: #0D6B58;
}

.admin-mobile-bottomnav-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border-radius: 999px;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 1024px) {
    .topbar-search {
        width: 240px;
    }
}

@media (max-width: 768px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        padding: 0 1rem;
        height: 60px;
    }

    .topbar-search {
        width: 160px;
    }

    .topbar-user-info {
        display: none;
    }

    .topbar-admin-role {
        display: none;
    }

    .topbar-role-badge {
        display: none;
    }

    .topbar-toggle {
        display: flex;
    }

    .app-content {
        padding: 1rem;
        padding-bottom: 5rem;
    }

    /* Customer Mobile bottom nav */
    .mobile-bottomnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        z-index: 80;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }

    .mobile-bottomnav-item {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.55rem 0 0.45rem;
        font-size: 0.66rem;
        font-weight: 600;
        color: #94a3b8;
        transition: color 0.15s ease;
        background: none;
    }

    /* Admin Mobile bottom nav */
    .admin-mobile-bottomnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        z-index: 80;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }

    .admin-mobile-bottomnav-item {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.55rem 0 0.45rem;
        font-size: 0.66rem;
        font-weight: 600;
        color: #94a3b8;
        transition: color 0.15s ease;
        background: none;
        border: none;
        cursor: pointer;
        text-decoration: none;
    }

    .mobile-bottomnav-item.active {
        color: #0D6B58;
    }

    .mobile-bottomnav-more {
        color: #0D6B58;
    }

    .mobile-bottomnav-badge {
        position: absolute;
        top: 4px;
        right: 22%;
        background-color: #dc2626;
        color: #ffffff;
        font-size: 0.55rem;
        font-weight: 700;
        min-width: 15px;
        height: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border-radius: 999px;
    }

    /* Public */
    .public-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .public-nav-links.open {
        display: flex;
    }

    .public-nav-toggle {
        display: inline-flex;
    }

    .public-nav-actions {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f1f5f9;
    }

    .public-nav-actions .btn {
        flex: 1;
    }

    .public-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .public-footer-brand {
        grid-column: 1 / -1;
    }

    .pagination-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .public-footer-grid {
        grid-template-columns: 1fr;
    }

    .topbar-search {
        width: 120px;
    }

    .stat-card-value {
        font-size: 1.35rem;
    }
}

@media (min-width: 769px) {
    .pagination-btn-text {
        display: inline;
    }
}
