* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-1: #0b0b0f;
    --bg-2: #111117;
    --bg-3: #18181f;
    --bg-4: #1f1f28;
    --border: #2a2a35;
    --text-1: #ffffff;
    --text-2: #a0a0b0;
    --text-3: #606070;
    --primary: #5865f2;
    --primary-hover: #4752c4;
    --success: #23a55a;
    --warning: #f0b232;
    --danger: #f23f43;
    --info: #00a8fc;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-1);
    color: var(--text-1);
    line-height: 1.5;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-2);
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-3);
    color: var(--text-1);
}

.nav-item.active {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-3);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(35, 165, 90, 0.5);
}

.status-dot.offline {
    background: var(--danger);
}

/* Main */
.main {
    flex: 1;
    margin-left: 250px;
}

.header {
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-3);
    border-radius: 8px;
}

.server-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.content {
    padding: 24px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.blue { background: rgba(88, 101, 242, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(35, 165, 90, 0.15); color: var(--success); }
.stat-icon.yellow { background: rgba(240, 178, 50, 0.15); color: var(--warning); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-2);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Card */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 16px 20px;
}

/* Activity */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-3);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-text {
    flex: 1;
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-1);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-4);
    border-color: var(--primary);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-2);
    border-radius: 8px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-1);
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btns {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-2);
    border-radius: 6px;
}

.filter-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text-2);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-1);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Table */
.table-wrap {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3);
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--bg-3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-3);
    color: var(--text-1);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-4);
}

.btn-danger {
    background: rgba(242, 63, 67, 0.15);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(242, 63, 67, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* Status Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-open { background: rgba(35, 165, 90, 0.15); color: var(--success); }
.badge-closed { background: rgba(242, 63, 67, 0.15); color: var(--danger); }
.badge-active { background: rgba(88, 101, 242, 0.15); color: var(--primary); }
.badge-ended { background: rgba(96, 96, 112, 0.15); color: var(--text-3); }

/* Form */
.form-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.form-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
}

.input {
    padding: 10px 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-1);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.input::placeholder {
    color: var(--text-3);
}

textarea.input {
    resize: vertical;
    min-height: 80px;
}

.input.color {
    padding: 4px;
    height: 42px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-3);
    border-radius: 6px;
    cursor: pointer;
}

.checkbox-item input {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.category-emoji {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.category-desc {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 16px;
}

.category-actions {
    display: flex;
    gap: 8px;
}

/* Giveaways Grid */
.giveaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.giveaway-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.giveaway-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.giveaway-prize {
    font-size: 1.1rem;
    font-weight: 600;
}

.giveaway-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-2);
}

.giveaway-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.giveaway-info svg {
    width: 16px;
    height: 16px;
    color: var(--text-3);
}

/* Logs */
.logs-list {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.log-item {
    display: flex;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.log-item:last-child {
    border-bottom: none;
}

.log-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-icon svg {
    width: 18px;
    height: 18px;
}

.log-icon.message { background: rgba(88, 101, 242, 0.15); color: var(--primary); }
.log-icon.member { background: rgba(35, 165, 90, 0.15); color: var(--success); }
.log-icon.ticket { background: rgba(0, 212, 170, 0.15); color: #00d4aa; }
.log-icon.moderation { background: rgba(242, 63, 67, 0.15); color: var(--danger); }
.log-icon.voice { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.log-content {
    flex: 1;
}

.log-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.log-desc {
    font-size: 0.875rem;
    color: var(--text-2);
}

.log-time {
    font-size: 0.75rem;
    color: var(--text-3);
    white-space: nowrap;
}

/* Member */
.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.member-name {
    font-weight: 500;
}

.roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.role-tag {
    padding: 2px 8px;
    background: var(--bg-3);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Empty State */
.empty {
    text-align: center;
    padding: 40px;
    color: var(--text-3);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}
/* Forms Page Styles */
.forms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.forms-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.forms-header p {
    color: var(--text-2);
    margin: 0;
}

.forms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.form-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.form-card-header h4 {
    font-size: 1.1rem;
    margin: 0;
}

.form-card-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.form-card-info {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-card-fields {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-card-field {
    background: var(--bg-2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

/* Form Builder Modal */
.form-builder-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.form-builder-modal.active {
    display: flex;
}

.form-builder-container {
    background: var(--bg-3);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.form-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-builder-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.form-settings, .form-preview {
    min-height: 0;
}

.form-settings {
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--text-1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-2);
    font-size: 0.85rem;
}

.section-title {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.form-fields-list {
    margin-bottom: 1rem;
}

.form-field-item {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: move;
}

.form-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-field-header strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drag-handle {
    cursor: move;
    opacity: 0.5;
}

.field-actions {
    display: flex;
    gap: 0.5rem;
}

.field-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.field-btn:hover {
    background: var(--bg-4);
}

.form-field-meta {
    font-size: 0.85rem;
    color: var(--text-2);
}

/* Discord Modal Preview */
.form-preview {
    position: sticky;
    top: 0;
}

.form-preview h3 {
    margin-bottom: 1rem;
}

.discord-modal-preview {
    background: #313338;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.discord-modal-header {
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #1e1f22;
}

.discord-modal-body {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.discord-field {
    margin-bottom: 1rem;
}

.discord-field-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.discord-required {
    color: #f23f43;
}

.discord-input, .discord-textarea {
    width: 100%;
    padding: 0.625rem;
    background: #1e1f22;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    color: #dbdee1;
    font-size: 0.9rem;
}

.discord-textarea {
    min-height: 80px;
    resize: vertical;
}

.empty-preview {
    text-align: center;
    padding: 3rem 1rem;
    color: #80848e;
}

.discord-modal-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid #1e1f22;
}

.discord-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.7;
}

.discord-btn-primary {
    background: #5865f2;
    color: white;
}

.discord-btn-secondary {
    background: transparent;
    color: white;
}

.form-builder-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-block {
    width: 100%;
}

/* Field Editor Modal */
.field-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.field-editor-modal.active {
    display: flex;
}

.field-editor-content {
    background: var(--bg-3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.field-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.field-editor-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.field-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 968px) {
    .form-builder-body {
        grid-template-columns: 1fr;
    }
    
    .form-preview {
        position: static;
    }
}

/* Sidebar Section Styles */
.sidebar-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-2);
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
