/* Browser Interface - Google-like Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #333;
    min-height: 100vh;
}

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

/* Header with Glassmorphism */
.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.85) 0%, rgba(26, 32, 44, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1.5px solid rgba(79, 172, 254, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    height: 56px;
}

.header-left .logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.75) 0%, rgba(26, 32, 44, 0.75) 100%);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(79, 172, 254, 0.3);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.user-button:hover {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.95) 100%);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    transform: scale(1.05);
}

.user-button img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-button span {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #e2e8f0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 4px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.25) 0%, rgba(0, 242, 254, 0.25) 100%);
    transform: translateX(4px);
    color: #fff;
}

.logout-btn {
    color: #d93025;
}

/* Main search area */
.search-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    width: 100%;
    text-align: center;
}

.search-logo h1 {
    font-size: 90px;
    font-weight: 400;
    color: #4285f4;
    margin-bottom: 10px;
    letter-spacing: -5px;
}

.search-subtitle {
    color: #5f6368;
    font-size: 16px;
    margin-bottom: 35px;
}

.search-box-container {
    margin-bottom: 35px;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 584px;
    margin: 0 auto 30px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 16px;
    background: white;
    transition: box-shadow 0.2s;
}

.search-box:hover {
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
}

.search-box:focus-within {
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    border-color: transparent;
}

.search-icon {
    color: #9aa0a6;
    margin-right: 12px;
    font-size: 16px;
}

#main-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.voice-search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.voice-search:hover {
    background-color: #f1f3f4;
}

.search-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.search-btn {
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
}

/* Quick Apps */
.quick-apps {
    width: 100%;
    margin-top: 50px;
}

.quick-apps h3 {
    text-align: center;
    color: #5f6368;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #5f6368;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
    border: 1px solid #dadce0;
}

.app-tile:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.app-tile.featured {
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.app-tile.featured:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.app-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.app-tile span {
    font-size: 14px;
    font-weight: 500;
}

/* Browser Interface */
.browser-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 1px solid #dadce0;
}

.browser-controls {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f3f4;
    border-bottom: 1px solid #dadce0;
    gap: 8px;
}

.control-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #5f6368;
    transition: background-color 0.2s;
}

.control-btn:hover:not(:disabled) {
    background-color: #e8eaed;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.address-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-bar {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.address-bar:focus {
    border-color: #4285f4;
}

#browser-frame {
    flex: 1;
    border: none;
    width: 100%;
}

/* Status Indicator */
.status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 12px;
    color: #5f6368;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
}

.status-dot.offline {
    background: #ea4335;
}

.status-dot.connecting {
    background: #fbbc04;
}

/* Responsive Design */
@media (max-width: 768px) {
    .browser-header {
        padding: 8px 12px;
        height: 56px;
    }
    
    .search-logo h1 {
        font-size: 60px;
        letter-spacing: -3px;
    }
    
    .search-main {
        padding: 20px 16px;
    }
    
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }
    
    .search-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .search-logo h1 {
        font-size: 48px;
    }
    
    .user-button span {
        display: none;
    }
    
    .app-tile {
        padding: 16px;
    }
    
    .app-icon {
        font-size: 24px;
    }
}
