/* Browser Window */
.browser-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--window-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Browser Header */
.browser-header {
    display: flex;
    flex-direction: column;
    background-color: var(--browser-header-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Browser Tabs */
.browser-tabs {
    display: flex;
    align-items: flex-end;
    padding: 8px 8px 0 8px;
    gap: 4px;
    background-color: var(--browser-tabs-bg);
}

.browser-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--browser-header-bg);
    border-radius: 8px 8px 0 0;
    min-width: 200px;
    max-width: 240px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.browser-tab.active {
    background-color: var(--window-bg);
}

.browser-tab img {
    width: 16px;
    height: 16px;
}

.browser-tab span {
    flex: 1;
    font-size: 13px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-close:hover {
    background-color: #e8eaed;
}

.new-tab-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
}

.new-tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Browser Toolbar */
.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    padding: 8px 12px;
    background-color: var(--window-bg);
}

.browser-nav-buttons {
    display: flex;
    gap: 4px;
}

.browser-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-nav-btn:hover {
    background-color: #e8eaed;
}

.browser-address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--address-bar-bg);
    border-radius: 24px;
    border: 1px solid transparent;
}


.browser-address-bar:focus-within {
    background-color: var(--window-bg);
    border-color: var(--accent-color);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.lock-icon {
    width: 16px;
    height: 16px;
}

.browser-address-bar input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}

.browser-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-menu-btn:hover {
    background-color: #e8eaed;
}

/* Browser Content */
.browser-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--window-bg);
}

/* Google Search Page */
.google-search-page {
    padding: 20px 20px 20px 180px;
    max-width: 100%;
}

.search-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.search-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.google-logo {
    width: 92px;
    height: 30px;
}

.search-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.header-icon-btn svg {
    width: 24px;
    height: 24px;
}

.account-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 4px;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    max-width: 584px;
    gap: 12px;
}

.search-icon-left {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
}

.search-box-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn:hover {
    opacity: 0.7;
}

.search-icon-btn svg {
    width: 20px;
    height: 20px;
}

.search-submit {
    /* background-color: #f8f9fa;    */
    border-radius: 4px;
    padding: 8px;
    width: 36px;
    height: 36px;
}

.search-submit:hover {
    /* background-color: #e8eaed; */
    opacity: 0.7;
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

.search-stats {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 600px;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.result-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.result-site-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-site-name {
    font-size: 14px;
    color: #202124;
    line-height: 1.3;
}

.result-url {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.3;
}

.result-title {
    font-size: 20px;
    color: #1a0dab;
    cursor: pointer;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 2px;
}

.result-title:hover {
    text-decoration: underline;
}

.result-description {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.58;
}

.result-description strong {
    font-weight: 700;
}

/* Browser Iframe */
.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Scrollbar */
.browser-content::-webkit-scrollbar {
    width: 12px;
}

.browser-content::-webkit-scrollbar-track {
    background: transparent;
}

.browser-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
    border: 3px solid var(--window-bg);
}

.browser-content::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}