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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 120px; /* Space for fixed header */
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    margin: 0;
}

.header-total {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Import/Export buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-action {
    background: #34495e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-action:hover {
    background: #2c3e50;
}

/* Form styles */
.tax-section {
    display: none;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    color: #2c3e50;
    font-size: 2rem;
}

/* Form styles */
.item-form {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-add {
    width: 100%;
    padding: 0.75rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add:hover {
    background-color: #27ae60;
}

/* Items list */
.items-list {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.item:hover {
    background-color: #f8f9fa;
}

.item:last-child {
    border-bottom: none;
}

.item-details {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-name {
    flex: 1;
}

.item-price, .item-quantity, .item-total {
    white-space: nowrap;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.item-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* Checked items */
.item.checked {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.item.checked .item-details {
    text-decoration: line-through;
    color: #666;
}

/* Totals section */
.totals {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.total-row.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0.5rem;
    }
} 