/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Login page styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #4CAF50;
    width: 100%;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

/* Dashboard layout */
.content {
    margin-left: 248px ;
    padding: 20px;
    min-height: 100vh;
}
.poosa{
    margin-left: 0px !important;
    padding: 20px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 10px;
    color: #333;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding-top: 20px;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #34495e;
    color: white;
    border-left: 4px solid #4CAF50;
}

/* Dashboard stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 40px;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
}

.stat-alert {
    margin-left: auto;
    padding: 5px 10px;
    background-color: #ffc107;
    color: #333;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.pending {
    background-color: #ffc107;
    color: #333;
}

.status-badge.in-progress {
    background-color: #17a2b8;
    color: white;
}

.status-badge.completed {
    background-color: #28a745;
    color: white;
}

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

.pos-products {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-stock {
    font-size: 12px;
    color: #666;
}

.pos-cart {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-items table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-items th,
.cart-items td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cart-summary {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.summary-row input {
    width: 80px;
    padding: 5px;
    text-align: right;
}

.customer-section,
.payment-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.customer-section h3,
.payment-section h3 {
    margin-bottom: 10px;
}

.customer-section select,
.payment-section select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        margin-left: 0;
    }
    
    .pos-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
/* Additional styles for new elements */

/* Header actions */
.header-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Form rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Status filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filters option{
    padding: 15px;
}
.status-filter {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-filter.active {
    background-color: #4CAF50;
    color: white;
}

.status-filter .count {
    background-color: #dee2e6;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-filter.active .count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Category badges */
.category-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.category-badge.battery {
    background-color: #ffeeba;
    color: #856404;
}

.category-badge.accessory {
    background-color: #cce5ff;
    color: #004085;
}

.category-badge.spare_part {
    background-color: #d4edda;
    color: #155724;
}

.category-badge.manufactured {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Detail cards for repair view */
.detail-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-row.total {
    font-weight: bold;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.detail-row .label {
    color: #666;
}

.detail-row .value {
    font-weight: 500;
}

/* Sales summary */
.sales-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

/* Cost summary */
.cost-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.cost-summary h3 {
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-row.total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
}

/* Customer stats */
.customer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Top bar for breadcrumb and notifications */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* User info in sidebar */
.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: #34495e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info p {
    margin: 5px 0;
    font-size: 12px;
    color: #ddd;
}

.user-info strong {
    color: white;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .top-bar {
        flex-direction: column;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .filters {
        justify-content: center;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
}

/* Category management styles */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.category-filter {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-filter:hover {
    background-color: #e9ecef;
}

.category-filter.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.text-muted {
    color: #6c757d !important;
}

/* Hierarchy indentation */
.category-indent-1 { padding-left: 20px; }
.category-indent-2 { padding-left: 40px; }
.category-indent-3 { padding-left: 60px; }

/* Print receipt styles */
.receipt-container {
    max-width: 80mm;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.receipt-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.receipt-details {
    margin-bottom: 15px;
}

.receipt-section {
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
    padding: 3px 0;
    text-align: left;
}

.receipt-table .text-right {
    text-align: right;
}

.receipt-total {
    border-top: 1px solid #000;
    font-weight: bold;
    padding-top: 5px;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* Thermal printer friendly styles */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-container, .receipt-container * {
        visibility: visible;
    }
    .receipt-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
    }
    .no-print {
        display: none !important;
    }
}

/* Button styles for receipt */
.btn-receipt {
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
}

.btn-receipt:hover {
    background-color: #5a6268;
    color: white;
}
/* Battery type styles */
.battery-type-badge {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    background-color: #e9ecef;
    color: #495057;
}

/* Filter buttons */
.battery-type-filter {
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    margin: 2px;
    font-size: 12px;
}

.battery-type-filter.active {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}
/* Manufactured product deletion styles */
.deletion-details {
    margin: 20px 0;
}

.detail-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-row .label {
    color: #666;
    font-weight: 500;
}

.detail-row .value {
    font-weight: 600;
}

.confirmation-actions {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}