.hg-main-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.hg-panel-title { font-size: 32px; font-weight: 800; color: #1a202c; text-align: center; margin-bottom: 10px; }
.hg-panel-subtitle { text-align: center; color: #718096; margin-bottom: 40px; }

.hg-config-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
      margin: 0 auto 30px auto !important;
      overflow: hidden;
      max-width: 800px;
      width: 95%
}

.hg-card-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.hg-server-label { font-size: 20px; font-weight: 700; color: #2d3748; display: block; }
.hg-product-tag { font-size: 12px; background: #ebf8ff; color: #3182ce; padding: 4px 12px; border-radius: 20px; font-weight: 600; }

/* Buttons */
.hg-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    color: #fff !important;
}

.hg-btn-generate { background: #2563eb; } /* Blue */
.hg-btn-generate:hover { background: #1d4ed8; transform: translateY(-2px); }

.hg-btn-success { background: #10b981; } /* Green */
.hg-btn-success:hover { background: #059669; }

.hg-btn-danger { background: #ef4444; margin-left: 5px; } /* Red */
.hg-btn-danger:hover { background: #dc2626; }

/* Editor Area */
.hg-editor-wrapper {
    padding: 20px;
    background: #1e293b;
    animation: slideDown 0.4s ease-out;
}

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

.hg-editor-toolbar {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hg-config-textarea {
    width: 100%;
    height: 300px;
    background: #0f172a;
    color: #21f3a3; /* Matrix Green color for JSON */
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

@media (max-width: 600px) {
    .hg-card-header { flex-direction: column; text-align: center; }
    .hg-btn { width: 100%; margin: 5px 0; }
}



/* --- User Guide Styles (English Version) --- */
.hg-user-guide-display {
    line-height: 1.6;
    font-size: 14px;
}

.hg-user-guide-display h4 {
    margin-bottom: 12px;
    font-weight: 600;
}

/* Ordering English Lists */
.hg-user-guide-display ul, 
.hg-user-guide-display ol {
    padding-left: 20px;
    padding-right: 0;
    margin: 10px 0;
    list-style-position: outside;
}

.hg-user-guide-display li {
    margin-bottom: 6px;
}

/* Close Button Style */
.hg-btn-close {
    background: #64748b !important;
}
.hg-btn-close:hover {
    background: #475569 !important;
}

/* Mobile Fixes */
@media (max-width: 600px) {
    .hg-card-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .hg-card-actions .hg-btn {
        width: 100% !important;
        margin-left: 0 !important;
    }
}