.dbm-page {
    overflow: auto;
    background-color: #fcfcfc;
}

.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* DBM Layout */
.dbm-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.dbm-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.dbm-content {
    flex-grow: 1;
    min-width: 0;
}

/* Tree UI */
.dbm-tree {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 10px;
}

.tree-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.tree-item:hover {
    background-color: #e9ecef;
}

.tree-label {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.indent {
    margin-left: 15px;
    border-left: 1px dashed #ccc;
    padding-left: 10px;
}

.item-actions {
    display: none;
    gap: 5px;
}

.tree-item:hover .item-actions {
    display: flex;
}

/* Data View */
.data-view {
    min-height: 400px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: auto;
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: #888;
}

#data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#data-table th, #data-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#data-table th {
    background: #f8f9fa;
    font-weight: 700;
}

#data-table tr:hover {
    background-color: #fcfcfc;
}

/* Console UI */
.console-box {
    background: #212529;
    color: #e9ecef;
    height: 200px;
    overflow-y: auto;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid #343a40;
    padding-bottom: 3px;
}

.log-time { color: #6c757d; margin-right: 8px; }
.log-success { color: #4ec9b0; }
.log-error { color: #f44747; }
.log-info { color: #9cdcfe; }
.log-warn { color: #dcdcaa; }

.btn-clear {
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-clear:hover {
    background: #eee;
}

/* Utilities */
.hidden { display: none !important; }
.dbm-actions { display: flex; gap: 10px; align-items: center; }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #eee;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-menu button:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

/* Password Overlay 삭제됨 */

/* Small buttons */
.btn-sm-outline {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    cursor: pointer;
}

.btn-sm-outline:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.btn-del-sm:hover {
    background-color: #fff5f5;
    color: #fa5252;
    border-color: #ffa8a8;
}
