/* UntApp Global Styles */

:root {
    --primary: #0d6efd;
    --dark: #1a1a2e;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
}

/* Cards */
.hover-card {
    transition: transform .15s, box-shadow .15s;
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important;
}

/* Builder specific */
#builder-app {
    font-size: 13px;
}

.builder-toolbar {
    background: white;
    z-index: 10;
}

.page-tree-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    gap: 4px;
}

.page-tree-item:hover {
    background: rgba(255,255,255,0.1);
}

.page-tree-item.active {
    background: rgba(13,110,253,0.5);
    color: white;
}

/* Code editors */
textarea.font-monospace {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    tab-size: 2;
    background: #1e1e2e;
    color: #cdd6f4;
    border: none;
}

/* Alerts */
.alert {
    border-radius: 8px;
}

/* Form controls */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Cards */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.08);
}

/* Table */
.table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* Section items in builder */
.section-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all .1s;
}

.section-item:hover {
    border-color: #0d6efd;
}

/* Component cards in offcanvas */
.comp-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all .1s;
}
.comp-card:hover {
    border-color: #0d6efd;
    background: #f0f5ff;
}

/* Drag handle cursor */
.drag-handle {
    cursor: grab !important;
}

.drag-handle:active {
    cursor: grabbing !important;
}
