/* --- Google Font --- */
.pfp-new-ui, .pfp-new-ui select, .pfp-new-ui input {
    font-family: 'Poppins', sans-serif;
}

/* --- Main Container --- */
.pfp-new-ui {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 2rem;
    background-color: #f7faff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* --- Pill Style Tabs --- */
.pfp-new-ui .pfp-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: none;
    margin-bottom: 2rem;
}
.pfp-new-ui .pfp-tab-link {
    background-color: #fff;
    border: 1px solid #e0e6f1;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.pfp-new-ui .pfp-tab-link:hover {
    border-color: #1e90ff;
    color: #1e90ff;
}
.pfp-new-ui .pfp-tab-link.active {
    background: linear-gradient(100deg, #1e90ff, #0052d4);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    border-color: transparent;
}

/* --- Tab Content & Forms --- */
.pfp-new-ui .pfp-tab-content { display: none; animation: fadeIn 0.5s; }
.pfp-new-ui .pfp-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pfp-new-ui .pfp-form { display: flex; flex-direction: column; gap: 1.25rem; }
.pfp-new-ui .pfp-form-group { margin: 0; }
.pfp-new-ui .pfp-form-group label { display: none; }
.pfp-new-ui .pfp-form-group input[type="text"],
.pfp-new-ui .pfp-form-group select {
    width: 100%; padding: 1rem; font-size: 1rem; color: #333; background-color: #fff; border: 1px solid #dcdfe6; border-radius: 12px; transition: all 0.3s ease; -webkit-appearance: none; -moz-appearance: none; appearance: none; box-sizing: border-box;
}
.pfp-new-ui .pfp-form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px 12px;
}
.pfp-new-ui .pfp-form-group input[type="text"]:focus,
.pfp-new-ui .pfp-form-group select:focus {
    outline: none; border-color: #1e90ff; box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}
.pfp-new-ui .pfp-form-group select:disabled { background-color: #f5f7fa; cursor: not-allowed; }

/* --- Search Button --- */
.pfp-new-ui .pfp-button {
    display: flex; align-items: center; justify-content: center; width: 100%; padding: 1rem; font-size: 1.1rem; font-weight: 600; color: #fff; background: linear-gradient(100deg, #1e90ff, #0052d4); border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}
.pfp-new-ui .pfp-button:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(30, 144, 255, 0.4); }

/* --- Results --- */
.pfp-results-area { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
#pfp-results-container { min-height: 0; }
.pfp-loader { position: relative; text-align: center; padding: 2rem; }

.pfp-result-card {
    background: #fff;
    border: 1px solid #e0e6f1;
    border-radius: 16px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.pfp-results-list { list-style: none; padding: 0; margin: 0; }

/* --- UPDATED: Results Item using CSS Grid --- */
.pfp-results-item {
    display: grid;
    grid-template-columns: 150px 1fr auto; /* Label | Value | Copy Button */
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f2f5;
}
.pfp-results-item:last-child { border-bottom: none; }

.pfp-item-label { color: #6c757d; font-size: 0.9rem; }
.pfp-item-value {
    color: #212529;
    font-weight: 600;
    text-align: left; /* FIX: Align text to the left */
}
.pfp-item-value.pfp-link { color: #0d6efd; }

.pfp-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    justify-self: end; /* Pushes the button to the end of its grid area */
    transition: all 0.2s;
}
.pfp-copy-btn:hover { color: #0d6efd; background-color: #f0f2f5; }
.pfp-copy-btn-copied {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e90ff;
}

/* Responsive Grid for mobile */
@media (max-width: 600px) {
    .pfp-results-item {
        grid-template-columns: 1fr auto; /* Value | Copy Button */
        gap: 0.5rem;
        position: relative;
        padding-top: 1.75rem; /* Make space for label */
    }
    .pfp-item-label {
        position: absolute;
        top: 0.5rem;
        left: 0;
    }
}