/* --- General Wrapper --- */
.pjb-tracker-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    background: #f9f9f9;
    max-width: 800px;
    margin: 20px auto;
}

/* --- Form Styling --- */
.pjb-tracker-form h2 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}
.pjb-tracker-form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}
.pjb-tracker-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 5px;
}
.pjb-tracker-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}
.pjb-tracker-form button:hover {
    background-color: #005a87;
}

/* --- Error Message --- */
.pjb-error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

/* --- Results Styling --- */
.pjb-results-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.pjb-results-wrapper h3 {
    text-align: center;
    color: #333;
}

/* --- Flight Animation --- */
.pjb-flight-animation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}
.pjb-airport {
    font-weight: bold;
    font-size: 18px;
    color: #0073aa;
    flex-shrink: 0;
    padding: 0 10px;
}
.pjb-flight-path {
    flex-grow: 1;
    height: 2px;
    background-image: linear-gradient(to right, #aaa 50%, transparent 50%);
    background-size: 10px 2px;
    position: relative;
    margin: 0 10px;
}
.pjb-plane-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    width: 30px;
    height: 30px;
    color: #d9534f;
    animation: flight-move 4s ease-in-out forwards;
}

@keyframes flight-move {
    0% {
        left: 0;
        transform: translate(0, -50%) rotate(0deg);
    }
    100% {
        left: calc(100% - 30px); /* Subtract icon width */
        transform: translate(0, -50%) rotate(0deg);
    }
}


/* --- Details Tables Grid --- */
.pjb-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.pjb-table-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
}
.pjb-table-container h4 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.pjb-table-container table {
    width: 100%;
    border-collapse: collapse;
}
.pjb-table-container td {
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
}
.pjb-table-container tr:last-child td {
    border-bottom: none;
}
.pjb-table-container td:first-child {
    color: #555;
}

/* --- Final Message --- */
.pjb-final-message {
    margin-top: 30px;
    padding: 15px;
    background-color: #fffbe6;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}
