/* main styles */

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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    font-size: 2.5em;
}

.header img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.driver-login-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.driver-login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-login-link {
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Make selects used as inputs match input sizing and be mobile-friendly */
.location-input {
    width: 100%;
}

select.location-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.75;
}

/* Employee Interface Styles */
.employee-dashboard {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.employee-dashboard h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.dashboard-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 15px;
}

.dashboard-btn {
    background-color: #28a745;
    padding: 10px 20px;
    font-size: 14px;
}

.dashboard-btn:hover {
    background-color: #218838;
}

.logout-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.logout-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* end main styles */

/* Admin Portal Styles */

.admin-dashboard {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.admin-dashboard h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 2em;
}

.admin-dashboard p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.card button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.card button:hover {
    background-color: #0056b3;
}

.card a {
    text-decoration: none;
    display: block;
}

.card a button {
    width: 100%;
}

.logout-section {
    text-align: center;
    margin-top: 20px;
}

.logout-section .btn-logout {
    display: inline-block;
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.logout-section .btn-logout:hover {
    background-color: #c82333;
}

/* End Admin Portal Styles */

/* manage drivers styles */

.driver-table-wrapper {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.driver-table th,
.driver-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.driver-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.driver-table td {
    color: #666;
    font-size: 14px;
}

.driver-table tr:hover {
    background-color: #f8f9fa;
}

.edit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.back-button-section {
    text-align: center;
    margin-top: 20px;
}

.back-button-section .btn-logout {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.back-button-section .btn-logout:hover {
    background-color: #5a6268;
}

/* end manage drivers styles */

/* Spacing for action buttons in Manage Drivers */
.driver-table .save-btn,
.driver-table .save-new-btn {
    margin-right: 10px;
}
.driver-table .cancel-btn,
.driver-table .cancel-new-btn {
    margin-left: 10px;
}

/* Edit buttons row styling */
.edit-buttons-row .save-btn,
.edit-buttons-row .cancel-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.edit-buttons-row .save-btn:hover {
    background-color: #218838;
}

.edit-buttons-row .cancel-btn {
    background-color: #6c757d;
}

.edit-buttons-row .cancel-btn:hover {
    background-color: #5a6268;
}

/* Add buttons row styling */
.add-buttons-row .save-new-btn,
.add-buttons-row .cancel-new-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.add-buttons-row .save-new-btn:hover {
    background-color: #218838;
}

.add-buttons-row .cancel-new-btn {
    background-color: #6c757d;
}

.add-buttons-row .cancel-new-btn:hover {
    background-color: #5a6268;
}

/* Dumpster Inventory Styles */

.dumpster-dashboard {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.map-section {
    margin-bottom: 30px;
    text-align: center;
}

.map-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.note {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.assign-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.assign-btn:hover {
    background-color: #218838;
}

/* End Dumpster Inventory Styles */

/* Logs Page Styles */

.logs-dashboard {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.logs-header {
    text-align: center;
    margin-bottom: 20px;
}

.logs-header p {
    font-weight: bold;
    margin-bottom: 0;
    color: #333;
    font-size: 16px;
}

.highlight {
    color: #007bff;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #5a6268;
}

.page-number {
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.export-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.export-btn:hover {
    background-color: #218838;
}

/* End Logs Page Styles */

/* Messages Page Styles */

.messages-dashboard {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.message-box {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.global-message-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.global-message-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.global-message-box {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    resize: vertical;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

.message-controls {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.send-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background-color: #218838;
}

.message-all-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.message-all-btn:hover {
    background-color: #218838;
}

/* End Messages Page Styles */
  
