.aipdg-wrap {
    max-width: 1400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aipdg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.aipdg-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.aipdg-sidebar {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.aipdg-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aipdg-sidebar li {
    margin-bottom: 10px;
}

.aipdg-sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.aipdg-sidebar a:hover {
    background: #e0e0e0;
    color: #000;
}

.aipdg-input-panel,
.aipdg-output-panel {
    flex: 1 1 300px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aipdg-input-panel label,
.aipdg-output-panel label {
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

.aipdg-input-panel label:first-of-type {
    margin-top: 0;
}

.aipdg-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border 0.3s;
}

#aipdg-features {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    transition: border 0.3s;
}

.aipdg-input:focus,
#aipdg-features:focus {
    border-color: #FF6F00;
    outline: none;
}

.aipdg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aipdg-option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aipdg-option-group label {
    font-weight: 500;
    color: #555;
    margin: 0;
}

.aipdg-option-group select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.aipdg-option-group select:focus {
    border-color: #FF6F00;
    outline: none;
}

.aipdg-output-content {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
}

.aipdg-output-content p {
    margin: 0.5em 0;
}

.aipdg-output-content strong {
    color: #000;
    font-weight: 600;
}

.aipdg-output-content em {
    font-style: italic;
}

#aipdg-generate,
#aipdg-copy {
    align-self: flex-start;
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#aipdg-generate {
    background: linear-gradient(135deg, #FF6F00, #E65100);
    color: white;
}

#aipdg-copy {
    background: #f0f0f0;
    color: #333;
}

#aipdg-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,111,0,0.4);
}

#aipdg-copy:hover {
    background: #e0e0e0;
}

.aipdg-loader {
    color: #FF6F00;
    font-weight: 500;
    margin-top: 10px;
}

.aipdg-error {
    color: #d63638;
    background: #fcf0f1;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #d63638;
}

.aipdg-only-result {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF6F00;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .aipdg-with-sidebar {
        flex-direction: column;
    }
    .aipdg-sidebar {
        flex: 1 1 100%;
    }
    .aipdg-options {
        flex-direction: column;
        gap: 10px;
    }
}