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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    overflow: hidden;
}

.browser-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tab Bar */
.tab-bar {
    background-color: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 40px;
    border-bottom: 1px solid #404040;
}

.tabs-container {
    display: flex;
    flex: 1;
    gap: 4px;
    overflow-x: auto;
}

.tab {
    background-color: #3d3d3d;
    border: 1px solid #555;
    border-radius: 6px 6px 0 0;
    padding: 8px 16px;
    min-width: 120px;
    max-width: 200px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.tab:hover {
    background-color: #4d4d4d;
}

.tab.active {
    background-color: #1e1e1e;
    border-bottom-color: #1e1e1e;
}

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

.tab-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    font-size: 16px;
    line-height: 1;
}

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

.new-tab-btn {
    background-color: #4d4d4d;
    border: 1px solid #666;
    color: #fff;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.new-tab-btn:hover {
    background-color: #5d5d5d;
}

/* Address Bar */
.address-bar {
    background-color: #2d2d2d;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #404040;
}

#addressInput {
    flex: 1;
    background-color: #1e1e1e;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
}

#addressInput:focus {
    outline: none;
    border-color: #0078d4;
}

#goBtn {
    background-color: #0078d4;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#goBtn:hover {
    background-color: #106ebe;
}

/* Tab Content */
.tab-content {
    flex: 1;
    position: relative;
    background-color: #1e1e1e;
}

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

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

/* Status Bar */
.status-bar {
    background-color: #2d2d2d;
    padding: 4px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #404040;
}

#dnsResolver {
    font-family: monospace;
}

/* Loading Indicator */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 14px;
}

.loading-indicator::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #444;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}