/* ============================================================
   AK NAZAR CYBER CAFE ERP - global stylesheet
   Bootstrap 5.3 provides the component layer; this file only
   adds the ERP shell (sidebar/topbar), typography and accents.
   ============================================================ */

:root {
    --erp-sidebar-bg: #111827;
    --erp-sidebar-hover: #1f2937;
    --erp-sidebar-active: #2563eb;
    --erp-topbar-bg: #1e293b;
    --erp-accent: #2563eb;
    --erp-accent-warm: #f59e0b;
    --erp-content-bg: #f4f6fb;
}

body {
    background: var(--erp-content-bg);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}

/* ---------- App shell ---------- */
.app-wrapper {
    min-height: 100vh;
}

.app-sidebar {
    width: 255px;
    min-width: 255px;
    background: var(--erp-sidebar-bg);
    color: #cbd5e1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding 0.22s ease;
    z-index: 1020;
}

.sidebar-brand {
    color: #fff;
    min-width: 0;
}

.sidebar-brand .brand-text {
    min-width: 0;
    white-space: normal;
}


.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.08);
    width: 100%;
}

.app-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.app-sidebar .nav-link:hover {
    background: var(--erp-sidebar-hover);
    color: #fff;
}

.app-sidebar .nav-link.active {
    background: var(--erp-sidebar-active);
    color: #fff;
}

.app-sidebar .nav-link.disabled {
    color: #64748b;
    opacity: 1;
    cursor: not-allowed;
}

/* ---------- Collapsed Desktop/Tablet State ---------- */
.app-wrapper.sidebar-collapsed .app-sidebar {
    width: 68px;
    min-width: 68px;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.app-wrapper.sidebar-collapsed .app-sidebar .brand-text,
.app-wrapper.sidebar-collapsed .app-sidebar .nav-text,
.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-divider,
.app-wrapper.sidebar-collapsed .app-sidebar .dropdown-toggle::after {
    display: none !important;
}

.app-wrapper.sidebar-collapsed .app-sidebar .sidebar-brand {
    justify-content: center;
    width: 100%;
}

.app-wrapper.sidebar-collapsed .app-sidebar .brand-icon {
    margin-right: 0 !important;
}

.app-wrapper.sidebar-collapsed .app-sidebar .nav-link {
    text-align: center;
    padding: 0.6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-wrapper.sidebar-collapsed .app-sidebar .nav-icon {
    margin-right: 0 !important;
    font-size: 1.25rem;
}

.app-wrapper.sidebar-collapsed .app-sidebar .dropdown > a {
    justify-content: center;
}


.app-main {
    min-width: 0;
}

.app-topbar {
    background: var(--erp-topbar-bg);
    min-height: 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-user {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
}

.btn-user:hover,
.btn-user:focus {
    background: rgba(255, 255, 255, 0.08);
}

.app-content {
    flex: 1;
}

/* ---------- Avatars ---------- */
.user-avatar,
.user-avatar-sm,
.user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--erp-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.user-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--erp-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}

/* ---------- Cards & stats ---------- */
.welcome-card {
    background: linear-gradient(120deg, #1e293b 0%, #2563eb 100%);
    color: #fff;
}

.stat-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.btn-soft {
    background: #eef2ff;
    color: #1d4ed8;
    border: 1px solid transparent;
}

.btn-soft:hover {
    background: #e0e7ff;
    color: #1e3a8a;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--erp-accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* ---------- Tables ---------- */
.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Authentication page ---------- */
.auth-page {
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

/* ---------- Footer ---------- */
.app-footer {
    border-top: 1px solid #e5e7eb;
}

/* ---------- Responsive & Mobile Drawer ---------- */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1045;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.app-wrapper.mobile-sidebar-open .sidebar-backdrop,
.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        width: 270px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
    }

    .app-wrapper.mobile-sidebar-open .app-sidebar,
    .app-sidebar.show {
        transform: translateX(0);
    }
}

/* ==========================================================================
   Indian Multi-Language System (Google Translate White-Label Integration)
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-te-gadget-icon,
.goog-te-gadget-simple {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none !important;
}

font {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Language Switcher Scrollbar & Styling */
.language-options-container::-webkit-scrollbar {
    width: 6px;
}
.language-options-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.language-options-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.language-options-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}



