@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Light Glassmorphism Base System */
    --bg-light-base: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.45);
    --bg-glass-card: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.45);
    --border-inner: rgba(148, 163, 184, 0.12);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    /* Primary / Accent colors to match POS cashier */
    --primary: #0d9488; /* Teal */
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.1);
    
    --success: #0d9488; /* Teal */
    --success-light: rgba(13, 148, 136, 0.1);
    --warning: #d97706; /* Amber */
    --warning-light: rgba(217, 119, 6, 0.15);
    --danger: #e11d48; /* Rose */
    --danger-light: rgba(225, 29, 72, 0.1);
    --info: #2563eb; /* Royal Blue */
    --info-light: rgba(37, 99, 235, 0.1);

    /* Shadow and Border Radius */
    --shadow-sm: 0 2px 8px rgba(148, 163, 184, 0.05);
    --shadow-md: 0 8px 20px rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 16px 32px rgba(148, 163, 184, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(186, 230, 253, 0.5) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(153, 246, 228, 0.45) 0px, transparent 50%), 
        radial-gradient(at 50% 100%, rgba(233, 213, 255, 0.5) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Shell Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-inner);
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--info));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.sidebar-logo-text h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
    font-weight: 800;
    color: var(--text-main);
}

.sidebar-logo-text p {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-item a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
}

.sidebar-item.active a {
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-inner);
    background-color: rgba(255, 255, 255, 0.2);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.user-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.user-info p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Main Content Wrapper */
.main-wrapper {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
}

.page-title h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--danger);
    background-color: var(--danger-light);
    border: 1px solid rgba(225, 29, 72, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: linear-gradient(135deg, var(--danger), #be123c);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* Content Frame */
.content-frame {
    padding: 32px;
    flex-grow: 1;
}

/* Cards & Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--bg-glass-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: #ffffff;
    border-color: rgba(13, 148, 136, 0.2);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card.stat-success::after { background-color: var(--success); }
.stat-card.stat-warning::after { background-color: var(--warning); }
.stat-card.stat-danger::after { background-color: var(--danger); }
.stat-card.stat-info::after { background-color: var(--info); }

.stat-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.stat-success .stat-icon { background-color: var(--success-light); color: var(--success); border-color: rgba(13, 148, 136, 0.15); }
.stat-warning .stat-icon { background-color: var(--warning-light); color: var(--warning); border-color: rgba(217, 119, 6, 0.15); }
.stat-danger .stat-icon { background-color: var(--danger-light); color: var(--danger); border-color: rgba(225, 29, 72, 0.15); }
.stat-info .stat-icon { background-color: var(--info-light); color: var(--info); border-color: rgba(37, 99, 235, 0.15); }

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

/* Main layout columns */
.dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--bg-glass-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-inner);
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

/* Tables */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th {
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-inner);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-inner);
    color: var(--text-main);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.badge-success { background-color: var(--success-light); color: var(--success); border: 1px solid rgba(13, 148, 136, 0.2); }
.badge-warning { background-color: var(--warning-light); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); border: 1px solid rgba(225, 29, 72, 0.2); }
.badge-info { background-color: var(--info-light); color: var(--info); border: 1px solid rgba(37, 99, 235, 0.2); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0f766e);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e, #115e59);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--text-main);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.form-control:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.05);
    background-color: #ffffff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Alert Notification Banner */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success { background-color: var(--success-light); color: var(--success); border: 1px solid rgba(13, 148, 136, 0.25); }
.alert-warning { background-color: var(--warning-light); color: var(--warning); border: 1px solid rgba(217, 119, 6, 0.25); }
.alert-danger { background-color: var(--danger-light); color: var(--danger); border: 1px solid rgba(225, 29, 72, 0.25); }

/* Login Page Styles — Dark Mode (mirip GeprekNdut POS) */
.login-body {
    background-color: #0f0f13;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(234, 88, 12, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 0%, rgba(251, 146, 60, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated grid overlay */
.login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(234, 88, 12, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 44px 40px;
    animation: loginFadeIn 0.5s ease both;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 18px;
    box-shadow:
        0 0 0 6px rgba(234, 88, 12, 0.15),
        0 12px 28px rgba(234, 88, 12, 0.35);
    animation: logoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes logoPop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.login-logo-emoji {
    font-size: 34px;
    line-height: 1;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.login-header h2 span.accent {
    background: linear-gradient(90deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.login-modules {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.login-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.2px;
}

/* Login form field wrapper with icon */
.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.login-input-wrapper .form-control {
    padding-left: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border-radius: 12px;
    height: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.login-input-wrapper .form-control::placeholder {
    color: #475569;
}

.login-input-wrapper .form-control:focus {
    outline: none;
    border-color: rgba(234, 88, 12, 0.5);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12), 0 4px 16px rgba(234, 88, 12, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

.login-toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
    line-height: 1;
    padding: 0;
    z-index: 2;
    transition: color 0.2s ease;
}

.login-toggle-password:hover {
    color: #94a3b8;
}

/* Dark label overrides for login */
.login-card .form-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

/* Remember me dark */
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -4px;
    margin-bottom: 4px;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f97316;
    cursor: pointer;
}

.login-remember label {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

/* Login submit button */
.btn-login {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234, 88, 12, 0.55);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

/* Login footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: #334155;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Alert dark override */
.login-card .alert-danger {
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: #fb7185;
    border-radius: 12px;
    font-size: 13px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-inner);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-inner);
}

/* Report Filters Styling */
.filter-card {
    background-color: var(--bg-glass-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.filter-row .form-group {
    margin-bottom: 0;
    flex-grow: 1;
    min-width: 150px;
}

/* Dynamic Stock Alarms UI */
.alarm-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    animation: pulse 1.5s infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(225, 29, 72, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* Floating Notification toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Printing styling */
@media print {
    .sidebar, .navbar, .filter-card, .btn, .navbar-actions, .toast-container, .modal {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 0 !important;
    }
    .content-frame {
        padding: 0 !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 12px !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    .table th {
        background-color: #f1f5f9 !important;
        color: #000000 !important;
        border: 1px solid #cbd5e1 !important;
    }
    .table td {
        border: 1px solid #cbd5e1 !important;
    }
}

/* Dashboard Chart Redesign CSS */
.chart-summary-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-inner);
    flex-wrap: wrap;
}

.chart-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.chart-stat-value {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.chart-stat-value.value-sales {
    color: #4f46e5;
}

.chart-stat-value.value-profit {
    color: #10b981;
}

/* Tablet & Mobile Dashboard Responsiveness Optimization */
@media (max-width: 1025px) {
    /* Collapse Sidebar to compact icon-only mode to save horizontal space */
    .sidebar {
        width: 76px !important;
    }
    .sidebar-header {
        padding: 16px 8px !important;
        justify-content: center;
    }
    .sidebar-logo-text {
        display: none !important;
    }
    .sidebar-menu {
        padding: 16px 8px !important;
    }
    .sidebar-item a {
        justify-content: center;
        padding: 12px !important;
        gap: 0 !important;
    }
    .sidebar-item a span {
        display: none !important;
    }
    .sidebar-footer {
        padding: 16px 8px !important;
        display: flex;
        justify-content: center;
    }
    .user-badge {
        justify-content: center;
        gap: 0 !important;
    }
    .user-info {
        display: none !important;
    }
    .main-wrapper {
        margin-left: 76px !important;
    }
    
    /* Optimize padding and layout spacing */
    .navbar {
        padding: 0 20px !important;
        height: 60px !important;
    }
    .content-frame {
        padding: 20px !important;
    }
    
    /* Stats Grid: 2x2 layout with smaller spacing */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }
    .stat-card {
        padding: 16px !important;
    }
    .stat-value {
        font-size: 20px !important;
    }
    .stat-icon {
        width: 44px !important;
        height: 44px !important;
    }
    .stat-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Card spacing and paddings */
    .card {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }
    .card-header {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }
    
    /* Compact Tables */
    .table th, .table td {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}


