* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MAIN STYLES */
body {
    font-family: 'Inter', 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #36393f;
    min-height: 100vh;
    color: #dcddde;
    overflow-x: hidden;
}

/* MAIN CONTAINER */
.container {
    max-width: 1200px;
    min-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-section,
.preview-section {
    background: #2f3136;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #202225;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preview-info {
    color: #b9bbbe;
    font-size: 0.85rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #202225;
}

.help-section {
    background: #2f3136;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #202225;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.help-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.help-category {
    margin-bottom: 25px;
}

.help-category h4 {
    color: #b9bbbe;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #40444b;
    padding-bottom: 8px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 10px;
    background: #40444b;
    border-radius: 6px;
    border: 1px solid #202225;
    transition: all 0.2s ease;
    min-height: 50px;
    width: 100%;
}

.help-item:hover {
    background: #484c52;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Help Section */
.help-item span {
    color: #dcddde;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    min-width: 120px;
    max-width: 150px;
    flex-shrink: 0;
}

.help-item code {
    background: #2f3136;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #5865f2;
    text-align: center;
    border: 1px solid #202225;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* HEADERLINE: BUTTON BACKUP */
.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
}

h3 {
    font-size: 1rem;
    color: #b9bbbe;
    font-weight: 600;
    margin-bottom: 10px;
}

h4 {
    font-size: 0.9rem;
    color: #b9bbbe;
    font-weight: 600;
    margin-bottom: 8px;
}

.main-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #5865f2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.main-button:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.main-button:active {
    transform: translateY(0);
}

.clear-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f04747;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.clear-button:hover {
    background: #d73d3d;
    transform: translateY(-1px);
}

.clear-button:active {
    background: #c03d3d;
    transform: translateY(0);
}

.clear-button svg {
    flex-shrink: 0;
}


/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    margin-right: 8px;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.btn-primary {
    background: #5865f2;
    color: white;
}

.btn-primary:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.btn-success {
    background: #57f287;
    color: #2c2f33;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-success:hover {
    background: #43d67a;
    transform: translateY(-1px);
}

.btn-warning {
    background: #faa61a;
    color: white;
}

.btn-warning:hover {
    background: #e89b0a;
    transform: translateY(-1px);
}

.btn-info {
    background: #00b0f4;
    color: white;
}

.btn-info:hover {
    background: #0099d4;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #747f8d;
    color: white;
}

.btn-secondary:hover {
    background: #5e6773;
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}