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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header {
    background-color: #5c6bc0;
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 0;
}

header h1 {
    font-size: 28px;
    font-weight: normal;
}

/* Tabs */
.tabs-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #5c6bc0;
    border-bottom: 3px solid #5c6bc0;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Meklēšana */
.search-container, .product-search-container {
    display: flex;
    margin-bottom: 20px;
}

#searchInput, #productSearchInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    font-size: 16px;
}

#searchBtn, #productSearchBtn {
    background-color: #5c6bc0;
    color: white;
    padding: 0 15px;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

h2 {
    margin: 20px 0 15px;
    font-size: 20px;
    font-weight: bold;
}

/* Tabulu stils */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

th {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #ddd;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

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

/* Daudzuma ievades lauki */
.quantity-input {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Ātri pievienošanas pogas */
.quantity-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.quick-add {
    background-color: #e0e0e0;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.quick-add:hover {
    background-color: #d0d0d0;
}

/* Pogas */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.add-to-order-btn {
    background-color: #5c6bc0;
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
}

.remove-btn {
    background-color: #f44336;
    color: white;
    padding: 8px;
    border-radius: 3px;
}

.view-btn {
    background-color: #5c6bc0;
    color: white;
    padding: 8px;
    border-radius: 3px;
}

/* Kopsavilkuma sekcija */
.summary-section {
    background-color: #fff;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-top: 1px solid #eee;
}

.summary-row:first-child {
    border-top: none;
}

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

/* Darbību pogas */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.print-btn {
    background-color: #2196F3;
    color: white;
}

/* Arhīva sekcija */
.archive-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Noņemt pogu */
.remove-btn i {
    font-size: 20px;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.barcode-input {
    display: flex;
    gap: 10px;
}

.barcode-input input {
    flex: 1;
}

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

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

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

/* Product list section */
.product-list-section {
    margin-top: 30px;
}

/* Update stock button */
.update-stock-btn {
    background-color: #FF9800;
    color: white;
}
