
.webhook-section {
    position: relative;
    overflow: hidden;
}

.webhook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05), transparent);
    pointer-events: none;
}

.discord-message {
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #36393f;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.bot-username {
    font-weight: 600;
    color: #ffffff;
    margin-right: 0.5rem;
}

.bot-tag {
    background: #5865f2;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
}

.message-content {
    color: #dcddde;
    margin-bottom: 1rem;
    line-height: 1.375;
    white-space: pre-wrap;
}

.component-editor {
    border: 1px solid var(--border);
    border-left: 4px solid #000000;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    transition: var(--transition);
}

.component-editor:hover {
    box-shadow: var(--shadow-md);
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.form-group label input[type="checkbox"] {
    margin: 0;
    align-self: flex-start;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group-inline label {
    min-width: 120px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.form-group-inline input, 
.form-group-inline select, 
.form-group-inline textarea {
    flex: 1;
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.component-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.component-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.btn-icon {
    padding: 0.5rem;
    min-width: auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.btn.btn-icon:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.container-label-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.container-label-controls .btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

.discord-message {
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #36393f;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.bot-username {
    font-weight: 600;
    color: #ffffff;
    margin-right: 0.5rem;
}

.bot-tag {
    background: #5865f2;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
}

.message-content {
    color: #dcddde;
    margin-bottom: 1rem;
    line-height: 1.375;
    white-space: pre-wrap;
}

.action-row {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.discord-button {
    background: #4f545c;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 6px;
}

.discord-button.link {
    background: transparent;
    color: #00d4aa;
}

.discord-button.primary {
    background: #5865f2;
    color: #ffffff;
}

.discord-button.secondary {
    background: #4f545c;
    color: #ffffff;
}

.discord-button.success {
    background: #3ba55d;
    color: #ffffff;
}

.discord-button.danger {
    background: #ed4245;
    color: #ffffff;
}

.text-display {
    color: #dcddde;
    margin: 8px 0;
    line-height: 1.375;
    white-space: pre-wrap;
}

.container-component {
    border-left: 4px solid #000000;
    background: rgba(79, 84, 92, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.section-component {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.separator-component {
    margin: 16px 0;
    text-align: center;
    color: #72767d;
}

.separator-line {
    height: 1px;
    background: #40444b;
    margin: 8px 0;
}

.thumbnail-component {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.media-gallery {
    display: grid;
    gap: 8px;
    margin: 8px 0;
    max-width: 400px;
}

.media-item {
    border-radius: 8px;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.file-component {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(79, 84, 92, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #40444b;
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-component:hover {
    background: rgba(79, 84, 92, 0.5);
}

.file-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865f2;
    border-radius: 6px;
    color: white;
}

.file-component {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2f3136;
    border: 1px solid #40444b;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #5865f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .tool-container {
        grid-template-columns: 1fr !important;
    }
}
