body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    overflow: hidden;
}

#browser {
    display: flex;
    flex-direction: column;
    height: 100vh;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#browser-header {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
}

#tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: none;
    border-right: 1px solid #ccc;
    background-color: #ddd;
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    background-color: #fff;
    font-weight: bold;
}

.tab-title {
    margin-right: 15px;
}

.close-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
    position: absolute;
    right: 5px;
}

#add-tab {
    padding: 10px;
    border: none;
    background-color: #f1f1f1;
    cursor: pointer;
    font-weight: bold;
}

#navigation {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #e9e9e9;
}

#navigation button {
    margin-right: 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

#address-bar-container {
    flex-grow: 1;
    position: relative;
}

#address-bar {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

#autocomplete-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

#content-area {
    flex-grow: 1;
    position: relative;
}

.content-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: none; /* Hide frames by default */
}

.content-frame.active {
    display: block; /* Show only the active frame */
}

#browser-footer {
    padding: 5px;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
    text-align: center;
}

#browser-footer a, #browser-footer button {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

/* Panel Auto-Bid */
#autobid-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: #fff;
    border-top: 2px solid #aaa;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

#autobid-panel.visible {
    transform: translateY(0);
}

#autobid-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
}

#autobid-panel-header h3 {
    margin: 0;
}

#close-autobid-panel {
    border: none;
    background: none;
    font-size: 1.5em;
    cursor: pointer;
}

#autobid-frame {
    flex-grow: 1;
    border: none;
    width: 100%;
    height: 100%;
}
