body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    color: #333;
    margin-top: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
}

button {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.error {
    color: red;
    margin-bottom: 10px;
}

.success {
    color: green;
    margin-bottom: 10px;
}

.top-buttons {
    margin-bottom: 20px;
}

.top-buttons a {
    background: #28a745;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
}

.top-buttons a:hover {
    background: #218838;
}

.note-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.note-table th, .note-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

.note-table th {
    background: #007bff;
    color: #fff;
}

.note-table tr:nth-child(even) {
    background: #f8f9fa;
}

.note-table .dd-number {
    width: 120px;
}

.note-table .wb-ticket {
    width: 120px;
}

.note-table .date {
    width: 100px;
}

.weight-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weight-input {
    width: 150px;
    padding: 6px;
    font-size: 14px;
}

.weight-button {
    background: #28a745;
    padding: 6px 12px;
    font-size: 14px;
}

.weight-button:hover {
    background: #218838;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .note-table {
        font-size: 12px;
    }
    .note-table th, .note-table td {
        padding: 6px;
    }
    .note-table .dd-number, .note-table .wb-ticket, .note-table .date {
        width: auto;
    }
    .weight-input {
        width: 100px;
    }
    .weight-button {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Left-aligned menu for index.php */
.left-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 250px;
    background: #f5f5f5; /* Off-white background */
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); /* Shadow for left side */
    z-index: 1000;
    border-radius: 5px;
}

/* Welcome message in menu */
.menu-welcome {
    display: block;
    padding: 8px 15px;
    color: #333; /* Match body text */
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Menu item styling */
.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    margin: 5px 0;
    background: #007bff; /* Blue from button */
    color: #fff; /* White text for contrast */
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    border-radius: 4px;
}

.menu-item:hover {
    background: #0056b3; /* Blue hover from button */
    transform: translateX(5px); /* Move right on hover */
}

.menu-item i {
    margin-right: 10px;
    font-size: 1.2em;
    color: #fff; /* White icons for contrast */
}

.menu-text {
    flex: 1;
}

/* Highlight current page in menu */
.menu-item.current-page {
    background: #0056b3; /* Darker blue for active page */
    font-weight: 600;
}

/* Sub-menu styling */
.sub-menu {
    display: none; /* Hidden by default */
    margin-left: 20px; /* Indent sub-menu */
    margin-top: 5px;
}

.sub-menu.show {
    display: block; /* Show when active */
}

.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 3px 0;
    background: #6c757d; /* Gray for sub-menu to distinguish from main menu */
    color: #fff;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85em;
    border-radius: 4px;
}

.sub-menu-item:hover {
    background: #5a6268; /* Darker gray on hover */
    transform: translateX(5px);
}

.sub-menu-item i {
    margin-right: 8px;
    font-size: 1.1em;
    color: #fff;
}

.sub-menu-item.current-page {
    background: #5a6268; /* Darker gray for active sub-menu item */
    font-weight: 500;
}

/* Adjust container to avoid overlap with left menu */
.container {
    margin-left: 290px; /* Space for left-menu (250px + 20px padding + 20px left) */
    max-width: 910px; /* 1200px - 290px to maintain centering */
}

/* Responsive: Stack menu on smaller screens */
@media (max-width: 768px) {
    .left-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-bottom: 20px;
    }
    .container {
        margin-left: 0; /* Reset margin on small screens */
        max-width: 100%; /* Full width on mobile */
    }
    .sub-menu {
        margin-left: 10px; /* Less indent on mobile */
    }
}