body, html {
    margin: 0;
    padding: 0;
    height: 100vh; /* Use viewport height for full screen */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack children vertically */
}

#website-frame {
    flex-grow: 1; /* Allows the iframe to take all available vertical space */
    border: none;
    width: 100%;
}

.tab-bar {
    /* No longer needs position: fixed or z-index */
    flex-shrink: 0; /* Prevents the bar from shrinking */
    height: 60px;
    width: 100%;
    background-color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    color: white;
    font-family: Arial, sans-serif;
}

.site-buttons {
    display: flex;
    gap: 10px;
}

.site-button {
    padding: 10px 15px;
    border: 1px solid #34495e;
    background-color: #34495e;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.site-button:hover, .site-button.active {
    background-color: #4e6a85;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The switch styles remain the same */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider { background-color: #2196F3; }
input:focus + .slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
