:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #e67e22;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --danger: #c0392b;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    color: var(--primary);
    margin: 0;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

h2 {
    color: var(--secondary);
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
    margin-top: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.grid-5 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 10px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #666;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    /* Fix padding issue */
}

.input-group {
    display: flex;
    gap: 5px;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-success {
    background-color: var(--success);
}

.btn-danger {
    background-color: var(--danger);
}

.btn-lg {
    width: 100%;
    font-size: 1.1em;
    padding: 15px;
}

.item-row {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.btn-remove-item {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.8em;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 500px;
    position: relative;
}

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

.header-actions {
    display: flex;
    gap: 10px;
}

.history-content {
    width: 800px;
    max-width: 90%;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

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

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

.history-table th {
    background-color: #f2f2f2;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

.mt-2 {
    margin-top: 20px;
}

.full-width {
    grid-column: 1 / -1;
}