*, 
*::before, 
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, 
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #c7ccd1;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.browser-window {
  width: 100vw;
  height: 100vh;
  background: #dfe3e8;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Title bar */

.browser-titlebar {
  height: 26px;
  background: linear-gradient(#eef2f6, #d1d5dd);
  border-bottom: 1px solid #a4a8b0;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.window-buttons {
  display: flex;
  gap: 4px;
}

.wb-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.wb-close {
  background: radial-gradient(circle at 30% 30%, #fffcfc, #e86767);
}

.wb-minimize {
  background: radial-gradient(circle at 30% 30%, #fffefa, #e8c567);
}

.wb-maximize {
  background: radial-gradient(circle at 30% 30%, #fbfffa, #6fd27b);
}

.browser-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #3b3f46;
  text-shadow: 0 1px 0 #fff;
}

/* Toolbar */

.browser-toolbar {
  height: 38px;
  background: linear-gradient(#f7f8fa, #e3e6ec);
  border-bottom: 1px solid #b3b7c0;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  gap: 6px;
}

.nav-buttons {
  display: flex;
  gap: 4px;
}

.nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid #a1a6af;
  background: linear-gradient(#ffffff, #e4e7ec);
  box-shadow: 0 1px 0 #fff inset;
  font-size: 15px;
  padding: 0;
}

.nav-btn:active {
  background: linear-gradient(#d9dde4, #ffffff);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.address-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fdfefe;
  border-radius: 2px;
  border: 1px solid #b7bcc4;
  padding: 0 4px 0 6px;
  box-shadow: 0 1px 0 #fff inset;
}

.ab-label {
  font-size: 10px;
  color: #7a7f86;
  margin-right: 4px;
}

.address-input {
  flex: 1;
  border: none;
  outline: none;
  height: 26px;
  font-size: 12px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f2228;
}

.address-input:focus {
  box-shadow: none;
}

.go-btn {
  margin-left: 4px;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 2px;
  border: 1px solid #5e7bb5;
  background: linear-gradient(#fefefe, #cdd7f0);
  box-shadow: 0 1px 0 #fff inset;
}

.go-btn:active {
  background: linear-gradient(#cdd7f0, #fefefe);
}

/* Tab bar */

.browser-tabbar {
  height: 30px;
  background: linear-gradient(#e5e8ec, #d1d4da);
  border-bottom: 1px solid #a1a5ad;
  display: flex;
  align-items: flex-end;
  padding: 0 4px;
  gap: 2px;
}

.tab {
  position: relative;
  height: 24px;
  min-width: 90px;
  max-width: 160px;
  padding: 0 8px;
  border-radius: 4px 4px 0 0;
  border: 1px solid #a3a7af;
  border-bottom: none;
  background: linear-gradient(#e5e7ec, #d4d7de);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #41454b;
  box-shadow: 0 -1px 0 #e8eaf0 inset;
}

.tab.active {
  background: #ffffff;
  box-shadow: 0 -1px 0 #ffffff inset;
  border-color: #a3a7af;
}

.tab-icon {
  flex-shrink: 0;
}

.tab-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  font-size: 10px;
  opacity: 0.6;
}

.tab-new {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  border-radius: 11px;
  border: 1px solid #a3a7af;
  background: linear-gradient(#f8f9fb, #dde1e7);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* Content */

.browser-content {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.page {
  display: none;
  flex: 1;
  flex-direction: column;
}

.page.visible {
  display: none;
}

.page-toolbar {
  height: 26px;
  background: linear-gradient(#f3f4f7, #d1d4db);
  border-bottom: 1px solid #b4b7bf;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: #3c4045;
}

.page-body {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  font-size: 13px;
  color: #22252b;
}

.browser-iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.page-body h1, 
.page-body h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.page-body p {
  margin: 0 0 10px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 4px 0;
  color: #1f4b8f;
  text-decoration: underline;
}

/* Status bar */

.browser-statusbar {
  height: 22px;
  background: linear-gradient(#f3f4f7, #d8dce3);
  border-top: 1px solid #adb1b9;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  color: #33363b;
  gap: 6px;
}

#statusText {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-zoom {
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #9fa3aa;
  background: linear-gradient(#f3f4f7, #d2d5dd);
}

/* Buttons */

button {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:focus {
  outline: none;
}

/* Mobile fit */

@media (max-width: 480px) {
  .browser-window {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}