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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    background: #3498db;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 5px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Barcode section styles */
.barcode-section {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.barcode-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

label {
    display: inline-block;
    width: 150px;
    font-weight: bold;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

#status-message {
    min-height: 24px;
    font-size: 14px;
}

.success {
    color: #27ae60;
}

.error {
    color: #e74c3c;
}

/* Bill section styles */
.bill-section {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.grand-total {
    text-align: right;
    font-size: 18px;
    padding: 10px;
    background: #f2f2f2;
    border-radius: 4px;
}

/* Help links section */
.help-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.help-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f2f2f2;
    border-radius: 4px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
}

.help-link:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 15px;
    color: #7f8c8d;
    font-size: 14px;
} 