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

:root {
    --bg-main: #0b0f19;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --primary-hover: #4f46e5;
    
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --warning: #f59e0b;
    --warning-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --danger: #f43f5e;
    --danger-gradient: linear-gradient(135deg, #f43f5e, #e11d48);
    --info: #38bdf8;
    --info-gradient: linear-gradient(135deg, #38bdf8, #0284c7);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 45%),
                      radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.08), transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #8b5cf6;
}

/* LOGIN DESIGN (index.html) */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.login-container h2 {
    font-size: 26px;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-container p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    padding-left: 45px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.85);
}

.form-control:focus + i {
    color: var(--primary);
}

/* Select Control */
select.form-control {
    padding-left: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}
.btn-success:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}
.btn-warning:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}
.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

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

/* APP SHELL LAYOUT (Sidebar + Main View) */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.sidebar-item a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

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

.sidebar-item.active a {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* MAIN VIEW CONTENT CONTAINER */
.app-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

/* HEADER Styles */
.header {
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title-section h1 {
    font-size: 20px;
    color: var(--text-primary);
}

.header-title-section p {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sucursal-indicator {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.logout-btn:hover {
    color: var(--danger);
    background: rgba(244, 63, 94, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* MAIN VIEW BODY */
.main-body {
    padding: 32px;
    flex-grow: 1;
}

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

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

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-info h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-info .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.primary { background: var(--primary-gradient); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2); }
.stat-icon.success { background: var(--success-gradient); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2); }
.stat-icon.warning { background: var(--warning-gradient); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2); }
.stat-icon.info { background: var(--info-gradient); box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2); }

/* GRID LAYOUTS FOR CHARTS & LISTS */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

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

.panel-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

/* TABLES DESIGN */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
}

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

.table-custom th {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.table-custom td {
    padding: 16px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

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

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

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

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-danger { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.badge-info { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }

/* Alert Lists (Bajo Stock / Notificaciones) */
.alert-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: var(--radius-md);
}

.alert-item-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.alert-item-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.alert-item-badge {
    background: rgba(244, 63, 94, 0.2);
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* MODALS DESIGN */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 550px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

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

/* POS LAYOUT (ventas.html split-screen) */
.pos-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.pos-cart-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 64px);
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.pos-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: var(--primary);
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.cart-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}
.cart-item-remove:hover {
    color: var(--danger);
}

.pos-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.total-row.grand-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

/* REAL TICKET DISPLAY (Modal popup on checkout) */
.ticket-container {
    background: white;
    color: #333;
    padding: 24px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    line-height: 1.4;
}

.ticket-header {
    text-align: center;
    border-bottom: 1px dashed #bbb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.ticket-header h2 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #111;
}

.ticket-details {
    margin-bottom: 12px;
    border-bottom: 1px dashed #bbb;
    padding-bottom: 8px;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.ticket-table th {
    border-bottom: 1px solid #bbb;
    text-align: left;
    padding: 4px 0;
}

.ticket-table td {
    padding: 6px 0;
}

.ticket-totals {
    border-top: 1px dashed #bbb;
    padding-top: 8px;
    text-align: right;
}

.ticket-totals-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
}

/* TOASTS SYSTEM */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 320px;
    display: flex;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.toast-info {
    flex-grow: 1;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
}

.toast-msg {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* SEARCH DROPDOWN FOR POS */
.search-results-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
}

.search-results-box.active {
    display: block;
}

.search-item-option {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-item-option:last-child {
    border-bottom: none;
}

.search-item-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.search-item-title {
    font-size: 13px;
    font-weight: 600;
}

.search-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    .pos-cart-panel {
        height: auto;
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 260px;
    }
    
    .app-content {
        margin-left: 0;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-body {
        padding: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
