* { box-sizing: border-box; }
body { margin: 0; font-family: sans-serif; }

#tabs {
  display: flex;
  align-items: center;
  background: #dcdcdc;
  padding: 6px 8px;
  overflow-x: auto;
  border-bottom: 1px solid #bbb;
}

.tab {
  background: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 6px 6px 0 0;
  padding: 6px 10px;
  margin-right: 4px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  transition: background 0.2s ease;
}

.tab .label {
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}

.tab:hover { background: #d5d5d5; }
.tab.active {
  background: #ffffff;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid white;
  box-shadow: inset 0 2px 0 #4caf50;
  z-index: 1;
}

.tab .close {
  color: #aaa;
  font-weight: bold;
  cursor: pointer;
}
.tab .close:hover { color: red; }

.tab img {
  width: 16px;
  height: 16px;
}

#add-tab {
  font-size: 20px;
  padding: 0 8px;
  cursor: pointer;
  color: #333;
  user-select: none;
}

#toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

#url-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: #ddd;
}

.progress-bar {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.3s ease;
}

.blocker {
  position: absolute;
  top: 130px;
  left: 0;
  width: 100%;
  height: calc(100vh - 130px);
  background: rgba(255,255,255,0);
  z-index: 10;
  display: none;
}

iframe {
  width: 100%;
  height: calc(100vh - 134px);
  border: none;
  z-index: 1;
  position: relative;
}
