/* Simple plugin styling */
.pc-container { font-family: Arial, sans-serif; }
.button { padding: 8px 12px; border-radius: 4px; border: 1px solid #888; background: #eee; cursor:pointer; }
.button-primary { background: #0073aa; color: #fff; border-color: #006799; }
a { color: #0073aa; }

#pc-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Light overlay */
    backdrop-filter: blur(8px); /* Modern blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Inter', -apple-system, sans-serif;
}

.loader-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    /* Modern conic gradient spinner */
    background: conic-gradient(#0000 10%, #3b82f6);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 0);
    animation: spin 0.8s linear infinite;
}

.text {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.progress-subtext {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pc-container select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FA346E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em;
}

/* Remove default number arrows */
.pc-container input::-webkit-outer-spin-button,
.pc-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.pc-thumb {
    aspect-ratio: 1 / 1;
}

.pc-thumb img {
    object-fit: cover;
}