/* style.css */
:root {
    --bg-color: #121212;
    --tab-bg: #1e1e1e;
    --tab-active: #2d2d2d;
    --text-color: #e0e0e0;
    --accent: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tab Bar */
#tabs-bar {
    display: flex;
    background-color: #000;
    padding: 8px 10px 0 10px;
    gap: 5px;
    align-items: center;
    border-bottom: 1px solid #333;
}

.tab-btn {
    background-color: var(--tab-bg);
    color: #aaa;
    border: none;
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    max-width: 200px;
    transition: background 0.2s;
    font-size: 13px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
    padding-left: 32px; /* Space for favicon */
}

.tab-btn.active {
    background-color: var(--tab-active);
    color: white;
}

.tab-btn span {
    margin-left: auto;
    font-weight: bold;
    opacity: 0.5;
}

.tab-btn span:hover {
    opacity: 1;
}

#add-tab {
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    padding: 0 10px 5px 10px;
    cursor: pointer;
}

/* URL Bar Section */
#omnibox {
    background-color: var(--tab-active);
    padding: 8px 15px;
    display: flex;
    justify-content: center;
}

#url-input {
    width: 60%;
    background: #121212;
    border: 1px solid #444;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    text-align: center;
    transition: border 0.3s;
}

#url-input:focus {
    border-color: var(--accent);
}

/* Frame Container */
#frame-container {
    flex-grow: 1;
    position: relative;
    background: #fff; /* Most websites expect a white background */
}

.proxy-frame {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    
    /* Animation: Blur in, fade in, and slide up */
    animation: frameAppear 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes frameAppear {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}
