@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --sidebar-width: 60px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-left: calc(var(--sidebar-width) + 2rem);
    transition: opacity 0.3s ease;
}

.container.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.hero-section {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}


      .title-gradient {
            background:#a855f7;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: textglow 3s ease-in-out infinite alternate;
        }





.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c084fc;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

#uv-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

#uv-address {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(147, 51, 234, 0.5);
    background: rgba(10, 0, 21, 0.7);
    color: white;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#uv-address:focus {
    border-color: #5e00c9;
    box-shadow: 0 0 20px rgba(162, 0, 255, 0.4);
}

#uv-address::placeholder {
    color: rgba(192, 132, 252, 0.5);
}

.desc {
    margin-top: 1rem;
    color: #ff6b6b;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.icon-grid img {
    width: 80px;
    height: 80px;
    padding: 15px;
    background: linear-gradient(-135deg, #a855f7, #9333ea);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-grid img:hover {
    box-shadow: 0px 0px 20px #a855f7;
    transform: scale(1.1);
}

/* Proxy Container */
.proxy-container {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    z-index: 10000;
    background: #000000;
}

.proxy-container.active {
    display: flex;
}

/* Tab Bar - Now at the top */
.tab-bar {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    height: 42px;
    padding: 0 8px;
    gap: 6px;
    order: 1;
}

.tabs-container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    flex-shrink: 1;
    align-items: center;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 160px;
    max-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.2);
}

.tab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 3px;
}

.tab-title {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e5e5e5;
}

.tab-close {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.tab-close:hover {
    background: rgba(239, 68, 68, 0.3);
    opacity: 1;
}

.tab-close svg {
    width: 10px;
    height: 10px;
    stroke: #ffffff;
}

.new-tab-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.new-tab-btn:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transform: scale(1.05);
}

.new-tab-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
}


.top-bar {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    height: 56px;
    padding: 0 16px;
    gap: 12px;
    order: 2;
}

.nav-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.refresh-btn svg {
    transition: transform 0.5s ease;
}

.refresh-btn:active svg {
    transform: rotate(360deg);
}

.url-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 0 18px;
    height: 40px;
    margin: 0 12px;
    transition: all 0.3s ease;
}

.url-bar-container:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.url-bar {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.url-bar::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.right-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.iframe-wrapper {
    flex: 1;
    position: relative;
    background: white;
    order: 3;
}

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

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

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

@media (max-width: 768px) {
    .tab {
        min-width: 120px;
        max-width: 150px;
        padding: 5px 10px;
    }
    
    .tab-title {
        font-size: 11px;
    }
    
    .url-bar-container {
        margin: 0 8px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
}