body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    color: #333;
}

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

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.file-controls, .edit-controls {
    display: flex;
    gap: 10px;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #218838;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Percentage Update Panel */
.percentage-update-panel {
    background-color: #f0f8ff;
    border: 1px solid #b0c4de;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.percentage-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.update-options {
    display: flex;
    gap: 10px;
}

/* Messages */
.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

/* Search */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Table */
.table-container {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

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

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

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

/* Editable cells */
.editable {
    cursor: pointer;
    position: relative;
}

.editable:hover {
    background-color: #f0f0f0;
}

.editable:hover::after {
    content: "Click to edit";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1;
}

.price-cell {
    font-weight: bold;
    color: #2e7d32;
}

.editing {
    padding: 0 !important;
}

.editing input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #28a745;
    box-sizing: border-box;
}

.modified {
    background-color: #e8f5e9;
}

.modified {
    background-color: #e8f5e9;
}

/* Selected cells */
.selected {
    background-color: #e3f2fd !important;
    border: 2px solid #2196F3 !important;
    box-sizing: border-box;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .controls, .percentage-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .file-controls, .edit-controls, .update-options {
        width: 100%;
    }
    
    button {
        width: 100%;
    }
}
