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

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

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

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

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

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

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

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

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

.aiscg-input-panel label,
.aiscg-output-panel label {
    font-weight: 600;
    color: #333;
}

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

#aiscg-prompt:focus {
    border-color: #3F51B5;
    outline: none;
}

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

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

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

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

#aiscg-generate,
#aiscg-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;
}

#aiscg-generate {
    background: linear-gradient(135deg, #3F51B5, #303F9F);
    color: white;
}

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

#aiscg-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63,81,181,0.4);
}

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

.aiscg-loader {
    color: #3F51B5;
    font-weight: 500;
    margin-top: 10px;
}

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

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

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