/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

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

/* Header styles */
.header {
    background-color: #007AFF;
    padding: 16px;
    margin-bottom: 16px;
}

.header-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Section styles */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 12px;
}

/* Button styles */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

button, .button {
    background-color: #007AFF;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* List styles */
.list-container {
    margin: 8px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
    list-style: none;
}

.list-item, .action-item, .defect-item {
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.list-item button {
    margin-left: 8px;
}

/* For multiple buttons per item */
.list-item .button-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* For items with description/content */
.list-item span {
    flex: 1;
}

/* Form elements */
input, .measurement-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 20px auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #343a40;
}

/* Status indicators */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-inactive {
    background-color: #dc3545;
    color: white;
}

/* Check button styles */
.check-button {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.check-button-completed {
    background-color: #28a745;
}

.check-button-incomplete {
    background-color: #dc3545;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
    margin-bottom: 20px;
}
.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.login-container button:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    gap: 20px;
}
.button-container a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.button-container a:hover {
    background-color: #0056b3;
}

.back-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    left: 16px;
    top: 50%;
    margin-top: 3%;
    transform: translateY(-50%);
}

.back-button:hover {
    opacity: 0.8;
}

.item-container {
    padding: 16px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

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

.title {
    font-size: 24px;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #007AFF;
    color: white;
    border-radius: 8px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #666;
}

.list-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-container {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-text {
    font-size: 16px;
    color: #212529;
    margin: 0;
}

.select-button {
    background-color: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    
    .title {
        font-size: 20px;
        padding: 12px;
    }
    
    .job-container {
        padding: 12px;
    }
}

.search-input {
    width: 95%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.searchable-part.selected {
    background-color: #f0f8ff;
    border: 1px solid #007bff;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
}

.quantity-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
}

#password {
    width: 95%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#username {
    width: 95%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Add these styles to your existing CSS */
#inspections-list .list-item {
    display: flex;
    align-items: center;
}

#inspections-list .list-item span {
    flex: 1;
}

#inspections-list .list-item .button-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}
.action-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #E0E0E0;
    border-radius: 5px;
}
.defect-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #C62828;
    color: white;
    border-radius: 5px;
}
.button {
    background-color: #007AFF;
    padding: 15px;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}
.measurement-input {
    width: 100px;
    padding: 5px;
    margin-left: 10px;
    border: none;
    background-color: #f0f0f0;
}

#signOffModal .button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

#confirmSignOff {
    background-color: #dc3545;
    color: white;
}

#cancelSignOff {
    background-color: #6c757d;
    color: white;
}

#signOffModal p {
    text-align: center;
    margin: 20px 0;
}

.resolved {
    background-color: #28a745;
    color: white;
}

.unresolved {
    background-color: #dc3545;
    color: white;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: auto;
}

.checkbox-container {
    display: flex;
    justify-content: space-around;
}
.check-button {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.check-button-completed {
    background-color: #4CAF50; /* Green */
}
.check-button-incomplete {
    background-color: #F44336; /* Red */
}
.measurement-input {
    width: 100px;
    padding: 5px;
    margin-left: 10px;
}

.action-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

#vehicleSelect {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

#instructionsList .list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#instructionsList .search-input {
    flex: 1;
    margin: 0;
}

#submitButton {
    margin-top: 20px;
    width: 100%;
    background-color: #007AFF;
    color: white;
}

.warning {
    color: #dc3545;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #dc3545;
    border-radius: 4px;
}

.action-task {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.status-button {
    padding: 8px 20px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    color: black;
}

.status-ok { background: #4CAF50; color: white; }
.status-fail { background: #f44336; color: white; }

.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.item-container.selected {
    background-color: #f0f0f0;
}

.notes-container {
    padding: 10px;
}

.notes-input {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.status-na {
    background-color: #808080;
    color: white;
}

.status-na:hover {
    background-color: #666666;
}