/* ==========================================================================
   STROYNA & XBK ENTERPRISE — Master SQL Database Hub Styles
   ========================================================================== */

/* Top Right Header Nav Button */
.sql-hub-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(99, 102, 241, 0.22));
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: 12px;
    padding: 6px 14px;
    color: #e2e8f0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.sql-hub-nav-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(99, 102, 241, 0.36));
    border-color: #38bdf8;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 22px rgba(6, 182, 212, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sql-hub-nav-btn:active {
    transform: translateY(0);
}

.sql-btn-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 0.88rem;
}

.sql-status-ping {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: sqlPulse 2s infinite;
}

@keyframes sqlPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.sql-btn-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.sql-btn-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.sql-btn-chip {
    font-size: 0.64rem;
    color: #38bdf8;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Right Floating Dock Item for SQL Database (3cm x 3cm) */
.dock-sql-db {
    --dock-border: rgba(6, 182, 212, 0.45);
    background: linear-gradient(145deg, rgba(11, 17, 32, 0.92), rgba(6, 182, 212, 0.12)) !important;
}

.dock-sql-db:hover {
    --dock-border: #38bdf8;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.dock-sql-db .dock-icon-circle {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.35));
    color: #38bdf8;
}

/* ==========================================================================
   Full Enterprise SQL Database Modal
   ========================================================================== */
.sql-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.26s ease-out;
}

.sql-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.sql-modal-container {
    width: 96vw;
    max-width: 1540px;
    height: 92vh;
    max-height: 940px;
    background: #090d1a;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.97);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.sql-modal-overlay.active .sql-modal-container {
    transform: scale(1);
}

/* Modal Top Bar */
.sql-modal-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(9, 13, 26, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.sql-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sql-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
}

.sql-modal-title-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sql-version-tag {
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sql-modal-subtitle {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Navigation Tabs */
.sql-modal-nav-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.sql-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sql-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.sql-tab-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(99, 102, 241, 0.25));
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Header Action Buttons */
.sql-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sql-btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.2s;
}

.sql-btn-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.sql-modal-close-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sql-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Modal Body Layout */
.sql-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   Tab 1: Jadvallar Reestri (Data Explorer)
   ========================================================================== */
.sql-explorer-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Category Filter Bar */
.sql-categories-bar {
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-shrink: 0;
}

.sql-cat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sql-cat-chip:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
}

.sql-cat-chip.active {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.5);
    color: #38bdf8;
    font-weight: 700;
}

/* Table Selector Cards Strip */
.sql-table-cards-strip {
    background: rgba(8, 12, 24, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    flex-shrink: 0;
}

.sql-table-card-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 14px;
    color: #cbd5e1;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.22s;
    flex-shrink: 0;
}

.sql-table-card-btn:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.sql-table-card-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(99, 102, 241, 0.22));
    border-color: #38bdf8;
    color: #f8fafc;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

.sql-tc-icon {
    font-size: 0.95rem;
}

.sql-tc-name {
    font-size: 0.78rem;
    font-weight: 700;
}

.sql-tc-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.66rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.sql-table-card-btn.active .sql-tc-badge {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

/* Active Table Toolbar */
.sql-active-table-toolbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.sql-att-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sql-att-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sql-att-desc {
    font-size: 0.74rem;
    color: #94a3b8;
}

.sql-att-aggregates {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.sql-agg-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
}

.sql-att-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sql-search-box {
    position: relative;
    width: 250px;
}

.sql-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.78rem;
}

.sql-search-input {
    width: 100%;
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 6px 10px 6px 32px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.78rem;
    outline: none;
    transition: all 0.2s;
}

.sql-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.sql-limit-select {
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 6px 10px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.76rem;
    outline: none;
    cursor: pointer;
}

.sql-btn-export {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.sql-btn-export:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   Table Container & Rows
   ========================================================================== */
.sql-table-wrapper {
    flex: 1;
    overflow: auto;
    background: #060913;
    position: relative;
}

.sql-enterprise-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
    text-align: left;
    white-space: nowrap;
}

.sql-enterprise-table thead th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    z-index: 10;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s;
}

.sql-enterprise-table thead th:hover {
    background: #1e293b;
    color: #38bdf8;
}

.sql-sort-icon {
    margin-left: 5px;
    font-size: 0.68rem;
    color: #64748b;
}

.sql-enterprise-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}

.sql-enterprise-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.35);
}

.sql-enterprise-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.12) !important;
}

.sql-enterprise-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: middle;
}

.sql-row-num {
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    width: 44px;
}

.sql-cell-money {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #f1f5f9;
}

.sql-cell-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Status Badges */
.sql-badge-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
}

.sql-status-success {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sql-status-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.sql-status-warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.sql-status-info {
    background: rgba(6, 182, 212, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.sql-plate-badge {
    background: #ffffff;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid #94a3b8;
    letter-spacing: 0.5px;
    font-size: 0.74rem;
}

/* Pagination Bar */
.sql-pagination-bar {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sql-page-info {
    font-size: 0.76rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.sql-page-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sql-page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s;
}

.sql-page-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
}

.sql-page-btn.active {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: 800;
}

.sql-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Tab 2: SQL So'rovlar Konsoli (Query Runner)
   ========================================================================== */
.sql-query-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 20px 24px;
    gap: 16px;
}

.sql-presets-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sql-preset-title {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 700;
}

.sql-preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.sql-preset-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.sql-editor-container {
    background: #030712;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.sql-textarea-input {
    width: 100%;
    height: 105px;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    outline: none;
    resize: none;
    line-height: 1.5;
}

.sql-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.sql-query-run-btn {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border: 1px solid #38bdf8;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s;
}

.sql-query-run-btn:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.sql-query-results-area {
    flex: 1;
    overflow: auto;
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Tab 3: Schema Overview
   ========================================================================== */
.sql-schema-grid {
    padding: 20px 24px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
    height: 100%;
}

.sql-schema-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.sql-schema-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sql-sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sql-sc-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sql-sc-columns {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.sql-sc-col-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
}

.sql-col-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #e2e8f0;
}

.sql-col-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Row Inspector Drawer / Modal
   ========================================================================== */
.sql-row-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    background: #0b1120;
    border-left: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sql-row-drawer.active {
    transform: translateX(0);
}

.sql-drawer-header {
    background: #0f172a;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sql-drawer-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.sql-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sql-field-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.sql-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.sql-field-val {
    font-size: 0.84rem;
    color: #f8fafc;
    word-break: break-all;
    font-family: inherit;
}

.sql-field-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.18s;
}

.sql-field-copy-btn:hover {
    color: #38bdf8;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .sql-modal-container {
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        border: none;
    }
    .sql-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sql-row-drawer {
        width: 100%;
    }
}
