/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.login-footer p {
    margin-bottom: 5px;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-header .logo i {
    font-size: 2rem;
    color: #3498db;
}

.sidebar-header .logo h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
    background: #34495e;
    color: white;
    border-left-color: #3498db;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f5f6fa;
    min-height: 100vh;
}

.top-bar {
    background: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f1f2f6;
}

#pageTitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
}

.user-info i {
    font-size: 1.5rem;
    color: #3498db;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 30px;
}

.content-section.active {
    display: block;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Dashboard Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.chart {
    height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.filters select {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Products Table */
.products-table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.products-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.products-table td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* Category and Stock Badges */
.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.stock-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 40px;
}

.stock-badge.normal {
    background: #e8f5e8;
    color: #2e7d32;
}

.stock-badge.low {
    background: #fff3e0;
    color: #f57c00;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Text Utilities */
.text-muted {
    color: #7f8c8d;
}

/* Form Focus States */
.form-group.focused label {
    color: #22c55e;
}

.form-group.has-value label {
    color: #16a34a;
}

.form-group.has-error label {
    color: #dc2626;
}

/* Receipt Form Specific Styles */
.receipt-modal .form-group input,
.receipt-modal .form-group textarea {
    border: 2px solid #e8f5e8;
    transition: all 0.3s ease;
}

.receipt-modal .form-group input:focus,
.receipt-modal .form-group textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.receipt-modal .form-group label {
    color: #166534;
    font-weight: 600;
}

.receipt-modal .form-group input::placeholder,
.receipt-modal .form-group textarea::placeholder {
    color: #9ca3af;
}

/* Password Toggle */
.password-toggle {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2c3e50;
}

/* Section Actions */
.section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Receipt Modal Styles */
.receipt-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.receipt-section {
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border: 2px solid #e8f5e8;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.08);
    transition: all 0.3s ease;
}

.receipt-section:hover {
    border-color: #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15);
}

.receipt-section h4 {
    margin-bottom: 20px;
    color: #166534;
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 3px solid #22c55e;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.selected-items-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e8f5e8;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.1);
}

.selected-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    font-weight: 700;
    color: #166534;
    border-bottom: 2px solid #22c55e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-items-list {
    max-height: 300px;
    overflow-y: auto;
}

.selected-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8f5e8;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
}

.selected-item:hover {
    background: #f0fdf4;
    transform: translateX(5px);
}

.selected-item:last-child {
    border-bottom: none;
}

.selected-item .item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-item .item-info img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e8f5e8;
    transition: all 0.3s ease;
}

.selected-item .item-info img:hover {
    border-color: #22c55e;
    transform: scale(1.05);
}

.selected-item .item-info .item-details h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.selected-item .item-info .item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.selected-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-item .quantity-controls button {
    width: 32px;
    height: 32px;
    border: 2px solid #e8f5e8;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #166534;
    font-weight: 600;
}

.selected-item .quantity-controls button:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    transform: scale(1.1);
}

.selected-item .quantity-controls input {
    width: 55px;
    text-align: center;
    border: 2px solid #e8f5e8;
    border-radius: 6px;
    padding: 6px;
    font-weight: 600;
    color: #166534;
    transition: all 0.3s ease;
}

.selected-item .quantity-controls input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.selected-item .item-price {
    font-weight: 700;
    color: #166534;
    font-size: 1.1rem;
}

.selected-item .item-total {
    font-weight: 800;
    color: #22c55e;
    font-size: 1.1rem;
}

.selected-item .remove-item {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.selected-item .remove-item:hover {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.add-item-section {
    padding: 20px;
    text-align: center;
    border-top: 2px solid #e8f5e8;
    background: #f0fdf4;
}

.receipt-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #bbf7d0;
    font-size: 1.1rem;
    color: #166534;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #166534;
    border-top: 3px solid #22c55e;
    padding-top: 18px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-row span:last-child {
    font-weight: 800;
    color: #22c55e;
    font-size: 1.2rem;
}

/* Button Colors */
.btn-success {
    background: #22c55e;
    color: white;
    border: 2px solid #22c55e;
}

.btn-success:hover {
    background: #16a34a;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.btn-info {
    background: #0ea5e9;
    color: white;
    border: 2px solid #0ea5e9;
}

.btn-info:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.category-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.category-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.stat-item .label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Inventory Overview */
.inventory-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.inventory-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.inventory-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.inventory-list {
    max-height: 300px;
    overflow-y: auto;
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
}

.inventory-item:last-child {
    border-bottom: none;
}

.inventory-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.stock-status {
    margin-left: auto;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-status.low {
    background: #fff3cd;
    color: #856404;
}

.stock-status.out {
    background: #f8d7da;
    color: #721c24;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.analytics-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.analytics-list {
    max-height: 300px;
    overflow-y: auto;
}

.analytics-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
}

.analytics-item:last-child {
    border-bottom: none;
}

.analytics-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.analytics-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.analytics-info p {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.analytics-value {
    margin-left: auto;
    font-weight: 600;
    color: #3498db;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.settings-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Date Range */
.date-range {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-range input[type="date"] {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
}

.date-range span {
    color: #7f8c8d;
    font-weight: 500;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: #2c3e50;
    font-weight: 600;
}

/* Receipt Header Styling */
.receipt-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-branding h3 {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.store-branding p {
    color: #166534;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Add Item Modal Styles */
.add-item-modal {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.add-item-content {
    padding: 25px;
}

.search-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.search-section .search-box {
    flex: 1;
    position: relative;
}

.search-section .search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 3px solid #e8f5e8;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    spellcheck: false;
    autocomplete: off;
    cursor: text;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.search-section .search-box input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    outline: none;
}

.search-section .search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

.category-filter select {
    padding: 15px 20px;
    border: 3px solid #e8f5e8;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: #166534;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.category-filter select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    outline: none;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.pc-part-card {
    background: white;
    border: 3px solid #e8f5e8;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pc-part-card:hover {
    border-color: #22c55e;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.pc-part-card.selected {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.pc-part-card .part-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e8f5e8;
    margin-bottom: 15px;
}

.pc-part-card .part-name {
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pc-part-card .part-specs {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pc-part-card .part-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 15px;
}

.pc-part-card .part-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pc-part-card .add-to-receipt {
    width: 100%;
    padding: 12px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pc-part-card .add-to-receipt:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.pc-part-card .add-to-receipt:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Make borders bigger throughout the receipt modal */
.receipt-modal .form-group input,
.receipt-modal .form-group textarea {
    border: 3px solid #e8f5e8;
    transition: all 0.3s ease;
}

.receipt-modal .form-group input:focus,
.receipt-modal .form-group textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    outline: none;
}

.selected-items-container {
    border: 3px solid #e8f5e8;
}

.selected-items-header {
    border-bottom: 3px solid #22c55e;
}

.selected-item {
    border-bottom: 2px solid #e8f5e8;
}

.selected-item .item-info img {
    border: 3px solid #e8f5e8;
}

.selected-item .quantity-controls button {
    border: 3px solid #e8f5e8;
}

.selected-item .quantity-controls input {
    border: 3px solid #e8f5e8;
}

.receipt-summary {
    border: 3px solid #e8f5e8;
}

.receipt-summary .summary-row {
    border-bottom: 2px solid #e8f5e8;
}

/* Price Edit Input Styling */
.price-edit-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e8f5e8;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    background: white;
    color: #166534;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-edit-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    outline: none;
}

.price-edit-input:hover {
    border-color: #22c55e;
}

/* Make the price column wider to accommodate the input */
.selected-items-header span:nth-child(2),
.selected-item > div:nth-child(2) {
    min-width: 100px;
}

/* Responsive design for the add item modal */
@media (max-width: 768px) {
    .add-item-modal {
        max-width: 95vw;
        margin: 20px;
    }
    
    .search-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pc-part-card {
        padding: 15px;
    }
    
    .price-edit-input {
        width: 70px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

.close {
    color: #7f8c8d;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c3e50;
}

.modal form {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .top-bar {
        padding: 15px 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal form {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Receipt modal responsive */
    .receipt-modal {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .selected-items-header,
    .selected-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .selected-items-header {
        display: none;
    }
    
    .selected-item .item-info {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-item .quantity-controls {
        justify-content: center;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .top-bar {
        padding: 15px;
    }
    
    #pageTitle {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}
