.generator-selection {
    max-width: 800px;
    margin: 0 auto;
}

.platform-selector {
    padding: 1rem 0;
}

.platform-title {
    text-align: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.platform-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: white;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.platform-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.platform-btn h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.platform-btn p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.coming-soon-section {
    padding: 2rem 0;
}

.coming-soon-content {
    text-align: center;
    padding: 3rem 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.coming-soon-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.coming-soon-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.back-btn,
.back-to-platforms-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover,
.back-to-platforms-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.back-to-platforms-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .platform-btn {
        padding: 2rem 1.5rem;
    }

    .platform-icon {
        font-size: 3rem;
    }

    .platform-title {
        font-size: 1.5rem;
    }

    .coming-soon-content {
        padding: 2rem 1rem;
    }
}

.selection-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.type-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: white;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.type-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

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

.type-btn h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.type-btn p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.generator-form {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.plugin-result {
    margin-top: 1.5rem;
}

.plugin-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.plugin-info h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plugin-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.files-section {
    margin-top: 2rem;
}

.files-section h5 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
}

.file-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-header {
    background: #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-header:hover {
    background: #dee2e6;
}

.file-path {
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.file-type {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.file-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.file-content.expanded {
    max-height: 500px;
    overflow-y: auto;
}

.file-code {
    padding: 1.5rem;
    margin: 0;
    background: #f8f9fa;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
}

.copy-file-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.copy-file-btn:hover {
    background: #20c997;
    opacity: 1;
}

.raw-response {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
}

.raw-response h4 {
    color: #333;
    margin-bottom: 1rem;
}

.raw-content {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.commands-container,
.permissions-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #17a2b8;
}

.commands-container h5,
.permissions-container h5 {
    color: #333;
    margin-bottom: 1rem;
}

.command-item,
.permission-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.command-name,
.permission-name {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.command-usage {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .file-content.expanded {
        max-height: 300px;
    }
    
    .type-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .type-btn {
        padding: 1.5rem;
    }
    
    .type-icon {
        font-size: 2.5rem;
    }
    
    .selection-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}


.advanced-settings-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.advanced-settings-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.advanced-settings-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.advanced-settings-content.expanded {
    max-height: 300px;
    margin-bottom: 1rem;
}

.advanced-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.advanced-checkbox input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: white;
    cursor: pointer;
}

.intelligence-slider-container {
    margin-top: 0.5rem;
}

.intelligence-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.intelligence-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.intelligence-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.intelligence-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.intelligence-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.intelligence-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.level-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-label.active {
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .type-selector {
        grid-template-columns: 1fr;
    }

    .selection-container {
        padding: 1rem;
    }

    .type-btn {
        padding: 1rem;
    }

    .type-icon {
        font-size: 2rem;
    }

    .type-btn h3 {
        font-size: 1.2rem;
    }
}

.generate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.generate-btn {
    flex: 1;
    width: auto;
}

.dice-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 8px;
}

.dice-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.dice-btn:active {
    transform: scale(0.95);
}

.dice-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dice-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.random-confirm-popup h3 {
    color: white;
    margin-bottom: 12px;
}

.random-confirm-popup p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.random-confirm-popup .popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.random-confirm-popup .confirm-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.random-confirm-popup .confirm-btn:hover {
    background: #0056b3;
}

.random-confirm-popup .cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.random-confirm-popup .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.prompt-improvement-warning .popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.prompt-improvement-warning .popup-buttons button {
    min-width: 140px;
}

.prompt-improvement-warning .popup-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#discordGenerators .generator-form {
    max-width: 600px;
    margin: 0 auto;
}

#discordGenerators .back-to-platforms-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#discordGenerators .back-to-platforms-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#discordAdvancedSettingsToggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#discordAdvancedSettingsToggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

#discordAdvancedSettingsToggle.active {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

#discordAdvancedSettingsContent {
    display: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

#discordAdvancedSettingsContent.expanded {
    display: block;
}

.platform-btn[data-platform="discord"] {
    border-color: rgba(88, 101, 242, 0.3);
}

.platform-btn[data-platform="discord"]:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

@media (max-width: 768px) {
    .generate-actions {
        flex-direction: column;
    }

    .dice-btn {
        width: 100%;
        height: 44px;
    }

    .random-confirm-popup .popup-buttons {
        flex-direction: column;
    }
}
