/**
 * PIN Tracking Plugin Styles
 */

/* Form Container */
.pin-tracking-form-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

/* Form Layout */
.pin-tracking-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.pin-tracking-form-field {
    flex: 1;
    padding: 0 10px;
    margin-bottom: 15px;
    min-width: 200px;
}

/* Form Elements */
.pin-tracking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.pin-tracking-form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.pin-tracking-form .required {
    color: #e53935;
}

/* Submit Button */
.pin-tracking-submit-button {
    background-color: #82a60f;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pin-tracking-submit-button:hover {
    background-color: #6b8a0c;
}

/* Results Container */
.pin-tracking-results {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pin-tracking-results h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Summary Section */
.pin-tracking-summary {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pin-tracking-summary-item {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.pin-tracking-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 150px;
}

.pin-tracking-status {
    font-weight: bold;
    color: #82a60f;
}

/* Timeline */
.pin-tracking-events h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.pin-tracking-timeline {
    position: relative;
}

.pin-tracking-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: #eee;
}

.pin-tracking-event {
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.pin-tracking-event:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pin-tracking-event:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #82a60f;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #82a60f;
}

.pin-tracking-event-date {
    margin-bottom: 5px;
}

.pin-tracking-event-day {
    font-weight: bold;
    margin-right: 10px;
}

.pin-tracking-event-time {
    color: #666;
}

.pin-tracking-event-description {
    margin-bottom: 5px;
    font-weight: bold;
}

.pin-tracking-event-location {
    color: #666;
    font-size: 14px;
}

/* Error Message */
.pin-tracking-error {
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pin-tracking-form-field {
        flex: 0 0 100%;
    }

    .pin-tracking-label {
        min-width: 120px;
    }
}
