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

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

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

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

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

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

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

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

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

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

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

#aihg-topic:focus {
    border-color: #E91E63;
    outline: none;
}

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

.aihg-options label {
    font-weight: 500;
    color: #555;
    margin-right: 5px;
}

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

.aihg-options select:focus {
    border-color: #E91E63;
    outline: none;
}

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

.aihg-output-content ul {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 30px;
}

.aihg-output-content li {
    margin-bottom: 8px;
    break-inside: avoid;
    color: #E91E63;
}

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

#aihg-generate {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: white;
}

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

#aihg-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233,30,99,0.4);
}

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

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

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

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

.aihg-only-result ul {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 30px;
}

.aihg-only-result li {
    color: #E91E63;
}

@media (max-width: 768px) {
    .aihg-with-sidebar {
        flex-direction: column;
    }
    .aihg-sidebar {
        flex: 1 1 100%;
    }
    .aihg-output-content ul,
    .aihg-only-result ul {
        columns: 1;
    }
}