body {
    font-family: 'Nunito', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 90%;
    transition: width 0.3s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2E2E2E;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

header img {
    max-width: 200px;
    height: auto;
}

header nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover {
    background-color: #CCCCCC;
}

header nav a:active {
    background-color: #E2B41D;
}

/* Product Table Styling */
.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.products-table th {
    background-color: #2E2E2E;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.products-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.products-table tr:hover {
    background-color: #fff59a;
}

/* Column and Row Styling */
.products-table td {
    padding: 12px;
}

.products-table th,
.products-table td {
    border: 1px solid #ddd;
    word-wrap: break-word;
}

/* Specific Table Styling */
#brands-list {
    width: 100%;
}

#brands-list td,
#brands-list th {
    padding: 10px;
}

#subcategories-list td,
#subcategories-list th {
    padding: 10px;
}

h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #800000;
    font-size: 2.5em;
    text-align: center;
}

.order-details {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #800000;
    display: flex;
    flex-direction: column;
}

#auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    flex-direction: column;
    text-align: center;
}

#auth-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
button {
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.save-btn:hover {
    background-color: #5DB761;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.delete-btn:hover {
    background-color: #da190b;
}

#login-btn,
#add-driver-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #800000;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}

#login-btn:hover,
#add-driver-btn:hover {
    background-color: #700000;
}

.driver-table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
}

.driver-table th,
.driver-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.driver-table th {
    background-color: #800000;
    color: white;
}

.driver-table input {
    width: 95%;
    padding: 5px;
    margin: 3px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 20px;
}

.driver-table td {
    padding: 8px;
    word-wrap: break-word;
}

/* Footer */
footer {
    margin-top: 30px;
    font-size: 12px;
    color: #999;
    text-align: center;
    position: relative;
    padding-bottom: 40px;
}

footer img {
    display: block;
    margin: 0 auto;
    max-width: 30px;
    height: 30px;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: block;
    cursor: pointer;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.input-field {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
}

.toggle-btn-enabled {
    background-color: #b0b0b0;
    color: #FFF;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
}

.toggle-btn-enabled:hover {
    background-color: #cccccc;
}

.toggle-btn-disabled {
    background-color: #757575;
    color: #FFF;
}

.toggle-btn-disabled:hover {
    background-color: #cccccc;
}

.driver-save-btn {
    background-color: #4CAF50;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin: 10px 0;
    color: #FFF;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 18px;
}

.driver-save-btn:hover {
    background-color: #5DB761;
}

.refresh-list {
    width: 200px;
}

.orders-table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.orders-table th,
.orders-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    word-wrap: break-word;
}

.orders-table th {
    background-color: #800000;
    color: white;
    font-weight: bold;
}

.orders-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.orders-table tbody tr:hover {
    background-color: #fff59a;
}

/* Styling the Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.orders-table th {
    background-color: #800000;
    color: white;
    font-weight: 600;
}

.orders-table th, .orders-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-word;
  }
  

table.orders-table {
    width: 100%;
    table-layout: fixed; /* Ensures the table respects the specified widths */
  }
  
  /* Apply to table headers */
.orders-table th:nth-child(1) { width: 2%; }
.orders-table th:nth-child(2) { width: 7%; }
.orders-table th:nth-child(3) { width: 20%; }
.orders-table th:nth-child(4) { width: 8%; }
.orders-table th:nth-child(5) { width: 8%; }
.orders-table th:nth-child(6) { width: 5%; }
.orders-table th:nth-child(7) { width: 5%; }
.orders-table th:nth-child(8) { width: 8%; }
.orders-table th:nth-child(9) { width: 8%; }
.orders-table th:nth-child(10) { width: 5%; }
.orders-table th:nth-child(11) { width: 5%; }
.orders-table th:nth-child(12) { width: 5%; }
.orders-table th:nth-child(13) { width: 14%; }

/* Apply to table data cells */
.orders-table td:nth-child(1) { width: 2%; }
.orders-table td:nth-child(2) { width: 7%; }
.orders-table td:nth-child(3) { width: 20%; }
.orders-table td:nth-child(4) { width: 8%; }
.orders-table td:nth-child(5) { width: 8%; }
.orders-table td:nth-child(6) { width: 5%; }
.orders-table td:nth-child(7) { width: 5%; }
.orders-table td:nth-child(8) { width: 8%; }
.orders-table td:nth-child(9) { width: 8%; }
.orders-table td:nth-child(10) { width: 5%; }
.orders-table td:nth-child(11) { width: 5%; }
.orders-table td:nth-child(12) { width: 5%; }
.orders-table td:nth-child(13) { width: 14%; }
