/* Truck Prestart Checklist Styles */

.tpc-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.tpc-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 3px solid #333;
    padding-bottom: 15px;
}

.tpc-section-header {
    background-color: #666;
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    margin: 25px 0 15px 0;
    border-radius: 4px;
}

.tpc-section-divider {
    font-style: italic;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 15px;
    margin: 20px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.tpc-item {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background-color: #fafafa;
}

.tpc-item-number {
    font-size: 20px;
    font-weight: bold;
    color: #666;
    min-width: 35px;
    margin-right: 15px;
}

.tpc-item-content {
    flex: 1;
}

.tpc-item-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.tpc-check-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.tpc-check-row:last-child {
    border-bottom: none;
}

.tpc-check-label {
    flex: 1;
    font-size: 14px;
    color: #555;
    padding-right: 15px;
}

.tpc-radio-group {
    display: flex;
    gap: 20px;
    min-width: 280px;
}

.tpc-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.tpc-radio-group input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tpc-info-section {
    margin-top: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.tpc-info-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #666;
    padding-bottom: 10px;
}

.tpc-form-group {
    margin-bottom: 20px;
}

.tpc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.tpc-form-group .required {
    color: #e74c3c;
}

.tpc-form-group input[type="text"],
.tpc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.tpc-form-group input[type="text"]:focus,
.tpc-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.tpc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tpc-submit-section {
    margin-top: 30px;
    text-align: center;
}

.tpc-submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tpc-submit-btn:hover {
    background-color: #45a049;
}

.tpc-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.tpc-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.tpc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.tpc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .tpc-container {
        padding: 15px;
        margin: 10px;
    }
    
    .tpc-title {
        font-size: 22px;
    }
    
    .tpc-check-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tpc-check-label {
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    .tpc-radio-group {
        width: 100%;
        min-width: auto;
    }
    
    .tpc-item {
        flex-direction: column;
    }
    
    .tpc-item-number {
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    .tpc-submit-section {
        display: none;
    }
    
    .tpc-container {
        box-shadow: none;
    }
}