
@import "./storage.css";
@import "./sidebar.css";
@import "./table.css";
@import "./dialog.css";
.dev-application {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #d7d7d7;
  background: #1e1e1e;
}

.dev-application *,
.dev-application *::before,
.dev-application *::after {
  box-sizing: border-box;
}

.dev-application-header {
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #333;
  background: #252526;
}

.dev-application-title {
  font-weight: 600;
  color: #eee;
}

.dev-application-subtitle {
  color: #858585;
}

.dev-application-toolbar {
  height: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-bottom: 1px solid #333;
  background: #252526;
}

.dev-application-search {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #3f3f46;
  border-radius: 3px;
  outline: none;
  color: #ddd;
  background: #181818;
}

.dev-application-search:focus {
  border-color: #007acc;
}

.dev-application-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-application-toolbar button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ddd;
  background: #303030;
  cursor: pointer;
}

.dev-application-toolbar button:hover {
  background: #3b3b3b;
}

.dev-application-toolbar button:active {
  background: #252525;
}

.dev-application-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.dev-application-sidebar {
  width: 190px;
  min-width: 190px;
  overflow-y: auto;
  border-right: 1px solid #333;
  background: #252526;
}

.dev-application-sidebar-title {
  padding: 11px 12px 7px;
  color: #858585;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.dev-application-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 5px 8px;
}

.dev-application-sidebar-item {
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 0;
  border-radius: 3px;
  text-align: left;
  color: #ccc;
  background: transparent;
  cursor: pointer;
}

.dev-application-sidebar-item:hover {
  background: #303030;
}

.dev-application-sidebar-item.active {
  color: #fff;
  background: #094771;
}

.dev-application-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #1e1e1e;

}

.dev-application-empty {
  padding: 32px;
  text-align: center;
  color: #777;
}

.dev-storage {
  min-width: 500px;
}

.dev-storage-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  border-bottom: 1px solid #333;
  color: #aaa;
  background: #1e1e1e;
  font-weight: 600;
}

.dev-storage-table {
  width: 100%;
}

.dev-storage-header,
.dev-storage-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr)
    minmax(250px, 2fr)
    110px;
  align-items: center;
}

.dev-storage-header {
  position: sticky;
  top: 0px;
  z-index: 1;
  min-height: 30px;
  border-bottom: 1px solid #333;
  color: #aaa;
  background: #252526;
  font-weight: 600;
}

.dev-storage-row {
  min-height: 32px;
  border-bottom: 1px solid #2d2d2d;
}

.dev-storage-row:hover {
  background: #252525;
}

.dev-storage-header > div,
.dev-storage-row > div {
  min-width: 0;
  padding: 6px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-storage-row-key {
  color: #9cdcfe;
}

.dev-storage-row-value {
  color: #ce9178;
}

.dev-storage-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible !important;
}

.dev-storage-row-actions button {
  padding: 3px 6px;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ccc;
  background: #303030;
  cursor: pointer;
}

.dev-storage-row-actions button:hover {
  background: #404040;
}

.dev-storage-row-actions button[data-action="delete"] {
  color: #d88;
}

.dev-application-content::-webkit-scrollbar,
.dev-application-sidebar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dev-application-content::-webkit-scrollbar-thumb,
.dev-application-sidebar::-webkit-scrollbar-thumb {
  background: #3b4049;
  border-radius: 4px;
}

.dev-application-content::-webkit-scrollbar-track,
.dev-application-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* IndexedDB */

.dev-indexeddb {
  min-width: 500px;
}

.dev-indexeddb-database {
  border-bottom: 1px solid #2d2d2d;
}

.dev-indexeddb-database-header {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  color: #ddd;
  background: #252526;
  text-align: left;
  cursor: pointer;
}

.dev-indexeddb-database-header:hover {
  background: #2d2d2d;
}

.dev-indexeddb-arrow {
  width: 12px;
  color: #858585;
  font-size: 10px;
}

.dev-indexeddb-database-name {
  flex: 1;
  color: #9cdcfe;
  font-weight: 600;
}

.dev-indexeddb-database-version {
  color: #858585;
  font-size: 11px;
}

.dev-indexeddb-stores {
  display: flex;
  flex-direction: column;
  padding: 3px 0 5px 28px;
}

.dev-indexeddb-stores.collapsed {
  display: none;
}

.dev-indexeddb-store {
  width: calc(100% - 8px);
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border: 0;
  border-radius: 3px;
  color: #ccc;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dev-indexeddb-store:hover {
  background: #303030;
}

.dev-indexeddb-store-count {
  min-width: 24px;
  padding: 1px 5px;
  border-radius: 8px;
  color: #aaa;
  background: #333;
  text-align: center;
  font-size: 11px;
}

.dev-indexeddb-record-table {
  width: 100%;
}

.dev-indexeddb-record-header,
.dev-indexeddb-record-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.7fr)
    minmax(300px, 2fr);
}

.dev-indexeddb-record-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 31px;
  align-items: center;
  border-bottom: 1px solid #333;
  color: #aaa;
  background: #252526;
  font-weight: 600;
}

.dev-indexeddb-record-row {
  min-height: 34px;
  border-bottom: 1px solid #2d2d2d;
}

.dev-indexeddb-record-row:hover {
  background: #252525;
}

.dev-indexeddb-record-header > div,
.dev-indexeddb-record-row > div {
  min-width: 0;
  padding: 7px 10px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.dev-indexeddb-record-value {
  color: #ce9178;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

/* =========================
   IndexedDB
   ========================= */

.dev-indexeddb {
  min-width: 500px;
}

.dev-indexeddb-tree {
  padding: 6px 0;
}

.dev-indexeddb-database-wrapper {
  border-bottom: 1px solid #2d2d2d;
}

.dev-indexeddb-database {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  background: #252526;
}

.dev-indexeddb-database:hover {
  background: #303030;
}

.dev-indexeddb-arrow {
  width: 12px;
  color: #aaa;
  font-size: 10px;
}

.dev-indexeddb-database-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9cdcfe;
  font-weight: 600;
}

.dev-indexeddb-version {
  color: #858585;
  font-size: 11px;
}

.dev-indexeddb-stores {
  padding: 3px 8px 7px 29px;
}

.dev-indexeddb-stores.collapsed {
  display: none;
}

.dev-indexeddb-store {
  width: 100%;
  min-height: 29px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 4px 8px;
  border: 0;
  border-radius: 3px;
  text-align: left;
  color: #ccc;
  background: transparent;
  cursor: pointer;
}

.dev-indexeddb-store:hover {
  background: #303030;
  color: #fff;
}

.dev-indexeddb-store-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-indexeddb-store-count {
  min-width: 25px;
  padding: 1px 5px;
  border-radius: 8px;
  text-align: center;
  color: #aaa;
  background: #333;
  font-size: 10px;
}

.dev-indexeddb-no-stores {
  padding: 8px;
  color: #666;
  font-size: 12px;
}

.dev-indexeddb-records {
  min-width: 500px;
}

.dev-indexeddb-record-table {
  grid-template-columns: minmax(150px, .7fr) minmax(300px, 2fr);
}

.dev-indexeddb-record-table
.dev-storage-header,
.dev-indexeddb-record-table
.dev-storage-row {
  grid-template-columns:
    minmax(150px, .7fr)
    minmax(300px, 2fr);
}

.dev-indexeddb-record-value {
  white-space: pre-wrap !important;
  overflow: auto !important;
  text-overflow: clip !important;
  max-height: 180px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 12px;
}
