body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background-color: #f0f0f0;
}

#browser-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#tab-bar {
    display: flex;
    background-color: #ddd;
    padding: 5px 5px 0 5px;
    border-bottom: 1px solid #ccc;
    overflow-x: auto;
}

.tab {
    padding: 8px 15px;
    background-color: #ccc;
    border: 1px solid #aaa;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 100px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    z-index: 1;
}

.tab-close {
    margin-left: auto;
    padding-left: 10px;
    font-weight: bold;
    color: #666;
}

.tab-close:hover {
    color: red;
}

#add-tab-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

#nav-bar {
    display: flex;
    padding: 8px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    align-items: center;
    gap: 5px;
}

#nav-bar button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#nav-bar button:hover {
    background-color: #e9e9e9;
}

#url-bar {
    flex-grow: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

#content-area {
    flex-grow: 1;
    position: relative;
    background-color: #fff;
}

iframe.view {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    background-color: #fff;
}

iframe.view.active {
    display: block;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
}