:root {
    /* HEAVEN Brand Colors - Gold & Black */
    --gold-primary: #D4AF37;
    --gold-light: #E8C547;
    --gold-dark: #B8941F;
    --gold-gradient: linear-gradient(135deg, #E8C547 0%, #D4AF37 50%, #B8941F 100%);

    --black-primary: #1a1a1a;
    --black-secondary: #2a2a2a;
    --black-tertiary: #0a0a0a;

    /* Updated Gradients with Gold */
    --primary-gradient: var(--gold-gradient);
    --secondary-gradient: linear-gradient(135deg, #E8C547 0%, #B8941F 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --info-gradient: linear-gradient(135deg, #D4AF37 0%, #E8C547 100%);

    /* Dark Backgrounds */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --bg-hover: #333333;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #D4AF37;
    --text-muted: #8a8a8a;

    /* Accent Colors */
    --accent-gold: #D4AF37;
    --accent-gold-light: #E8C547;
    --accent-green: #43e97b;
    --accent-danger: #f5576c;

    /* Borders & Shadows */
    --border-color: rgba(212, 175, 55, 0.2);
    --border-gold: rgba(212, 175, 55, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.2);

    /* Border Radius - Subtle rounded corners */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 3px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* User Profile in Sidebar */
.user-profile {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-sidebar {
    flex: 1;
    min-width: 0;
}

.user-info-sidebar .user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.user-info-sidebar .user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.25rem;
}

.btn-logout:hover {
    background: var(--bg-hover);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.login-logo {
    margin-bottom: 3rem;
}

.login-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.login-card {
    background: var(--bg-card);
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-gold);
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-google {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition);
}

.btn-google:hover {
    background: #f8f8f8;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-google svg {
    flex-shrink: 0;
}

.login-info {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}


.nav-menu {
    list-style: none;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    border-radius: 0 4px 4px 0;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active::before {
    height: 70%;
}

.nav-item .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.nav-item:hover .icon svg {
    stroke: var(--text-secondary);
}

.nav-item.active .icon svg {
    stroke: var(--accent-gold);
}

.nav-item .label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Icon styles for stat cards */
.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    color: white;
}

/* Icon styles for buttons */
.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-logout .icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-logout:hover .icon-btn svg {
    stroke: var(--accent-gold);
}

/* Info icons in client cards */
.info-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.info-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: var(--text-secondary);
}


/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2rem 3rem;
    min-height: 100vh;
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.view-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 100%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-change.positive {
    color: var(--accent-green);
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.chart-placeholder {
    height: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Calculator Container */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-card,
.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.calculator-card h3,
.results-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

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

.form-group label .unit {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Input row for inline inputs */
.input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.small-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: block;
    color: var(--text-muted);
}

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

.input-with-icon .currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

.input-with-icon input {
    padding-left: 2.5rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #c92a3e 100%);
    color: white;
}

.btn-large {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* Results */
.cost-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.result-item.highlight {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cost Breakdown */
.cost-breakdown {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cost-breakdown h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-bar {
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 4px;
    width: var(--percentage);
    transition: width 0.6s ease;
}

.breakdown-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.breakdown-label strong {
    color: var(--text-primary);
}

/* Sales Calculator */
.sales-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profit-grid {
    display: grid;
    gap: 1rem;
}

.profit-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.profit-item h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.profit-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profit-margin {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Projections */
.projection-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.projection-section h3 {
    margin-bottom: 1.5rem;
}

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

.projection-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.projection-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.projection-card.highlight {
    border-color: var(--accent-green);
    background: rgba(67, 233, 123, 0.05);
}

.projection-card h4 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.projection-value {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Clients */
.clients-container {
    max-width: 1400px;
}

.search-bar {
    margin-bottom: 2rem;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--accent-gold);
}

.client-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.client-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.client-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* POS */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pos-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.product-selector {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.cart {
    margin: 2rem 0;
}

.cart h4 {
    margin-bottom: 1rem;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

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

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-pink);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 700;
}

.receipt-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.receipt-preview h3 {
    margin-bottom: 1.5rem;
}

.receipt-content {
    background: white;
    color: #000;
    padding: 2rem;
    border-radius: var(--radius-sm);
    min-height: 400px;
    font-family: 'Courier New', monospace;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #000;
}

.receipt-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.receipt-body {
    margin: 1.5rem 0;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.receipt-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px dashed #000;
    text-align: center;
}

/* Orders */
.orders-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.badge {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .badge {
    background: rgba(255, 255, 255, 0.2);
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.order-number {
    font-weight: 700;
    font-size: 1.125rem;
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.received {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-purple);
}

.order-status.sales {
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent-blue);
}

.order-status.packing {
    background: rgba(245, 87, 108, 0.2);
    color: var(--accent-pink);
}

.order-status.delivery {
    background: rgba(67, 233, 123, 0.2);
    color: var(--accent-green);
}

.order-status.completed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.order-actions button {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.875rem;
}

/* Settings */
.settings-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.settings-card h3 {
    margin-bottom: 1.5rem;
}

.settings-info {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.settings-info p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.settings-info strong {
    color: var(--text-primary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content form {
    padding: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {

    .calculator-container,
    .sales-calculator,
    .pos-container,
    .settings-container {
        grid-template-columns: 1fr;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .view-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .projection-results {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}