/* PromtFlix - WordPress Plugin CSS */

/* Sobreescriure colors globals d'Elementor específicament per PromtFlix */
.fp-ai-filter,
.fp-ai-filter * {
    --e-global-color-accent: transparent !important;
    --e-global-color-primary: transparent !important;
}

.promtflix-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.promtflix-wrapper * {
    box-sizing: border-box;
}

:root {
    --fp-bg-primary: #000000;
    --fp-bg-secondary: #1c1c1e;
    --fp-bg-tertiary: #2c2c2e;
    --fp-text-primary: #ffffff;
    --fp-text-secondary: #98989d;
    --fp-accent-blue: #0a84ff;
    --fp-accent-green: #30d158;
    --fp-border-color: #38383a;
    --fp-input-bg: #1c1c1e;
    --fp-radius: 12px;
}

.promtflix-wrapper {
    background: var(--fp-bg-primary);
    color: var(--fp-text-primary);
    line-height: 1.6;
    padding: 20px;
    border-radius: var(--fp-radius);
}

.promtflix-container {
    max-width: 900px;
    margin: 0 auto;
}

.promtflix-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.promtflix-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--fp-accent-blue), var(--fp-accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promtflix-header p {
    color: var(--fp-text-secondary);
    font-size: 18px;
}

/* Toggle Switch */
.fp-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.fp-toggle-container {
    background: var(--fp-bg-secondary);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fp-toggle-option {
    padding: 12px 40px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.fp-toggle-option.active {
    color: var(--fp-text-primary);
}

.fp-toggle-option:not(.active) {
    color: var(--fp-text-secondary);
}

.fp-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--fp-accent-blue);
    border-radius: 50px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.fp-toggle-slider.video {
    transform: translateX(100%);
}

/* Form Sections */
.fp-form-section {
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--fp-border-color);
}

.fp-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--fp-border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-section-title i {
    font-size: 24px;
    color: var(--fp-accent-blue);
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fp-subsection {
    margin: 25px 0;
    padding: 15px;
    background: var(--fp-bg-tertiary);
    border-left: 3px solid var(--fp-accent-blue);
    border-radius: 8px;
}

.fp-subsection h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--fp-accent-blue);
}

.fp-camera-reference {
    padding: 10px;
    background: var(--fp-bg-secondary);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.fp-ref-label {
    color: var(--fp-text-secondary);
    font-weight: 600;
}

.fp-form-group {
    margin-bottom: 20px;
}

.fp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fp-text-primary);
}

.fp-required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 4px;
}

.fp-form-group input[type="text"],
.fp-form-group input[type="number"],
.fp-form-group input[type="email"],
.fp-form-group input[type="password"],
.fp-form-group select,
.fp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--fp-input-bg);
    border: 1px solid var(--fp-border-color);
    border-radius: 8px;
    color: var(--fp-text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.fp-form-group input:focus,
.fp-form-group select:focus,
.fp-form-group textarea:focus {
    outline: none;
    border-color: var(--fp-accent-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.fp-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.fp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.fp-form-help {
    font-size: 12px;
    color: var(--fp-text-secondary);
    margin-top: 5px;
    font-style: italic;
}

/* Selector d'objectius amb quadrícula */
.fp-lens-selector-group {
    width: 100%;
    margin-bottom: 20px;
}

.fp-lens-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.fp-lens-btn {
    /* Apagat - Fons fosc */
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.fp-lens-btn:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.fp-lens-btn.active {
    /* Encès - Fons blau amb text i icona blanc */
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

.fp-lens-btn.active::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-lens-btn.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 9px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.fp-lens-icon {
    width: 42px;
    height: 42px;
    transition: all 0.3s ease;
    opacity: 0.4;
    /* Convertir SVG a blanc/gris */
    filter: brightness(0) saturate(100%) invert(100%);
}

.fp-lens-btn:hover .fp-lens-icon {
    opacity: 0.8;
    transform: scale(1.1);
    /* Convertir SVG a blau #3b82f6 */
    filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(2383%) hue-rotate(201deg) brightness(101%) contrast(95%);
}

.fp-lens-btn.active .fp-lens-icon {
    opacity: 1;
    /* Blanc pur quan està actiu */
    filter: brightness(0) saturate(100%) invert(100%);
}

.fp-lens-btn span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.fp-lens-btn.active span {
    color: #ffffff !important;
}

.fp-lens-btn small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.fp-lens-btn:hover small {
    color: rgba(59, 130, 246, 0.8);
}

.fp-lens-btn.active small {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .fp-lens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .fp-lens-btn {
        padding: 10px 6px;
    }
    
    .fp-lens-icon {
        width: 40px;
        height: 40px;
    }
    
    .fp-lens-btn span {
        font-size: 12px;
    }
    
    .fp-lens-btn small {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .fp-lens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Checkbox Grid */
.fp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.fp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--fp-bg-tertiary);
    border: 1px solid var(--fp-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 400;
}

.fp-checkbox-label:hover {
    border-color: var(--fp-accent-blue);
    background: var(--fp-bg-secondary);
}

.fp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--fp-accent-blue);
}

.fp-checkbox-label span {
    flex: 1;
    user-select: none;
    font-size: 14px;
    font-weight: 400;
}

.fp-checkbox-label input[type="checkbox"]:checked + span {
    color: var(--fp-accent-blue);
    font-weight: 500;
}

/* Negative Prompt Labels - White color */
.fp-negative-label input[type="checkbox"]:checked + span {
    color: #ffffff !important;
    font-weight: 500;
}

/* Thumbnail Upload */
.fp-thumbnail-upload {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.fp-upload-btn {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text-primary);
    border: 2px dashed var(--fp-border-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.fp-upload-btn:hover {
    border-color: var(--fp-accent-blue);
    background: var(--fp-bg-secondary);
}

.fp-thumbnail-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--fp-border-color);
}

.fp-thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-remove-thumbnail {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fp-remove-thumbnail:hover {
    background: var(--fp-error-color);
    transform: scale(1.1);
}

/* AI Tool Selector */
.fp-ai-selector {
    background: var(--fp-bg-secondary);
    border: 1px solid var(--fp-border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.fp-ai-selector .fp-form-group {
    margin-bottom: 0;
}

.fp-select {
    width: 100%;
    padding: 12px 15px;
    background: var(--fp-bg-primary);
    border: 1px solid var(--fp-border-color);
    border-radius: 8px;
    color: var(--fp-text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fp-select:hover {
    border-color: var(--fp-accent-blue);
}

.fp-select:focus {
    outline: none;
    border-color: var(--fp-accent-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.fp-select option {
    background: var(--fp-bg-primary);
    color: var(--fp-text-primary);
    padding: 10px;
}

/* Privacy Selector */
.fp-privacy-selector {
    margin: 40px 0 30px;
    text-align: center;
}

.fp-privacy-selector > label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fp-text-primary);
}

.fp-privacy-slider {
    background: var(--fp-accent-purple);
}

/* Submit Button */
.fp-submit-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.fp-submit-btn {
    background: linear-gradient(135deg, var(--fp-accent-blue), var(--fp-accent-green));
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.3);
}

.fp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(10, 132, 255, 0.4);
}

.fp-submit-btn:active {
    transform: translateY(0);
}

/* Feeling Lucky Button */
.fp-feeling-lucky-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.fp-feeling-lucky-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24, #f87171);
}

.fp-feeling-lucky-btn:active {
    transform: translateY(0);
}

.fp-feeling-lucky-btn i {
    font-size: 18px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    50% { transform: rotate(15deg) scale(1); }
    75% { transform: rotate(-15deg) scale(1.1); }
}

.fp-save-btn {
    background: var(--fp-bg-tertiary);
    color: var(--fp-text-primary);
    border: 1px solid var(--fp-border-color);
}

.fp-save-btn:hover {
    background: var(--fp-border-color);
}

/* Result Modal */
.fp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fp-modal.show {
    display: flex;
}

.fp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.fp-modal-content {
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.fp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--fp-bg-tertiary);
    border: none;
    color: var(--fp-text-primary);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fp-modal-close:hover {
    background: var(--fp-border-color);
}

.fp-prompt-result {
    background: var(--fp-bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--fp-border-color);
}

.fp-prompt-result h3 {
    margin-bottom: 15px;
    color: var(--fp-accent-blue);
}

.fp-prompt-text {
    background: var(--fp-input-bg);
    padding: 15px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fp-copy-btn {
    background: var(--fp-accent-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s;
}

.fp-copy-btn:hover {
    background: #0066cc;
}

.fp-copy-btn.copied {
    background: var(--fp-accent-green);
}

/* Modal Actions */
.fp-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fp-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fp-edit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.fp-ok-btn {
    background: var(--fp-accent-green);
    color: white;
}

.fp-ok-btn:hover {
    background: #28a745;
}

/* Loading state */
.fp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--fp-border-color);
    border-top-color: var(--fp-accent-blue);
    border-radius: 50%;
    animation: fp-spin 0.8s linear infinite;
}

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

/* Notifications */
.fp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--fp-bg-secondary);
    color: var(--fp-text-primary);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--fp-border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fp-slide-in 0.3s ease;
}

.fp-notification.success {
    border-color: var(--fp-accent-green);
}

.fp-notification.error {
    border-color: #ff453a;
}

@keyframes fp-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Prompts List Widget */
.fp-prompts-list-widget {
    margin: 20px 0;
}

.fp-prompts-container {
    display: grid;
    gap: 20px;
}

.fp-prompts-container.fp-prompts-list {
    grid-template-columns: 1fr;
}

.fp-prompts-container.fp-prompts-grid {
    grid-template-columns: repeat(3, 1fr);
}

.fp-prompt-card {
    background: var(--fp-bg-secondary);
    border: 1px solid var(--fp-border-color);
    border-radius: var(--fp-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.fp-prompts-list .fp-prompt-card {
    flex-direction: row;
    align-items: center;
}

.fp-prompt-card:hover {
    border-color: var(--fp-accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.2);
}

.fp-prompt-card:hover .fp-prompt-thumbnail::after {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fp-prompt-thumbnail {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--fp-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-text-secondary);
    font-size: 48px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.fp-prompt-thumbnail:hover {
    opacity: 0.8;
}

.fp-prompts-list .fp-prompt-thumbnail {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.fp-prompt-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.fp-prompt-content {
    padding: 20px;
    flex: 1;
    text-align: left !important;
}

.fp-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.fp-prompt-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fp-text-primary);
    margin: 0 0 10px 0;
    text-align: left !important;
}

.fp-prompt-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.fp-prompt-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--fp-bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--fp-text-secondary);
    margin-bottom: 0;
}

.fp-prompt-type-badge.video {
    color: var(--fp-accent-blue);
}

.fp-prompt-type-badge.image {
    color: var(--fp-accent-green);
}

.fp-prompt-type-badge.ai-badge {
    color: var(--fp-text-secondary);
    background: var(--fp-bg-tertiary);
}

.fp-prompt-type-badge.no-ai-badge {
    color: rgba(156, 39, 176, 0.8);
    background: rgba(156, 39, 176, 0.15);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.fp-prompt-title {
    margin: 0 0 10px 0;
}

.fp-prompt-meta {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--fp-text-secondary);
    justify-content: flex-start !important;
}

.fp-prompt-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-prompt-meta-item i {
    width: 16px;
    text-align: center;
}

/* Botons d'acció del llistat d'usuari */
.fp-prompt-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fp-action-btn {
    flex: 1;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fp-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.fp-action-btn i {
    font-size: 12px;
}

/* Botó d'imatge - sempre taronja/verd segons tingui imatge */
.fp-btn-image.no-image {
    border-color: rgba(255, 165, 0, 0.3);
    background: rgba(255, 165, 0, 0.15);
    color: rgba(255, 165, 0, 0.9);
}

.fp-btn-image.no-image:hover {
    border-color: rgba(255, 165, 0, 0.6);
    background: rgba(255, 165, 0, 0.25);
    color: #ffa500;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}

.fp-btn-image.has-image {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.15);
    color: rgba(76, 175, 80, 0.9);
}

.fp-btn-image.has-image:hover {
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.25);
    color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

/* Botó d'IA - blau fosc/clar segons tingui IA */
.fp-btn-ai.no-ai {
    border-color: rgba(156, 39, 176, 0.3);
    background: rgba(156, 39, 176, 0.15);
    color: rgba(156, 39, 176, 0.9);
}

.fp-btn-ai.no-ai:hover {
    border-color: rgba(156, 39, 176, 0.6);
    background: rgba(156, 39, 176, 0.25);
    color: #9c27b0;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.fp-btn-ai.has-ai {
    border-color: rgba(103, 58, 183, 0.3);
    background: rgba(103, 58, 183, 0.15);
    color: rgba(103, 58, 183, 0.9);
}

.fp-btn-ai.has-ai:hover {
    border-color: rgba(103, 58, 183, 0.6);
    background: rgba(103, 58, 183, 0.25);
    color: #673ab7;
    box-shadow: 0 0 20px rgba(103, 58, 183, 0.3);
}

/* Botó de privacitat - estil segons estat */
.fp-btn-privacy.fp-status-hidden {
    border-color: rgba(158, 158, 158, 0.3);
    background: rgba(158, 158, 158, 0.15);
    color: rgba(158, 158, 158, 0.9);
}

.fp-btn-privacy.fp-status-hidden:hover {
    border-color: rgba(158, 158, 158, 0.6);
    background: rgba(158, 158, 158, 0.25);
    color: #9e9e9e;
    box-shadow: 0 0 20px rgba(158, 158, 158, 0.3);
}

.fp-btn-privacy.fp-status-public {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
}

.fp-btn-privacy.fp-status-public:hover {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.4);
}

.fp-btn-privacy.fp-status-private {
    border-color: rgba(255, 235, 59, 0.4);
    background: rgba(255, 235, 59, 0.15);
    color: rgba(255, 235, 59, 0.9);
}

.fp-btn-privacy.fp-status-private:hover {
    border-color: rgba(255, 235, 59, 0.6);
    background: rgba(255, 235, 59, 0.25);
    color: #ffeb3b;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.3);
}

/* Botó d'eliminar - sempre vermell */
.fp-btn-delete {
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.15);
    color: rgba(244, 67, 54, 0.9);
}

.fp-btn-delete:hover {
    border-color: rgba(244, 67, 54, 0.6);
    background: rgba(244, 67, 54, 0.25);
    color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

/* Toggle privacitat (DEPRECATED - mantingut per compatibilitat) */
.fp-toggle-privacy {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.fp-toggle-privacy:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fp-privacy-text.fp-public {
    color: #28a745;
    font-weight: 600;
}

.fp-privacy-text.fp-private {
    color: #dc3545;
    font-weight: 600;
}

.fp-prompt-visibility {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fp-prompt-visibility.public {
    color: var(--fp-accent-green);
}

.fp-prompt-visibility.private {
    color: var(--fp-text-secondary);
}

.fp-loading-prompts {
    text-align: center;
    padding: 40px;
    color: var(--fp-text-secondary);
    font-size: 16px;
}

.fp-no-prompts {
    text-align: center;
    padding: 40px;
    color: var(--fp-text-secondary);
}

.fp-no-prompts i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Botó "Carregar més" */
.fp-load-more-container {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    margin-top: 20px;
}

.fp-load-more-btn {
    background: var(--fp-bg-secondary);
    color: var(--fp-text-primary);
    border: 1px solid var(--fp-border-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fp-load-more-btn:hover {
    background: var(--fp-accent-blue);
    border-color: var(--fp-accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.fp-load-more-btn i {
    transition: transform 0.3s ease;
}

.fp-load-more-btn:hover i {
    transform: translateY(3px);
}

/* Diàleg de pujada d'imatge */
.fp-image-upload-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fp-image-upload-dialog.show {
    opacity: 1;
    visibility: visible;
}

.fp-image-upload-content {
    background: var(--fp-bg-primary);
    border: 1px solid var(--fp-border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fp-image-upload-dialog.show .fp-image-upload-content {
    transform: scale(1);
}

.fp-image-upload-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--fp-text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.fp-image-upload-close:hover {
    color: var(--fp-text-primary);
}

.fp-image-upload-content h3 {
    color: var(--fp-text-primary);
    margin: 0 0 15px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-image-upload-content h3 i {
    color: #ff9f0a;
}

.fp-image-upload-content p {
    color: var(--fp-text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.fp-image-upload-zone {
    background: var(--fp-bg-secondary);
    border: 2px dashed var(--fp-border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.fp-image-upload-zone:hover {
    border-color: var(--fp-accent-blue);
    background: rgba(10, 132, 255, 0.05);
}

.fp-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--fp-text-primary);
}

.fp-upload-label i {
    font-size: 48px;
    color: var(--fp-accent-blue);
}

.fp-upload-label span {
    font-size: 16px;
    font-weight: 500;
}

.fp-upload-label small {
    color: var(--fp-text-secondary);
    font-size: 12px;
}

#fpImagePreview {
    margin-top: 20px;
}

#fpImagePreview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid var(--fp-border-color);
}

.fp-image-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fp-btn-secondary,
.fp-btn-primary {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.fp-btn-secondary {
    background: var(--fp-bg-secondary);
    color: var(--fp-text-primary);
    border: 1px solid var(--fp-border-color);
}

.fp-btn-secondary:hover {
    background: var(--fp-bg-tertiary);
}

.fp-btn-primary {
    background: var(--fp-accent-blue);
    color: white;
}

.fp-btn-primary:hover:not(:disabled) {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.fp-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estils per a l'estat de privacitat */
.fp-toggle-privacy {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.fp-toggle-privacy:hover {
    background: rgba(10, 132, 255, 0.1);
}

.fp-privacy-text.fp-public {
    color: var(--fp-accent-green);
}

.fp-privacy-text.fp-private {
    color: #ff9f0a;
}

.fp-privacy-text.fp-hidden {
    color: var(--fp-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .promtflix-header h1 {
        font-size: 32px;
    }

    .fp-form-section {
        padding: 20px;
    }

    .fp-toggle-option {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .fp-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-submit-container {
        flex-direction: column;
    }
    
    .fp-submit-btn,
    .fp-save-btn {
        width: 100%;
    }
    
    .fp-feeling-lucky-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .fp-prompts-container.fp-prompts-grid {
        grid-template-columns: 1fr;
    }
    
    .fp-prompts-list .fp-prompt-card {
        flex-direction: column;
    }
    
    .fp-prompts-list .fp-prompt-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* Thumbnail Upload Modal */
.fp-thumbnail-modal-content {
    max-width: 600px;
}

.fp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.fp-modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-thumbnail-upload-area {
    text-align: center;
}

.fp-thumbnail-modal-preview {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto 20px;
    border: 2px dashed var(--fp-border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--fp-bg-tertiary);
}

.fp-thumbnail-modal-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fp-thumbnail-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.fp-thumbnail-no-image p {
    margin: 5px 0;
    color: var(--fp-text-primary);
}

.fp-thumbnail-modal-preview:empty:before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 60px;
    color: var(--fp-border-color);
}

/* Àrea de crop amb Cropper.js */
.fp-thumbnail-crop-area {
    width: 100%;
    margin: 0 auto 20px;
}

.fp-crop-container {
    width: 100%;
    max-width: 800px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 * 100 = 56.25%) */
    margin: 0 auto 15px;
    background: var(--fp-bg-tertiary);
    border: 2px solid var(--fp-border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.fp-crop-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Controls de zoom per al crop */
.fp-crop-zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--fp-bg-tertiary);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fp-crop-zoom-controls button {
    background: var(--fp-accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fp-crop-zoom-controls button:hover {
    background: var(--fp-accent-hover);
    transform: scale(1.1);
}

.fp-crop-zoom-controls button:active {
    transform: scale(0.95);
}

.fp-crop-zoom-controls .fp-zoom-slider {
    flex: 1;
    max-width: 300px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--fp-border-color);
    border-radius: 3px;
    outline: none;
}

.fp-crop-zoom-controls .fp-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fp-accent-color);
    cursor: pointer;
    transition: all 0.2s;
}

.fp-crop-zoom-controls .fp-zoom-slider::-webkit-slider-thumb:hover {
    background: var(--fp-accent-hover);
    transform: scale(1.2);
}

.fp-crop-zoom-controls .fp-zoom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--fp-accent-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.fp-crop-zoom-controls .fp-zoom-slider::-moz-range-thumb:hover {
    background: var(--fp-accent-hover);
    transform: scale(1.2);
}

.fp-crop-zoom-label {
    font-size: 14px;
    color: var(--fp-text-secondary);
    min-width: 60px;
    text-align: center;
}

/* Personalització de Cropper.js per adaptar-lo al tema */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-view-box {
    outline: 1px solid var(--fp-accent-color);
    outline-color: rgba(var(--fp-accent-color-rgb, 74, 144, 226), 0.75);
}

.cropper-line,
.cropper-point {
    background-color: var(--fp-accent-color);
}

.cropper-point.point-se {
    width: 10px;
    height: 10px;
    opacity: 1;
}

.fp-thumbnail-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fp-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.fp-remove-btn:hover {
    background: #c82333;
}

.fp-prompt-thumbnail {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.fp-prompt-thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.fp-prompt-thumbnail:hover:after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==================== AI TOOL MODAL ==================== */

.fp-ai-tool-modal-content {
    max-width: 500px;
}

.fp-ai-tool-selection-area {
    padding: 10px 0;
}

.fp-ai-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.fp-ai-tool-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--fp-bg-secondary);
    border: 2px solid var(--fp-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fp-ai-tool-option:hover {
    background: var(--fp-bg-tertiary);
    border-color: var(--fp-accent-color);
}

.fp-ai-tool-option.selected {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.8);
}

.fp-ai-tool-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: rgba(156, 39, 176, 1);
}

.fp-ai-tool-option label {
    flex: 1;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: var(--fp-text-primary);
}

.fp-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==================== HEADER WIDGET ==================== */

.promtflix-header-wrapper {
    width: 100%;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.promtflix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.promtflix-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fp-text-primary);
    transition: opacity 0.3s ease;
}

.promtflix-header-logo:hover {
    opacity: 0.8;
}

.promtflix-header-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.promtflix-header-content h1 {
    font-size: 25px;
    font-weight: 700;
    color: var(--fp-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promtflix-header-content h1 i {
    color: var(--fp-accent-blue);
    font-size: 24px;
}

.promtflix-header-content p {
    display: none;
}

/* Header Actions */
.promtflix-header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Add Prompt Button */
.fp-add-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--fp-accent-blue) 0%, #2563eb 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fp-add-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, var(--fp-accent-blue) 100%);
    color: white;
    text-decoration: none;
}

.fp-add-prompt-btn:active {
    transform: translateY(0);
}

.fp-add-prompt-btn i {
    font-size: 18px;
}

/* Language Selector */
.promtflix-language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fp-lang-btn {
    width: 48px;
    height: 36px;
    border: 2px solid var(--fp-border-color);
    border-radius: 6px;
    background: var(--fp-bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fp-lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.fp-lang-btn:hover {
    transform: translateY(-2px);
    border-color: var(--fp-accent-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fp-lang-btn.active {
    border-color: var(--fp-accent-blue);
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Filters Container - Unified */
.fp-filters-container {
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    border: 1px solid var(--fp-border-color);
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
}

.fp-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    align-items: center;
}

.fp-filter-separator {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    margin: 0 16px;
}

.fp-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fp-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    white-space: nowrap;
    min-width: fit-content;
}

.fp-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

/* AI Filter Buttons */
.fp-ai-btn,
.fp-status-btn {
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.fp-ai-btn i,
.fp-status-btn i {
    font-size: 12px !important;
    opacity: 0.6 !important;
}

.fp-ai-btn:hover,
.fp-status-btn:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* AI Filter Active State */
.elementor-widget .fp-ai-btn.active,
.fp-ai-btn.active {
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

.fp-ai-btn.active i,
.fp-status-btn.active i {
    opacity: 1;
}

/* Compatibility with old selectors */
.fp-ai-filter {
    display: none; /* Hidden, using new unified container */
}

.fp-ai-filter-label {
    display: none; /* Using new .fp-filter-label */
}

/* Status Filter - Compatibility with old selectors */
.fp-status-filter {
    display: none; /* Hidden, using new unified container */
}

.fp-status-filter-label {
    display: none; /* Using new .fp-filter-label */
}

/* Status Filter Active States */
.elementor-widget .fp-status-btn.active,
.fp-status-btn.active {
    border-color: #10b981 !important;
    background: #10b981 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3) !important;
}

.fp-status-btn[data-status="public"].active {
    border-color: #10b981 !important;
    background: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.fp-status-btn[data-status="private"].active {
    border-color: #f59e0b !important;
    background: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5) !important;
}

.fp-status-btn[data-status="hidden"].active {
    border-color: #6b7280 !important;
    background: #6b7280 !important;
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.5) !important;
}

.elementor-widget .fp-ai-btn.fp-ai-all.active,
.fp-ai-btn.fp-ai-all.active {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

/* Botons d'obertura - Estil consistent amb selecció única */
.fp-aperture-btn {
    /* Apagat - Fons fosc */
    background: rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.fp-aperture-btn:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.fp-aperture-btn.active,
.elementor-widget .fp-aperture-btn.active {
    /* Encès - Fons blau amb text i icona blanc */
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

.fp-aperture-btn.active i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Icones de diafragma SVG */
.fp-aperture-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.fp-aperture-btn.active .fp-aperture-icon {
    color: #ffffff !important;
}

/* Quadrícula d'obertures grans */
.fp-aperture-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.fp-aperture-btn-large {
    /* Apagat - Fons fosc */
    background: rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px;
    font-weight: 500;
}

.fp-aperture-btn-large:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.fp-aperture-btn-large.active {
    /* Encès - Fons blau amb text i icona blanc */
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

.fp-aperture-icon-large {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    opacity: 0.4 !important;
    /* Filtre per convertir el SVG a blanc/gris */
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

.fp-aperture-btn-large:hover .fp-aperture-icon-large {
    opacity: 0.8 !important;
    transform: scale(1.05);
    /* Filtre per convertir el SVG a blau #3b82f6 */
    filter: brightness(0) saturate(100%) invert(47%) sepia(96%) saturate(2383%) hue-rotate(201deg) brightness(101%) contrast(95%) !important;
}

.fp-aperture-btn-large.active .fp-aperture-icon-large {
    opacity: 1 !important;
    /* Blanc pur quan està actiu */
    filter: brightness(0) saturate(100%) invert(100%) !important;
}

.fp-aperture-btn-large span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.fp-aperture-btn-large.active span {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .fp-aperture-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-aperture-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .fp-aperture-btn-large {
        padding: 10px 6px;
    }
    
    .fp-aperture-icon-large {
        width: 36px;
        height: 36px;
    }
}

/* Selector d'ISO amb botons */
.fp-iso-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.fp-iso-btn {
    /* Apagat - Fons fosc */
    background: rgba(0, 0, 0, 0.3) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    font-weight: 600;
}

.fp-iso-btn:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

.fp-iso-btn.active {
    /* Encès - Fons blau amb text blanc */
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3) !important;
}

.fp-iso-btn span {
    color: inherit !important;
}

/* Responsive ISO */
@media (max-width: 1200px) {
    .fp-iso-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-iso-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .fp-iso-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fp-iso-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fp-aperture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .promtflix-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 0;
    }
    
    .promtflix-header-content h1 {
        font-size: 20px;
        justify-content: center;
    }
    
    .promtflix-header-content h1 i {
        font-size: 20px;
    }
    
    .promtflix-header-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .fp-add-prompt-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .promtflix-language-selector {
        justify-content: center;
    }
    
    .fp-filters-container {
        padding: 0;
    }
    
    .fp-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .fp-filter-label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .fp-filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .fp-add-prompt-btn span {
        display: none;
    }
    
    .fp-add-prompt-btn {
        width: auto;
        padding: 12px 16px;
    }
    
    .fp-add-prompt-btn i {
        font-size: 20px;
    }
}

/* ========================================
   MODAL POPUP PER VISUALITZAR PROMPT
   ======================================== */

.fp-prompt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fp-prompt-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.fp-prompt-modal-content {
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fp-prompt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fp-prompt-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.fp-prompt-modal-image {
    flex: 1;
    background: var(--fp-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: auto;
    min-width: 0;
}

.fp-prompt-modal-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}

.fp-prompt-modal-image i {
    font-size: 120px;
    color: var(--fp-text-secondary);
}

.fp-prompt-modal-details {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-prompt-modal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.fp-prompt-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--fp-text-primary);
    text-align: left;
}

.fp-prompt-modal-info-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

.fp-prompt-modal-author {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: var(--fp-text-secondary) !important;
    font-weight: 500 !important;
    margin-right: 16px !important;
    margin-bottom: 0 !important;
}

.fp-prompt-modal-author i {
    color: var(--fp-accent-blue) !important;
}

.fp-prompt-modal-meta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: var(--fp-text-secondary) !important;
    margin-bottom: 0 !important;
}

.fp-prompt-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fp-prompt-modal-meta-item i {
    color: var(--fp-accent-blue);
}

.fp-prompt-modal-section {
    background: var(--fp-bg-tertiary);
    padding: 15px;
    border-radius: 8px;
}

.fp-prompt-modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.fp-prompt-modal-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--fp-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-prompt-modal-section h3 i {
    color: var(--fp-accent-blue);
}

.fp-prompt-modal-text {
    background: var(--fp-bg-primary);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--fp-text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.fp-prompt-json {
    background: var(--fp-bg-primary);
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--fp-text-primary);
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

.fp-prompt-json code {
    color: var(--fp-text-primary);
    font-family: 'Monaco', 'Courier New', monospace;
}

.fp-prompt-modal-copy-btn {
    background: var(--fp-accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.fp-prompt-modal-copy-btn:hover {
    background: #0071e3;
    transform: translateY(-2px);
}

.fp-prompt-modal-copy-btn.copied {
    background: var(--fp-accent-green);
}

/* Fix del botó públic/privat */
.fp-prompt-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-prompt-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.fp-toggle-privacy {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--fp-bg-tertiary);
    transition: all 0.2s ease;
    user-select: none;
}

.fp-toggle-privacy:hover {
    background: var(--fp-bg-primary);
    transform: translateY(-1px);
}

.fp-privacy-text.fp-public {
    color: var(--fp-accent-green);
    font-weight: 600;
}

.fp-privacy-text.fp-private {
    color: #ff453a;
    font-weight: 600;
}

.fp-privacy-text.fp-hidden {
    color: var(--fp-text-secondary);
    font-weight: 600;
}

/* Responsive modal */
@media (max-width: 768px) {
    .fp-prompt-modal-content {
        flex-direction: column;
        width: 95%;
        max-height: 95vh;
    }
    
    .fp-prompt-modal-image {
        min-height: 300px;
        padding: 20px;
    }
    
    .fp-prompt-modal-details {
        padding: 20px;
    }
}

/* ===========================
   REGISTER / LOGIN FORMS
   =========================== */

.fp-auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.fp-auth-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--fp-bg-secondary);
    padding: 8px;
    border-radius: 12px;
}

.fp-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--fp-text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fp-auth-tab:hover {
    background: rgba(10, 132, 255, 0.1);
    color: var(--fp-text-primary);
}

.fp-auth-tab.active {
    background: var(--fp-accent-blue);
    color: white;
}

.fp-auth-form {
    display: none;
    background: var(--fp-bg-secondary);
    border: 1px solid var(--fp-border-color);
    border-radius: 12px;
    padding: 40px;
}

.fp-auth-form.active {
    display: block;
    animation: fpFadeIn 0.3s ease;
}

.fp-auth-form h2 {
    color: var(--fp-text-primary);
    margin: 0 0 30px 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-password-field {
    position: relative !important;
    display: block !important;
    width: 100%;
}

.fp-password-field input[type="password"] {
    padding-right: 50px !important;
    width: 100% !important;
    display: block !important;
}

.fp-toggle-password {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: var(--fp-text-secondary) !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: color 0.3s ease !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
}

.fp-toggle-password:hover {
    color: var(--fp-accent-blue) !important;
}

.fp-toggle-password i {
    pointer-events: none;
}

.fp-password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--fp-bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.fp-password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.fp-password-strength-bar.weak {
    background: #ff453a;
}

.fp-password-strength-bar.medium {
    background: #ff9f0a;
}

.fp-password-strength-bar.strong {
    background: #32d74b;
}

.fp-password-strength-bar.very-strong {
    background: #30d158;
}

.fp-remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.fp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--fp-text-secondary);
}

.fp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.fp-forgot-password {
    color: var(--fp-accent-blue);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.fp-forgot-password:hover {
    opacity: 0.8;
}

.fp-field-hint {
    display: block;
    color: var(--fp-text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.fp-avatar-upload {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fp-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--fp-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--fp-border-color);
}

.fp-avatar-preview i {
    font-size: 48px;
    color: var(--fp-text-secondary);
}

.fp-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-avatar-upload-btn {
    flex: 1;
}

.fp-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--fp-bg-tertiary);
    border: 1px solid var(--fp-border-color);
    border-radius: 8px;
    color: var(--fp-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.fp-upload-label:hover {
    background: var(--fp-bg-primary);
    border-color: var(--fp-accent-blue);
}

.fp-terms {
    margin: 20px 0;
}

.fp-terms a {
    color: var(--fp-accent-blue);
    text-decoration: none;
}

.fp-terms a:hover {
    text-decoration: underline;
}

.fp-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.fp-form-message:not(:empty) {
    display: block;
}

.fp-form-message.success {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid var(--fp-accent-green);
    color: var(--fp-accent-green);
}

.fp-form-message.error {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid #ff453a;
    color: #ff453a;
}

.fp-form-message i {
    margin-right: 8px;
}

.fp-required {
    color: #ff453a;
}

.fp-optional {
    color: var(--fp-text-secondary);
    font-size: 12px;
    font-weight: normal;
}

@keyframes fpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fp-auth-container {
        padding: 10px;
    }
    
    .fp-auth-form {
        padding: 25px;
    }
    
    .fp-avatar-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .fp-remember-me {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==================== MODAL D'AVANTATGES PER NO REGISTRATS ==================== */

.fp-benefits-modal .fp-modal-content {
    max-width: 600px;
    padding: 0;
    overflow: hidden;
}

.fp-benefits-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.fp-benefits-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.fp-benefits-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.fp-benefits-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.fp-benefits-list {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.fp-benefit-item i {
    font-size: 24px;
    color: var(--fp-accent-blue);
    margin-top: 3px;
    flex-shrink: 0;
}

.fp-benefit-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--fp-text-primary);
}

.fp-benefit-item p {
    margin: 0;
    font-size: 14px;
    color: var(--fp-text-secondary);
    line-height: 1.5;
}

.fp-benefits-actions {
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-benefits-actions .fp-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
}

.fp-btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fp-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .fp-benefits-header {
        padding: 30px 20px;
    }
    
    .fp-benefits-header h2 {
        font-size: 24px;
    }
    
    .fp-benefits-list {
        padding: 20px;
        gap: 15px;
    }
    
    .fp-benefit-item {
        gap: 12px;
    }
    
    .fp-benefit-item i {
        font-size: 20px;
    }
    
    .fp-benefit-item h3 {
        font-size: 15px;
    }
    
    .fp-benefit-item p {
        font-size: 13px;
    }
}

/* Notificació info */
.fp-notification.info {
    background: rgba(10, 132, 255, 0.15);
    border-left: 4px solid var(--fp-accent-blue);
    color: var(--fp-accent-blue);
}

/* ============================================
   TOGGLE FORMAT (TEXT / JSON)
   ============================================ */

.fp-format-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 20px 0;
}

.fp-format-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-text-secondary);
    transition: color 0.2s;
    cursor: default;
    user-select: none;
}

.fp-format-toggle-label.active {
    color: var(--fp-accent-blue);
}

.fp-format-toggle-text {
    transition: color 0.2s;
}

/* Toggle Switch */
.fp-format-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.fp-format-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fp-format-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--fp-accent-purple);
    border-radius: 28px;
    transition: 0.3s;
}

.fp-format-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.fp-format-toggle-switch input:checked + .fp-format-toggle-slider {
    background: var(--fp-accent-blue);
}

.fp-format-toggle-switch input:checked + .fp-format-toggle-slider:before {
    transform: translateX(24px);
}

/* Vista de JSON */
.fp-prompt-view {
    display: none;
}

.fp-prompt-view.active {
    display: block;
}

.fp-json-view {
    background: var(--fp-bg-tertiary);
}

.fp-prompt-json {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
}

/* Syntax highlighting per JSON */
.fp-prompt-json {
    white-space: pre;
}

/* JSON keys (orange) */
.fp-prompt-json::before {
    content: attr(data-json);
}

/* Mode fosc JSON */
body.dark-mode .fp-prompt-json {
    background: #0d0d0d;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .fp-format-toggle-label {
        font-size: 13px;
        gap: 8px;
    }
    
    .fp-format-toggle-switch {
        width: 46px;
        height: 24px;
    }
    
    .fp-format-toggle-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }
    
    .fp-format-toggle-switch input:checked + .fp-format-toggle-slider:before {
        transform: translateX(22px);
    }
    
    .fp-prompt-json {
        font-size: 12px;
        padding: 15px;
    }
}

/* ========================================
   HEADER WIDGET - Branding amb icona/logo
   ======================================== */

/* Només aplicar aquests estils dins del widget wrapper específic */
.elementor-widget-promtflix_header .promtflix-header-wrapper {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--fp-bg-secondary);
    border-radius: var(--fp-radius);
    margin-bottom: 0;
}

.elementor-widget-promtflix_header .promtflix-header-content {
    flex: 0 0 auto; /* No deixar que creixi, mantenir a l'esquerra */
}

.elementor-widget-promtflix_header .promtflix-header-logo {
    text-decoration: none;
    color: var(--fp-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start; /* Alinear a l'esquerra */
}

.elementor-widget-promtflix_header .promtflix-header-logo:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Logo complet */
.elementor-widget-promtflix_header .promtflix-header-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Icona + Text */
.elementor-widget-promtflix_header .promtflix-header-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elementor-widget-promtflix_header .promtflix-header-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.elementor-widget-promtflix_header .promtflix-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.elementor-widget-promtflix_header .promtflix-header-title {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
    
    /* Gradient amb colors molt clars (quasi blancs amb tint verd-blau) */
    background: linear-gradient(135deg, #d1fae5 0%, #e0f2fe 50%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Animació del gradient */
    background-size: 200% 200%;
    animation: gradientText 8s ease infinite;
    
    /* Drop shadow per fer-lo més visible */
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.elementor-widget-promtflix_header .promtflix-header-subtitle {
    font-size: 0.85em;
    font-weight: 400;
    
    /* Gradient amb colors molt clars pel subtítol */
    background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 10s ease infinite;
    
    /* Drop shadow per contrast */
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2));
}

/* Quan es mostra amb h1 (sense icona/logo) */
.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 5px;
    
    /* Gradient molt brillant pel títol h1 - colors quasi blancs amb tint */
    background: linear-gradient(135deg, #d1fae5 0%, #e0f2fe 50%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 8s ease infinite;
    
    /* Drop shadow més fort per millor visibilitat */
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 i {
    margin-right: 10px;
    /* Gradient molt brillant per la icona Font Awesome també */
    background: linear-gradient(135deg, #d1fae5 0%, #e0f2fe 50%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 .promtflix-header-subtitle {
    display: block;
    font-size: 0.5em;
    margin-top: 5px;
    font-weight: 400;
    opacity: 0.9;
    
    /* Gradient amb colors molt clars pel subtítol dins de h1 */
    background: linear-gradient(135deg, #d1fae5 0%, #dbeafe 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 10s ease infinite;
}

/* Reset de marges i paddings d'Elementor per al widget */
.elementor-widget-promtflix_header {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}

.elementor-widget-promtflix_header .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-promtflix_header .promtflix-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .elementor-widget-promtflix_header .promtflix-header-branding {
        flex-direction: column;
        gap: 8px;
    }
    
    .elementor-widget-promtflix_header .promtflix-header-text {
        align-items: center;
    }
    
    .elementor-widget-promtflix_header .promtflix-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .elementor-widget-promtflix_header .promtflix-header-logo-img,
    .elementor-widget-promtflix_header .promtflix-header-icon {
        height: 40px;
    }
}

/* ========================================
   GRADIENT & ANIMATIONS per SVG/Logos
   ======================================== */

/* Definir el gradient animat */
@keyframes gradientShift {
    0% {
        filter: hue-rotate(0deg) brightness(1.1) saturate(1.2);
    }
    25% {
        filter: hue-rotate(15deg) brightness(1.15) saturate(1.3);
    }
    50% {
        filter: hue-rotate(30deg) brightness(1.2) saturate(1.4);
    }
    75% {
        filter: hue-rotate(15deg) brightness(1.15) saturate(1.3);
    }
    100% {
        filter: hue-rotate(0deg) brightness(1.1) saturate(1.2);
    }
}

@keyframes colorPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3)) 
                drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    }
}

/* Aplicar gradient i animació als logos i icones */
.elementor-widget-promtflix_header .promtflix-header-logo-img,
.elementor-widget-promtflix_header .promtflix-header-icon {
    /* Sense cap efecte, només mostrar la imatge tal qual */
    object-fit: contain;
}

/* Animació específica per canviar el color del SVG */
@keyframes svgColorShift {
    0% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4)) 
                drop-shadow(0 0 15px rgba(59, 130, 246, 0.3))
                hue-rotate(0deg) 
                brightness(1.2) 
                saturate(1.3)
                sepia(0.3)
                hue-rotate(-10deg);
    }
    25% {
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 18px rgba(16, 185, 129, 0.4))
                hue-rotate(90deg) 
                brightness(1.3) 
                saturate(1.5)
                sepia(0.4)
                hue-rotate(20deg);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)) 
                drop-shadow(0 0 20px rgba(96, 165, 250, 0.4))
                hue-rotate(180deg) 
                brightness(1.4) 
                saturate(1.6)
                sepia(0.5)
                hue-rotate(50deg);
    }
    75% {
        filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 18px rgba(16, 185, 129, 0.4))
                hue-rotate(90deg) 
                brightness(1.3) 
                saturate(1.5)
                sepia(0.4)
                hue-rotate(20deg);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4)) 
                drop-shadow(0 0 15px rgba(59, 130, 246, 0.3))
                hue-rotate(0deg) 
                brightness(1.2) 
                saturate(1.3)
                sepia(0.3)
                hue-rotate(-10deg);
    }
}

/* Efecte hover més intens */
.elementor-widget-promtflix_header .promtflix-header-logo:hover .promtflix-header-logo-img,
.elementor-widget-promtflix_header .promtflix-header-logo:hover .promtflix-header-icon {
    /* Sense efectes hover */
}

/* Per SVGs específicament - aplicar gradient intern si és possible */
.elementor-widget-promtflix_header .promtflix-header-logo-img[src$=".svg"],
.elementor-widget-promtflix_header .promtflix-header-icon[src$=".svg"] {
    /* Sense cap efecte per SVG */
}

/* Animació específica per SVGs - del verd al blau passant pel turquesa */
@keyframes svgGradientColorShift {
    0% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 15px rgba(59, 130, 246, 0.4))
                invert(0%)
                sepia(100%)
                saturate(300%)
                hue-rotate(95deg)   /* Verd */
                brightness(1.1);
    }
    33% {
        filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.6)) 
                drop-shadow(0 0 18px rgba(59, 130, 246, 0.5))
                invert(0%)
                sepia(100%)
                saturate(350%)
                hue-rotate(160deg)  /* Turquesa/Cyan */
                brightness(1.2);
    }
    66% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)) 
                drop-shadow(0 0 20px rgba(96, 165, 250, 0.5))
                invert(0%)
                sepia(100%)
                saturate(400%)
                hue-rotate(200deg)  /* Blau */
                brightness(1.3);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 15px rgba(59, 130, 246, 0.4))
                invert(0%)
                sepia(100%)
                saturate(300%)
                hue-rotate(95deg)   /* Torna al verd */
                brightness(1.1);
    }
}

/* Variant alternativa amb gradient més suau */
@keyframes smoothGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.3)) 
                drop-shadow(0 0 20px rgba(59, 130, 246, 0.2))
                brightness(1.1);
    }
    33% {
        filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.5)) 
                drop-shadow(0 0 25px rgba(16, 185, 129, 0.3))
                brightness(1.15);
    }
    66% {
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)) 
                drop-shadow(0 0 25px rgba(96, 165, 250, 0.3))
                brightness(1.15);
    }
}

/* Classe opcional per animació més lenta i suau */
.elementor-widget-promtflix_header.smooth-animation .promtflix-header-logo-img,
.elementor-widget-promtflix_header.smooth-animation .promtflix-header-icon {
    animation: smoothGlow 12s ease-in-out infinite;
}

/* Efecte de resplandor per PNGs i GIFs també */
.elementor-widget-promtflix_header .promtflix-header-logo-img:not([src$=".svg"]),
.elementor-widget-promtflix_header .promtflix-header-icon:not([src$=".svg"]) {
    /* Sense efectes per PNG/GIF */
}

/* Reducció d'animació per preferències d'accessibilitat */
@media (prefers-reduced-motion: reduce) {
    .elementor-widget-promtflix_header .promtflix-header-logo-img,
    .elementor-widget-promtflix_header .promtflix-header-icon {
        animation: none;
        filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3)) 
                drop-shadow(0 0 12px rgba(59, 130, 246, 0.2));
    }
    
    .elementor-widget-promtflix_header .promtflix-header-title,
    .elementor-widget-promtflix_header .promtflix-header-subtitle,
    .elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 {
        animation: none;
    }
}

/* Override dels colors d'Elementor per mantenir el gradient */
.elementor-widget-promtflix_header .promtflix-header-title,
.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 {
    /* Forçar gradient per sobre de configuració d'Elementor */
    color: transparent !important;
}

.elementor-widget-promtflix_header .promtflix-header-subtitle,
.elementor-widget-promtflix_header .promtflix-header-wrapper .promtflix-header h1 .promtflix-header-subtitle {
    /* Forçar gradient pel subtítol */
    color: transparent !important;
}

