/* Pool Visualizer Frontend Styles */
.pv-container {
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pv-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: pvFadeInDown 0.8s ease;
}

.pv-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pv-primary, #00a8e8) 0%, #00c9a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.pv-subtitle {
    color: #666;
    font-size: 1.2rem;
}

.pv-wizard-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pv-progress-bar {
    height: 6px;
    background: rgba(0, 168, 232, 0.1);
    position: relative;
}

.pv-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-step {
    padding: 3rem;
    min-height: 400px;
    display: none;
}

.pv-step.active {
    display: block;
    animation: pvFadeIn 0.5s ease;
}

.pv-step-header {
    margin-bottom: 2rem;
}

.pv-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
}

.pv-step-title {
    font-size: 1.8rem;
    color: #333;
    display: inline-block;
    vertical-align: middle;
}

.pv-step-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.pv-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pv-option-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pv-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--pv-primary, #00a8e8);
}

.pv-option-card.selected {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.05), rgba(0, 201, 167, 0.05));
    border-color: var(--pv-primary, #00a8e8);
}

.pv-option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pv-option-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.pv-option-description {
    color: #666;
    font-size: 0.9rem;
}

.pv-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.pv-feature-chip {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pv-feature-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pv-feature-chip.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pv-upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: rgba(0, 168, 232, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pv-upload-area:hover {
    border-color: var(--pv-primary, #00a8e8);
    background: rgba(0, 168, 232, 0.05);
}

.pv-upload-area.uploading {
    background: rgba(0, 168, 232, 0.1);
    border-color: var(--pv-primary, #00a8e8);
}

.pv-upload-area.uploaded {
    background: rgba(0, 201, 167, 0.05);
    border-color: #00c9a7;
}

.pv-upload-area.uploaded .pv-upload-icon {
    color: #00c9a7;
}

.pv-upload-icon {
    font-size: 3rem;
    color: var(--pv-primary, #00a8e8);
    margin-bottom: 1rem;
}

.pv-preview-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pv-preview-image {
    width: 100%;
    display: block;
}

.pv-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pv-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pv-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.pv-btn-secondary {
    background: white;
    color: var(--pv-primary, #00a8e8);
    border: 2px solid var(--pv-primary, #00a8e8);
}

.pv-btn-secondary:hover {
    background: var(--pv-primary, #00a8e8);
    color: white;
}

.pv-btn-success {
    background: linear-gradient(135deg, #00c9a7 0%, #00a8e8 100%);
    color: white;
}

.pv-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 201, 167, 0.3);
}

.pv-btn-block {
    width: 100%;
    justify-content: center;
}

.pv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pv-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pv-loading-spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 168, 232, 0.1);
    border-top-color: var(--pv-primary, #00a8e8);
    border-radius: 50%;
    animation: pvSpin 1s linear infinite;
    margin: 2rem auto;
}

.pv-loading-spinner.active {
    display: block;
}

.pv-generating-message {
    text-align: center;
    color: var(--pv-primary, #00a8e8);
    font-size: 1.2rem;
    margin-top: 1rem;
    display: none;
}

.pv-generating-message.active {
    display: block;
    animation: pvPulse 1.5s ease-in-out infinite;
}

.pv-result-section {
    margin: 2rem 0;
}

.pv-result-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pv-restart {
    text-align: center;
    margin-top: 2rem;
}

/* Modal Styles */
.pv-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: pvSlideUp 0.3s ease;
}

.pv-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.pv-modal-close:hover {
    color: #333;
}

.pv-form-group {
    margin-bottom: 1.5rem;
}

.pv-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.pv-form-group input,
.pv-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.pv-form-group input:focus,
.pv-form-group textarea:focus {
    outline: none;
    border-color: var(--pv-primary, #00a8e8);
}

/* Admin Styles */
.pv-settings-container {
    max-width: 800px;
    margin-top: 20px;
}

.pv-settings-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.pv-settings-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pv-shortcode {
    display: inline-block;
    padding: 10px 15px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
}

.pv-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.pv-stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    flex: 1;
}

.pv-stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.pv-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 0;
}

/* Animations */
@keyframes pvFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pvPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes pvSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pv-title { font-size: 2rem; }
    .pv-container { padding: 1rem; }
    .pv-step { padding: 1.5rem; }
    .pv-option-grid { grid-template-columns: 1fr; }
    .pv-stats { flex-direction: column; }
}