/* Responsive base */
.pi-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Selection area */
.pi-selection-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 50%;
    margin: 0 auto;
}

/* Vertical layout with centered elements at 50% width */

/* Dropdown styling */
.pi-left-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #007cba;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M11.9997 13.1714L16.9495 8.22168L18.3637 9.63589L11.9997 15.9999L5.63574 9.63589L7.04995 8.22168L11.9997 13.1714Z' fill='%23ff0000'/%3e%3c/svg%3e");

    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

/* Result display styling */
.pi-result-display {
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
    position: relative;
    width: 100%;
}

.pi-result-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.pi-result-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* Mobile optimization */
@media(max-width: 767px) {
    .pi-container {
        padding: 15px;
    }
    
    .pi-selection-area {
        width: 100%; /* Full width on mobile */
    }
    
    .pi-left-dropdown {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .pi-result-display {
        min-height: 120px;
        padding: 15px;
    }
}
