/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #2563eb;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.staff-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.staff-name, .current-time {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tab Navigation */
.tab-navigation {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: #f8fafc;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

/* Tab Content */
.tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder Styles for Step 1 */
.tab-placeholder {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px dashed #e2e8f0;
}

.tab-placeholder h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1rem;
}

.tab-placeholder p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .staff-info {
        gap: 1rem;
    }
    
    .tab-navigation {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .tab-placeholder {
        padding: 2rem 1rem;
    }
    
    .tab-placeholder h2 {
        font-size: 1.5rem;
    }
    
    .tab-placeholder p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.2rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .staff-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .staff-name, .current-time {
        font-size: 0.8rem;
    }
}
/* Ne
w Sale Tab Styles */
.new-sale-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: calc(100vh - 200px);
}

/* Product Search Section */
.product-search-section {
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.search-bar {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #1d4ed8;
}

/* Popular Items Section */
.popular-items-section {
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

.popular-items-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.product-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.product-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.add-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-button:hover {
    background-color: #15803d;
}

.add-button:active {
    transform: scale(0.98);
}

/* Cart Section */
.cart-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.clear-cart-btn {
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-cart-btn:hover {
    background-color: #b91c1c;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.item-price {
    color: #64748b;
    font-size: 0.875rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background-color: #f1f5f9;
    border-color: #2563eb;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    padding: 0.25rem 0.5rem;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #b91c1c;
}

.cart-footer {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
}



.customer-info {
    margin-bottom: 1rem;
}

.customer-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.customer-input:focus {
    outline: none;
    border-color: #2563eb;
}

.customer-input.required-field {
    border-color: #ea580c;
    background-color: #fff7ed;
}

.customer-input.required-field:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.payment-methods {
    margin-bottom: 1.5rem;
}

.payment-methods label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.complete-sale-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-sale-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.complete-sale-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design for New Sale Tab */
@media (max-width: 1024px) {
    .new-sale-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .cart-section {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-image {
        font-size: 2rem;
    }
    
    .payment-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .new-sale-container {
        gap: 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .product-card {
        padding: 0.75rem;
    }
    
    .cart-section {
        padding: 1rem;
    }
}/* Online 
Orders Tab Styles */
.online-orders-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Order Filters */
.order-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
}

.order-filters h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: #2563eb;
    background-color: #f1f5f9;
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-new {
    color: #dc2626;
}

.status-ready {
    color: #ea580c;
}

.status-completed {
    color: #16a34a;
}

.order-id {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.order-amount {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.2rem;
}

.order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.order-items {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.delivery-method {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-weight: 500;
}

.failure-reason {
    color: #dc2626 !important;
    font-weight: 500;
    background: #fef2f2;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

/* SMS Preview Popup Styles */
#smsPreviewOverlay {
    backdrop-filter: blur(4px);
}

#smsPreviewOverlay .sms-message-body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    white-space: pre-line;
    font-size: 0.95rem;
    color: #1e293b;
    min-height: 120px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#smsPreviewOverlay button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* SMS Animation Enhancements */
@keyframes smsSlideIn {
    from { 
        transform: translateY(-30px) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes smsFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(4px);
    }
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-success {
    background-color: #16a34a;
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

/* Order Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.order-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.customer-details {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.order-items-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #1e293b;
}

.item-price {
    color: #64748b;
    font-size: 0.875rem;
}

.item-total {
    font-weight: 600;
    color: #2563eb;
}

.order-total-section {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-row.final {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    border-top: 2px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #dcfce7;
    border: 1px solid #16a34a;
    border-radius: 6px;
    color: #15803d;
    font-weight: 500;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .action-btn {
    padding: 0.75rem 1.5rem;
}

/* Empty State */
.empty-orders {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-orders h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* Responsive Design for Online Orders */
@media (max-width: 768px) {
    .filter-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .order-card {
        padding: 1rem;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}/
* Debug styles for tab switching */
.tab-content {
    border: 2px solid transparent;
}

.tab-content.active {
    border-color: #2563eb;
}

/* Ensure tab content is visible when active */
#new-sale.active,
#online-orders.active,
#todays-sales.active {
    display: block !important;
    opacity: 1;
}

/* Hide inactive tabs completely */
#new-sale:not(.active),
#online-orders:not(.active),
#todays-sales:not(.active) {
    display: none !important;
}/* 
Today's Sales Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Sales Overview Cards */
.sales-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.total-sales {
    border-left: 4px solid #2563eb;
}

.in-store-sales {
    border-left: 4px solid #16a34a;
}

.online-sales {
    border-left: 4px solid #ea580c;
}

.avg-transaction {
    border-left: 4px solid #7c3aed;
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.card-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
}

.dashboard-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Top Items List */
.top-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.item-sales {
    color: #64748b;
    font-size: 0.875rem;
}

.item-revenue {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

/* Recent Transactions */
.recent-transactions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.transaction-time {
    color: #64748b;
    font-size: 0.875rem;
}

.transaction-amount {
    font-weight: 600;
    color: #2563eb;
}

/* Sales Chart */
.chart-section {
    grid-column: span 2;
}

.sales-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-container {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2rem;
    height: 200px;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
}

.chart-bar {
    width: 80px;
    background: linear-gradient(to top, #2563eb, #3b82f6);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
}

.online-bar {
    background: linear-gradient(to top, #ea580c, #f97316);
}

.bar-label {
    position: absolute;
    bottom: 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.in-store-color {
    background: linear-gradient(to right, #2563eb, #3b82f6);
}

.online-color {
    background: linear-gradient(to right, #ea580c, #f97316);
}

/* Payment Methods Breakdown */
.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.payment-count {
    color: #64748b;
    font-size: 0.875rem;
}

.payment-amount {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.action-button:active {
    transform: translateY(0);
}

/* Responsive Design for Dashboard */
@media (max-width: 1024px) {
    .chart-section {
        grid-column: span 1;
    }
    
    .chart-container {
        height: 150px;
    }
    
    .chart-bar {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .sales-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-value {
        font-size: 1.25rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem;
    }
    
    .chart-container {
        gap: 1rem;
        height: 120px;
    }
    
    .chart-bar {
        width: 50px;
    }
    
    .bar-label {
        font-size: 0.7rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sales-overview {
        grid-template-columns: 1fr;
    }
    
    .overview-card {
        flex-direction: row;
        text-align: left;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .top-item,
    .transaction-item,
    .payment-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-revenue,
    .transaction-amount,
    .payment-amount {
        align-self: flex-end;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
/* 
===== STEP 5: STYLING & POLISH - WEBSITE INTEGRATION ===== */

/* Enhanced Color Scheme & Branding */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --success-green: #16a34a;
    --success-green-dark: #15803d;
    --warning-orange: #ea580c;
    --warning-orange-dark: #c2410c;
    --error-red: #dc2626;
    --error-red-dark: #b91c1c;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    color: var(--neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Header with Gradient */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.brand h1 {
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced Tab Navigation */
.tab-navigation {
    background: white;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-button {
    position: relative;
    transition: all var(--transition-normal);
    font-weight: 600;
    color: var(--neutral-600);
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.tab-button:hover::before {
    width: 80%;
}

.tab-button.active::before {
    width: 100%;
}

.tab-button:hover {
    color: var(--primary-blue);
    background: white;
    transform: translateY(-1px);
}

.tab-button.active {
    color: var(--primary-blue);
    background: white;
}

/* Enhanced Cards with Better Shadows */
.product-card,
.cart-section,
.overview-card,
.dashboard-section,
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.product-card::before,
.overview-card::before,
.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover::before,
.overview-card:hover::before,
.dashboard-section:hover::before {
    opacity: 1;
}

.product-card:hover,
.overview-card:hover,
.dashboard-section:hover,
.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
}

/* Enhanced Buttons */
.add-button,
.search-button,
.complete-sale-btn,
.action-btn,
.action-button,
.filter-btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
}

.add-button::before,
.search-button::before,
.complete-sale-btn::before,
.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.add-button:hover::before,
.search-button:hover::before,
.complete-sale-btn:hover::before,
.action-button:hover::before {
    left: 100%;
}

.add-button {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
    box-shadow: 0 4px 14px 0 rgba(22, 163, 74, 0.25);
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(22, 163, 74, 0.35);
}

.search-button,
.complete-sale-btn,
.action-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

.search-button:hover,
.complete-sale-btn:hover:not(:disabled),
.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35);
}

/* Enhanced Form Elements */
.search-input,
.customer-input {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.search-input:focus,
.customer-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tab-content.active {
    animation: slideInUp 0.4s ease-out;
}

.cart-item {
    animation: slideInRight 0.3s ease-out;
}

.overview-card {
    animation: slideInUp 0.4s ease-out;
}

.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }
.overview-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Status Indicators */
.order-status,
.payment-status {
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-new {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--error-red-dark);
    border: 1px solid #fca5a5;
}

.status-readypickup {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-readydelivery {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: var(--warning-orange-dark);
    border: 1px solid #fb923c;
}

.status-outfordelivery {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.status-delivered,
.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--success-green-dark);
    border: 1px solid #86efac;
}

/* Enhanced Chart Styling */
.chart-bar {
    background: linear-gradient(to top, var(--primary-blue), var(--primary-blue-light));
    box-shadow: var(--shadow-md);
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
}

.online-bar {
    background: linear-gradient(to top, var(--warning-orange), var(--warning-orange-dark));
}

/* Enhanced Modal */
.order-modal {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Feedback System */
.feedback {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

.feedback-success {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
}

.feedback-error {
    background: linear-gradient(135deg, var(--error-red) 0%, var(--error-red-dark) 100%);
}

.feedback-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

/* Touch-Friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
    .tab-button,
    .product-card,
    .add-button,
    .action-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .add-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .overview-card {
        animation-delay: 0s;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .tab-button {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.25rem;
    }
    
    .tab-button {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
}

/* Print Styles for Receipts */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-content,
    .receipt-content * {
        visibility: visible;
    }
    
    .receipt-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.tab-button:focus,
.add-button:focus,
.search-button:focus,
.complete-sale-btn:focus,
.action-btn:focus,
.action-button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .product-card,
    .cart-section,
    .overview-card,
    .dashboard-section,
    .order-card {
        border: 2px solid var(--neutral-800);
    }
    
    .tab-button.active {
        background: var(--neutral-800);
        color: white;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #0f172a;
        --neutral-100: #1e293b;
        --neutral-200: #334155;
        --neutral-800: #f1f5f9;
        --neutral-900: #f8fafc;
    }
    
    body {
        background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
        color: var(--neutral-800);
    }
}/
* Help Overlay Styles */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.help-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 2rem;
    animation: slideInUp 0.3s ease-out;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--neutral-200);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.help-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.close-help {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-normal);
}

.close-help:hover {
    background: rgba(255, 255, 255, 0.2);
}

.help-body {
    padding: 1.5rem;
}

.help-section {
    margin-bottom: 2rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.help-section li:last-child {
    border-bottom: none;
}

kbd {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Global Loading Indicator */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--neutral-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-600);
}

/* Enhanced Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top var(--transition-normal);
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus Indicators */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.tab-button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: -3px;
}

/* Print Optimizations */
@media print {
    .header,
    .tab-navigation,
    .help-overlay,
    .global-loading,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .tab-content {
        display: block !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Performance Optimizations */
.tab-content:not(.active) {
    visibility: hidden;
    position: absolute;
    top: -9999px;
}

.tab-content.active {
    visibility: visible;
    position: relative;
    top: auto;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .tab-content.active {
        animation: none;
    }
    
    .overview-card {
        animation: none;
    }
    
    .cart-item {
        animation: none;
    }
    
    .help-overlay,
    .help-content {
        animation: none;
    }
}

/* High Contrast Mode Enhancements */
@media (prefers-contrast: high) {
    .help-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .help-content {
        border: 3px solid var(--neutral-900);
    }
    
    kbd {
        border: 2px solid var(--neutral-900);
        background: white;
    }
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .help-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .help-header {
        padding: 1rem;
    }
    
    .help-body {
        padding: 1rem;
    }
    
    .help-section {
        margin-bottom: 1.5rem;
    }
    
    kbd {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Status Bar for System Information */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--neutral-800);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.status-bar.visible {
    transform: translateY(0);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Connection Status Indicator */
.connection-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    animation: pulse 2s infinite;
}

.connection-status.offline {
    background: var(--error-red);
    animation: none;
}

/* Final Polish - Micro-interactions */
.product-card:active {
    transform: scale(0.98);
}

.add-button:active,
.action-btn:active,
.action-button:active {
    transform: scale(0.95);
}

.tab-button:active {
    transform: translateY(1px);
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

/* Selection styling */
::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}
/* ===
== ADMIN & AUTHENTICATION STYLES ===== */

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.4s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.demo-accounts {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.demo-accounts h4 {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-account-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-account {
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-account:hover {
    background: #e2e8f0;
}

/* Header Admin Styling */
.staff-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-role {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.user-role.manager {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.user-role.staff {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin Tab Styling */
.tab-button.admin-only {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: 2px solid #f59e0b;
}

.tab-button.admin-only:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.tab-button.admin-only.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Admin Panel Styles */
.admin-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.admin-card .card-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.admin-card .card-content {
    flex: 1;
}

.admin-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.admin-card .card-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-action-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.admin-action-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
}

.admin-action-btn .action-icon {
    font-size: 2rem;
}

.admin-action-btn .action-text {
    font-weight: 600;
    color: #1e293b;
}

.admin-activity-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-info {
    flex: 1;
}

.activity-action {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.85rem;
    color: #64748b;
}

.activity-user {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 500;
}

/* Role-based visibility */
.admin-only {
    display: none !important;
}

.admin-only.show {
    display: block !important;
}

.tab-button.admin-only.show {
    display: flex !important;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}/* 
===== ENHANCED ADMIN DASHBOARD STYLES (Step 2) ===== */

/* Admin Header Enhancements */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.admin-header div:first-child {
    text-align: left;
}

.admin-controls {
    display: flex;
    gap: 1rem;
}

.refresh-btn, .emergency-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.emergency-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Enhanced Admin Cards */
.admin-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-card:hover::before {
    opacity: 1;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-trend {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 500;
    margin-top: 0.25rem;
}

.card-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.card-indicator.healthy { background: #10b981; }
.card-indicator.normal { background: #2563eb; }
.card-indicator.good { background: #059669; }
.card-indicator.warning { background: #f59e0b; }
.card-indicator.excellent { background: #7c3aed; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.admin-action-btn {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    min-height: 120px;
}

.admin-action-btn.primary {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.admin-action-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.action-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

/* System Health Monitor */
.health-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.health-metric {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.metric-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.1rem;
}

.metric-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Activity Feed */
.activity-feed {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.feed-controls {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.feed-filter {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.feed-filter.active {
    background: white;
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.feed-filter:hover {
    background: #f1f5f9;
}

.activity-stream {
    max-height: 300px;
    overflow-y: auto;
}

.stream-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.stream-item:hover {
    background: #f8fafc;
}

.stream-item:last-child {
    border-bottom: none;
}

.stream-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stream-icon.sales { background: #dcfce7; }
.stream-icon.admin { background: #fef3c7; }
.stream-icon.system { background: #e0f2fe; }

.stream-content {
    flex: 1;
}

.stream-action {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stream-details {
    font-size: 0.85rem;
    color: #64748b;
}

.stream-time {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Business Intelligence Cards */
.bi-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bi-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bi-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bi-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trend-item, .kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.trend-item:last-child, .kpi-item:last-child {
    border-bottom: none;
}

.trend-value, .kpi-value {
    font-weight: 600;
    color: #2563eb;
}

.trend-value.positive {
    color: #10b981;
}

.alert-item {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item.warning {
    background: #fef3c7;
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

.alert-item.info {
    background: #e0f2fe;
    color: #0369a1;
    border-left: 4px solid #2563eb;
}

.alert-item.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #10b981;
}

/* Responsive Design for Admin Dashboard */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-controls {
        justify-content: center;
    }
    
    .admin-overview {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .health-monitor-grid {
        grid-template-columns: 1fr;
    }
    
    .bi-summary-grid {
        grid-template-columns: 1fr;
    }
}/
* ===== USER MANAGEMENT STYLES (Step 3) ===== */

/* User Management Container */
.user-management-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary, .btn-danger, .btn-warning {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* User Table */
.user-table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.user-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.user-table tbody tr:hover {
    background: #f8fafc;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-details h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.user-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.role-badge.manager {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.role-badge.staff {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #6b7280;
}

.status-dot.away {
    background: #f59e0b;
}

.permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.permission-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-actions-cell {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.action-btn.edit {
    background: #e0f2fe;
    color: #0369a1;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.view {
    background: #f0fdf4;
    color: #166534;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* User Modal Styles */
.user-modal, .user-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* User Form Styles */
.user-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.permission-item:hover {
    background: #f8fafc;
}

.permission-item input[type="checkbox"] {
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Performance Monitor Styles */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.performance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.performance-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performer-item, .session-item, .security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.performer-item:last-child,
.session-item:last-child,
.security-item:last-child {
    border-bottom: none;
}

.performer-info, .session-info, .security-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.performer-avatar, .session-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.performer-details, .session-details {
    display: flex;
    flex-direction: column;
}

.performer-name, .session-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.performer-stats, .session-time {
    font-size: 0.8rem;
    color: #64748b;
}

.performer-score {
    font-weight: 700;
    color: #10b981;
    font-size: 1rem;
}

.session-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.session-status.active {
    background: #dcfce7;
    color: #166534;
}

.session-status.idle {
    background: #fef3c7;
    color: #d97706;
}

.security-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-icon {
    font-size: 1.2rem;
}

.security-message {
    font-size: 0.9rem;
    color: #1e293b;
}

.security-time {
    font-size: 0.8rem;
    color: #64748b;
}

/* User Details Modal */
.user-details-content {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-management-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}/* ===
== PRODUCT & INVENTORY MANAGEMENT STYLES (Step 4) ===== */

/* Inventory Management Container */
.inventory-management-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.inventory-stats {
    display: flex;
    gap: 2rem;
}

.inventory-actions {
    display: flex;
    gap: 1rem;
}

/* Inventory Filters */
.inventory-filters {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-group input[type="text"] {
    min-width: 200px;
}

/* Product Table */
.product-table-container {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.product-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.product-table tbody tr:hover {
    background: #f8fafc;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.product-details h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.product-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.category-badge.balls {
    background: #fef3c7;
    color: #d97706;
}

.category-badge.footwear {
    background: #e0f2fe;
    color: #0369a1;
}

.category-badge.equipment {
    background: #f0fdf4;
    color: #166534;
}

.category-badge.accessories {
    background: #fce7f3;
    color: #be185d;
}

.category-badge.apparel {
    background: #f3e8ff;
    color: #7c3aed;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selling-price {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.cost-price {
    font-size: 0.8rem;
    color: #64748b;
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.stock-level {
    font-weight: 600;
    font-size: 1rem;
}

.stock-level.good {
    color: #10b981;
}

.stock-level.low {
    color: #f59e0b;
}

.stock-level.out {
    color: #dc2626;
}

.min-stock {
    font-size: 0.8rem;
    color: #64748b;
}

.stock-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stock-status.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-status.low-stock {
    background: #fef3c7;
    color: #d97706;
}

.stock-status.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

/* Product Modal Styles */
.product-modal, .bulk-pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-container.large {
    max-width: 800px;
}

.product-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Pricing & Supplier Grid */
.pricing-supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.pricing-card, .supplier-card, .inventory-alerts-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-card h4, .supplier-card h4, .inventory-alerts-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9rem;
    color: #64748b;
}

.metric-value {
    font-weight: 600;
    color: #1e293b;
}

.metric-value.positive {
    color: #10b981;
}

.metric-value.warning {
    color: #f59e0b;
}

.pricing-actions, .supplier-actions, .alert-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.supplier-list, .alert-list {
    margin-bottom: 1.5rem;
}

.supplier-item, .alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.supplier-item:hover, .alert-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.supplier-item:last-child, .alert-item:last-child {
    margin-bottom: 0;
}

.supplier-info, .alert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.supplier-name, .alert-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.supplier-details, .alert-details {
    font-size: 0.8rem;
    color: #64748b;
}

.supplier-status, .alert-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.supplier-status.active {
    background: #dcfce7;
    color: #166534;
}

.supplier-status.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.alert-priority.high {
    background: #fee2e2;
    color: #dc2626;
}

.alert-priority.medium {
    background: #fef3c7;
    color: #d97706;
}

.alert-priority.low {
    background: #e0f2fe;
    color: #0369a1;
}

/* Bulk Pricing Modal */
.bulk-pricing-content {
    padding: 2rem;
}

.pricing-options {
    margin-bottom: 1.5rem;
}

.pricing-option {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pricing-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.percentage-controls, .fixed-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.percentage-controls input, .fixed-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.percentage-controls select, .fixed-controls select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.category-selection {
    margin-bottom: 1.5rem;
}

.category-selection label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.category-selection select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.pricing-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
}

/* Margin calculation display */
.margin-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.margin-percentage {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.margin-percentage.good {
    background: #dcfce7;
    color: #166534;
}

.margin-percentage.average {
    background: #fef3c7;
    color: #d97706;
}

.margin-percentage.poor {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive Design for Inventory */
@media (max-width: 768px) {
    .inventory-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .inventory-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .inventory-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        min-width: 100%;
    }
    
    .pricing-supplier-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-actions,
    .supplier-actions,
    .alert-actions {
        flex-direction: column;
    }
    
    .percentage-controls,
    .fixed-controls {
        flex-direction: column;
    }
}/* =====
 FINANCIAL CONTROLS & REPORTING STYLES (Step 5) ===== */

/* Financial Controls Container */
.financial-controls-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.financial-stats {
    display: flex;
    gap: 2rem;
}

.financial-actions {
    display: flex;
    gap: 1rem;
}

/* Financial Controls Grid */
.financial-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.transaction-controls-card, .pending-approvals-card, .payment-methods-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.transaction-controls-card h4, .pending-approvals-card h4, .payment-methods-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.control-item label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.control-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-input input, .control-input select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
}

.control-input span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.control-actions, .approval-actions, .payment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Pending Approvals */
.approval-list {
    max-height: 200px;
    overflow-y: auto;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.approval-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.approval-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.approval-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.approval-details {
    font-size: 0.8rem;
    color: #64748b;
}

.approval-amount {
    font-weight: 700;
    color: #dc2626;
    font-size: 1rem;
}

/* Payment Breakdown */
.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.payment-icon.mpesa {
    background: #10b981;
    color: white;
}

.payment-icon.cash {
    background: #f59e0b;
    color: white;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.payment-count {
    font-size: 0.8rem;
    color: #64748b;
}

.payment-amount {
    font-weight: 700;
    color: #2563eb;
    font-size: 1rem;
}

/* Reporting Container */
.reporting-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.report-filters {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    align-items: end;
    flex-wrap: wrap;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.custom-date {
    display: none;
}

.custom-date.show {
    display: flex;
}

/* Report Preview */
.report-preview {
    padding: 2rem;
}

.report-summary {
    margin-bottom: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.report-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.chart-container h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.simple-chart {
    height: 200px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.audit-trail-card, .tax-compliance-card, .data-retention-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.audit-trail-card h4, .tax-compliance-card h4, .data-retention-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audit-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.audit-stat {
    text-align: center;
}

.audit-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.audit-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.recent-audit-entries {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.audit-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.audit-entry:last-child {
    border-bottom: none;
}

.audit-action {
    color: #1e293b;
    font-weight: 500;
}

.audit-time {
    color: #64748b;
}

.audit-actions {
    display: flex;
    gap: 0.75rem;
}

/* Tax Compliance */
.tax-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.tax-item:last-child {
    border-bottom: none;
}

.tax-label {
    font-size: 0.9rem;
    color: #64748b;
}

.tax-value {
    font-weight: 600;
    color: #1e293b;
}

.compliance-actions {
    display: flex;
    gap: 0.75rem;
}

/* Data Retention */
.retention-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.retention-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.retention-item:last-child {
    border-bottom: none;
}

.retention-label {
    font-size: 0.9rem;
    color: #64748b;
}

.retention-value {
    font-weight: 600;
    color: #1e293b;
}

.retention-actions {
    display: flex;
    gap: 0.75rem;
}

/* Report Modal Styles */
.report-modal, .approval-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.report-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.report-config {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.config-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.section-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.section-item:hover {
    background: white;
}

.section-item input[type="checkbox"] {
    margin: 0;
}

.report-preview-panel {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.report-preview-panel h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-content {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    min-height: 300px;
}

.preview-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.preview-header h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.preview-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-section {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #2563eb;
}

.preview-section-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.preview-section-content {
    font-size: 0.8rem;
    color: #64748b;
}

/* Approval Modal */
.approval-content {
    padding: 2rem;
}

.transaction-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.detail-value.amount {
    color: #dc2626;
    font-size: 1.1rem;
}

/* Responsive Design for Financial */
@media (max-width: 768px) {
    .financial-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .financial-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .financial-controls-grid {
        grid-template-columns: 1fr;
    }
    
    .report-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .report-form-container {
        grid-template-columns: 1fr;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-charts {
        grid-template-columns: 1fr;
    }
}