/* Normalize CSS to ensure consistent styling across browsers */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px; /* Default font size for scaling */
}

body {
  line-height: 1.5;
  background-color: #2B2A33;
  color: #FBFBFE;
; 
}

/* Universal element styles for consistency */
a {
  text-decoration: none;
  color: inherit;
}

img, picture, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: transparent;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: 2rem; /* Scalable font size for headings */
}

/* Default padding and box-sizing */
* {
  box-sizing: border-box;
}

/* Layout for Browser Container */
.browser {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #2B2A33;
}

/* Toolbar styling */
.toolbar {
  height: 44px;
  background: #1C1B22;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  gap: 6px;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: #52525E;
}

.nav-btn:disabled {
  color: #52525E;
  cursor: not-allowed;
}

.reload {
  font-size: 18px;
}

.reload {
  color: white;
}

/* URL Bar */
.url-bar {
  flex: 1;
  height: 36px;
  background: #42414D;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: background-color 0.2s;
}

.url-bar:hover {
  background: #52525E;
}

.secure-indicator {
  color: #2AC3A2;
  margin-right: 8px;
  font-size: 14px;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FBFBFE;
  font-size: 14px;
  outline: none;
  height: 100%;
}

/* Tabs Bar */
.tabs-bar {
  height: 40px;
  background: #1C1B22;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.tabs-container {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

/* Tab Styling */
.tab {
  min-width: 100px;
  max-width: 240px;
  height: 34px;
  background: #42414D;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 0 1 240px;
}

.tab:hover {
  background: #52525E;
}

.tab.active {
  background: #2B2A33;
  flex: 0 0 240px;
  min-width: 200px;
}

.tab-title {
  flex: 1;
  color: #FBFBFE;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-favicon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #FBFBFE;
  background: #2B2A33;
  border-radius: 3px;
}

.tab-favicon img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* Close Tab Button */
.close-tab {
  width: 20px;
  height: 20px;
  background: transparent;
  color: #FBFBFE;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s;
}

.close-tab:hover {
  background: #666;
}

/* New Tab Button */
.new-tab, .fullscreen-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #FBFBFE;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.new-tab:hover, .fullscreen-btn:hover {
  background: #52525E;
}

/* Browser Content */
.browser-content {
  flex: 1;
  background: white;
}

/* Embed Wrapper */
.embed-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.embed-wrapper .active-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.active-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Logo */
.logo {
  display: none;
}

/* Search Box */
.search-box {
  width: 100%;
  max-width: 600px;
  height: 48px;
  background: #42414D;
  border-radius: 24px;
  border: 2px solid transparent;
  padding: 0 24px;
  color: #FBFBFE;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.search-box:hover {
  background: #52525E;
}

.search-box:focus {
  border-color: #00C2FF;
  background: #52525E;
}

/* Haru Logo */
.haru-logo {
  font-size: 48px;
  color: #FF69B4;
  font-weight: bold;
  margin-bottom: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .toolbar {
    padding: 0 8px;
  }

  .tabs-bar {
    height: 36px;
  }

  .tab {
    flex: 1 1 150px;
    min-width: 120px;
  }

  .search-box {
    width: 100%;
  }

  .browser-content {
    padding: 0.5rem;

  }

  .nav-btn {
    font-size: 14px;
  }

  .url-bar {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .toolbar {
    padding: 0 4px;
  }

  .tab {
    flex: 1 1 120px;
    min-width: 100px;
  }

  .search-box {
    padding: 0 16px;
  }

  .url-bar {
    height: 30px;
  }

  .nav-btn {
    font-size: 12px;
  }
.bookmark-container a {
  color: #ffffff;
}
