* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow: hidden;
  background: #020617; /* Deepest Midnight Blue */
}

.browser-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  /* Shifted from purple to deep navy/midnight gradient */
  background: linear-gradient(to bottom right, #020617, #1e3a8a, #020617);
  overflow: hidden;
}

.background-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bg-blob-1 {
  top: 25%;
  left: 25%;
  /* Cobalt Blue instead of Purple */
  background: rgba(30, 64, 175, 0.3);
}

.bg-blob-2 {
  bottom: 25%;
  right: 25%;
  /* Bright Blue */
  background: rgba(59, 130, 246, 0.2);
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
}

.glass {
  backdrop-filter: blur(40px);
  /* Darker glass background for better contrast on blue */
  background: rgba(15, 23, 42, 0.4);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.tab-bar {
  margin-bottom: 8px;
  overflow: hidden;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  overflow-x: auto;
}

/* Custom Scrollbar for Dark Blue Theme */
.tabs-container::-webkit-scrollbar {
  height: 6px;
}
.tabs-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.tabs-container::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 10px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.tab.active {
  /* Active tab uses a blue accent */
  background: rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.tab-title {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  opacity: 0;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab:hover .tab-close {
  opacity: 1;
}

.tab-close:hover {
  background: rgba(239, 68, 68, 0.4); /* Red tint on close hover */
}

.add-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.add-tab-btn:hover {
  background: #2563eb; /* Blue button on hover */
  transform: scale(1.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.05);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.search-form {
  flex: 1;
}

#search-input {
  width: 100%;
  padding: 12px 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#search-input:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.content-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.tab-content {
  width: 100%;
  height: 100%;
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.welcome-content {
  text-align: center;
}

.welcome-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.welcome-title {
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
}