* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #fce4e4;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

.hamburger {
    display: none;
    font-size: 24px;
    padding: 12px;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    border-radius: 5px;
}

.hamburger:hover {
    background: #c0392b;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-right: 2px solid #c0392b;
    overflow: hidden;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    background: #fff;
}

.main-content h1 {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.add-btn {
    background: #2ecc71;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.add-btn:hover {
    background: #27ae60;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-bar select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.order-list {
    display: grid;
    gap: 20px;
}

.order-list table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.order-list th, .order-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.order-list th {
    background: #e74c3c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.order-list th:hover {
    background: #c0392b;
}

.order-list th[data-direction="asc"]::after {
    content: ' ↑';
}

.order-list th[data-direction="desc"]::after {
    content: ' ↓';
}

.order-list tr:nth-child(even) {
    background: #f9f9f9;
}

.order-list tr:hover {
    background: #fce4e4;
}

.edit-btn {
    background: #f1c40f;
    color: #fff;
    padding: 8px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn:hover {
    background: #d4ac0d;
}

.delete-btn {
    background: #e74c3c;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #c0392b;
}

.sell-btn {
    background: #2ecc71;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.sell-btn:hover {
    background: #27ae60;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    color: #e74c3c;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content label {
    font-weight: bold;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.modal-content textarea {
    resize: vertical;
    height: 80px;
}

.modal-content button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:first-of-type {
    background: #2ecc71;
    color: #fff;
}

.modal-content button:first-of-type:hover {
    background: #27ae60;
}

.modal-content button:last-of-type {
    background: #e74c3c;
    color: #fff;
}

.modal-content button:last-of-type:hover {
    background: #c0392b;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.pagination label {
    font-weight: bold;
}

.pagination select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination button {
    padding: 8px 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        top: 60px;
        height: calc(100vh - 60px);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
    .order-list table {
        display: block;
        overflow-x: auto;
    }
    .search-bar {
        flex-direction: column;
    }
    .search-bar input, .search-bar select {
        width: 100%;
    }
}