/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #16a34a;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: rgba(0, 0, 0, 0.1);
    --input: #f8fafc;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --warning: #f59e0b;
    --warning-foreground: #ffffff;
    --radius: 0.75rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 16px;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: #15803d;
    border-color: #15803d;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--muted);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    height: 3rem;
}

.cancel-btn {
    border-color: #fecaca;
    color: #dc2626;
}

.cancel-btn:hover:not(:disabled) {
    background-color: #fef2f2;
}

.logout-btn {
    border-color: #fecaca;
    color: #dc2626;
}

.logout-btn:hover:not(:disabled) {
    background-color: #fef2f2;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem;
    padding-left: 2.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--input);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: #9ca3af;
}

.password-toggle:hover {
    background-color: var(--muted);
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

/* Error Messages */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.hidden {
    display: none !important;
}

/* LOGIN SCREEN STYLES */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-grid {
    width: 100%;
    max-width: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .login-grid {
        max-width: 4rem;
        grid-template-columns: 1fr 1fr;
    }
}

.login-image-section {
    display: none;
}

@media (min-width: 1024px) {
    .login-image-section {
        display: block;
    }
}

.login-image-wrapper {
    position: relative;
}

.login-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 163, 74, 0.2), transparent);
    border-radius: 1rem;
}

.login-image-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
}

.login-image-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-image-text p {
    color: #bbf7d0;
}

.login-form-section {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-icon svg {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--muted-foreground);
}

.login-form {
    margin-bottom: 2rem;
}

.login-form .input-wrapper input {
    height: 3rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

.demo-users {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.demo-users p {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.demo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.demo-buttons .btn {
    border-radius: 0.5rem;
}

.demo-buttons .btn:first-child {
    border-color: #bbf7d0;
    color: #15803d;
}

.demo-buttons .btn:first-child:hover {
    background-color: #f0fdf4;
}

.demo-buttons .btn:last-child {
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.demo-buttons .btn:last-child:hover {
    background-color: #eff6ff;
}

.demo-info {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.demo-info p {
    text-align: left;
    margin-bottom: 0.25rem;
}

/* APP HEADER STYLES */
.app-header {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info svg {
    color: var(--primary);
}

.user-role {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.header-buttons .btn {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* CASHIER SCREEN STYLES */
.cashier-container {
    min-height: 100vh;
    background-color: #f9fafb;
    padding: 1.5rem;
}

.cashier-content {
    max-width: 7rem;
    margin: 0 auto;
}

.cashier-header {
    margin-bottom: 1.5rem;
    padding-top: 4rem;
}

.cashier-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    height: 3.5rem;
    padding-left: 3rem;
    font-size: 1.125rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    background-color: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.cashier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .cashier-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.categories-section h3,
.products-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-btn {
    height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.category-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.category-emoji {
    font-size: 2rem;
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

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

.product-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-info h4 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-price {
    color: var(--primary);
    font-weight: 600;
}

.add-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-btn:hover {
    background-color: #15803d;
}

/* CART STYLES */
.cart-section {
    position: sticky;
    top: 1.5rem;
}

.cart-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-count {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.cart-items {
    margin-bottom: 1.5rem;
    max-height: 16rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--muted-foreground);
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

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

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-details {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.quantity-btn:hover {
    background-color: var(--muted);
}

.quantity-btn.primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.quantity-display {
    font-size: 0.875rem;
    width: 1.5rem;
    text-align: center;
}

.cart-total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* PAYMENT SCREEN STYLES */
.payment-container {
    min-height: 100vh;
    background-color: #f9fafb;
    padding: 1.5rem;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-header h1 {
    font-size: 2rem;
    font-weight: 600;
}

.payment-grid {
    max-width: 4rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .payment-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-methods-section h3,
.order-summary-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    height: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.payment-method.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.payment-method:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-emoji {
    font-size: 3rem;
}

.cash-payment,
.digital-payment {
    margin-top: 1rem;
}

.cash-payment h4,
.digital-payment h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cash-input {
    width: 100%;
    height: 3rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1.125rem;
}

.cash-input:focus {
    outline: none;
    border-color: var(--primary);
}

.change-calculation {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calculation-row hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}

.total-row {
    font-size: 1.125rem;
    font-weight: 600;
}

.change-amount {
    color: var(--primary);
}

.change-amount.negative {
    color: var(--destructive);
}

.digital-payment-content {
    text-align: center;
    padding: 2rem 0;
}

.digital-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.order-items {
    margin-bottom: 1.5rem;
    max-height: 16rem;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.order-item-details {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.order-item-total {
    font-size: 0.875rem;
    font-weight: 500;
}

.order-total {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* PAYMENT SUCCESS STYLES */
.success-container {
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    max-width: 28rem;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    color: var(--primary);
    margin: 0 auto 1rem;
}

.success-card h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-card p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.payment-summary {
    font-size: 0.875rem;
}

.payment-summary .calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* ADMIN SCREEN STYLES */
.admin-container {
    min-height: 100vh;
    background-color: #f9fafb;
    padding: 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    max-width: 7rem;
    margin-left: auto;
    margin-right: auto;
}

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

.admin-header-left h1 {
    font-size: 2rem;
    font-weight: 600;
}

.admin-header-right {
    display: flex;
    gap: 0.5rem;
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 7rem;
    margin-left: auto;
    margin-right: auto;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.period-btn:hover {
    background-color: var(--muted);
}

.period-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 7rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.metric-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-primary {
    color: var(--primary);
}

.metric-warning {
    color: var(--warning);
}

.metric-change {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-positive {
    color: var(--primary);
}

.metric-icon {
    color: var(--primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 7rem;
    margin-left: auto;
    margin-right: auto;
}

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

.chart-container {
    height: 16rem;
    margin-top: 1rem;
}

.chart-container canvas {
    max-height: 100%;
}

.top-products-list {
    margin-bottom: 1.5rem;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #dcfce7;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-sales {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.product-progress {
    width: 3rem;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.product-progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.low-stock-section {
    max-width: 7rem;
    margin-left: auto;
    margin-right: auto;
}

.low-stock-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.low-stock-header svg {
    color: var(--warning);
}

.low-stock-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.alert-badge {
    background-color: #fef3c7;
    color: #d97706;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.low-stock-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .low-stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .low-stock-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.low-stock-item {
    background-color: #fef7f0;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.low-stock-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.low-stock-item-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-badge {
    background-color: var(--warning);
    color: var(--warning-foreground);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.stock-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.stock-progress {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.stock-progress-bar {
    height: 100%;
    background-color: var(--warning);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Loading Spinner */
.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        position: static;
        margin-bottom: 1rem;
    }
    
    .cashier-header {
        padding-top: 0;
    }
    
    .login-image-section {
        display: none;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .admin-header-right {
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
.category-btn:focus,
.payment-method:focus,
.period-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}