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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Tab bar */
#tab-bar {
    display: flex;
    align-items: center;
    background: #16213e;
    border-bottom: 2px solid #0f3460;
    padding: 0 4px;
    height: 40px;
    gap: 2px;
}

#tabs-container {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #1a1a2e;
    border: 1px solid #0f3460;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    color: #a0a0b0;
    transition: background 0.15s, color 0.15s;
    max-width: 200px;
}

.tab:hover {
    background: #1e2a4a;
    color: #e0e0e0;
}

.tab.active {
    background: #0f3460;
    color: #ffffff;
    border-color: #e94560;
}

.tab-name {
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

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

.tab-close:hover {
    background: #e94560;
    color: white;
}

.tab-rename-input {
    background: #0a0a1a;
    border: 1px solid #e94560;
    color: #fff;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 3px;
    width: 120px;
    outline: none;
}

#add-tab-btn {
    background: #0f3460;
    color: #e94560;
    border: 1px solid #e94560;
    font-size: 18px;
    width: 32px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

#add-tab-btn:hover {
    background: #e94560;
    color: white;
}

/* URL bar */
#tab-url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
}

#tab-url-bar label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

#url-input {
    flex: 1;
    background: #0a0a1a;
    border: 1px solid #0f3460;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
    outline: none;
}

#url-input:focus {
    border-color: #e94560;
}

#update-url-btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 5px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

#update-url-btn:hover {
    background: #c73650;
}

/* Iframe container */
#iframe-container {
    position: relative;
    flex: 1;
    height: calc(100vh - 90px);
}

#iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#no-tabs-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #555;
    font-size: 18px;
}

#no-tabs-message p {
    text-align: center;
}