/* C:\xampp\htdocs\pos\assets\css\style.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --premium-radius: 12px;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fa;
    display: flex;
    flex-direction: column;
}

/* Platform Central Layout (Sidebar + Content Row) */
body.central-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body.central-layout .flex-grow-1 {
    min-width: 0; /* Foundation for responsive tables */
}

/* Fixed Layout Shell */
.navbar {
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    z-index: 1030;
}

main, .main-scrollable {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 5rem; /* Space for fixed footer */
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1rem 0;
    z-index: 1050;
    font-size: 0.85rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

/* Premium Card Design */
.premium-card {
    background: #fff;
    border: none;
    border-radius: var(--premium-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.premium-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Table Enhancements */
.table-responsive {
    background: #fff;
    border-radius: var(--premium-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    padding: 1px;
}

.table thead th {
    background-color: #fcfcfc;
    border-bottom: 2px solid #f1f1f1;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* User Status Badges */
.status-active {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-suspended {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Custom Scrollbar for desktop-like feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Login Page Specialized UI (Overrides Shell) */
body.login-page {
    overflow: auto;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 234, 254) 90%);
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255,255,255,0.7) !important;
}

.login-card .form-control {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #fdfdfd;
}

.login-card .input-group-text {
    border-radius: 8px 0 0 8px;
    background: #fdfdfd;
    border-right: none;
    color: #999;
}

.login-card .btn-primary {
    padding: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

/* POS Terminal Design Utilities */
.pos-sidebar {
    background: #fff;
    border-left: 1px solid #eee;
    height: calc(100vh - 140px); /* Height minus nav and footer */
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0,0,0,0.02);
}

.pos-grid {
    height: calc(100vh - 140px);
    overflow-y: auto;
}

.product-card {
    border: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

/* Invoice Sleek Design */
.invoice-box {
    max-width: 800px;
    margin: auto;
    padding: 40px;
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 24px;
    color: #444;
}

.invoice-header {
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.invoice-blue-accent {
    color: var(--primary-color);
    font-weight: 700;
}

/* Utilities */
.cursor-pointer { cursor: pointer; }
.fw-bold-700 { font-weight: 700; }
.bg-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}


