/**
 * Page Dropdown Widget Styles
 */

/* Container styling */
.page-dropdown-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style for the dropdown */
.page-dropdown {
    flex: 1;
    min-width: 200px;
}

.page-dropdown select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    color: #555;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-dropdown select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

/* Style for the button */
.page-dropdown-btn {
    min-width: 150px;
    padding: 12px 24px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-dropdown-btn:hover:not(:disabled) {
    background-color: #3367d6;
}

.page-dropdown-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.page-dropdown-btn:disabled {
    background-color: #b7b7b7;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-dropdown-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-dropdown, .page-dropdown-btn {
        width: 100%;
    }
}