:root {
    --bg-dark: #12141f;
    --card-bg: rgba(22, 24, 35, 0.7);
    --border-glow: rgba(140, 82, 255, 0.5);
    --border-glow-blue: rgba(0, 195, 255, 0.5);
    
    --primary-gradient: linear-gradient(90deg, #b030ff 0%, #00c3ff 100%);
    --primary-bg: #1c1e2d;
    
    --text-main: #f0f0f0;
    --text-muted: #828292;
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Background effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-orb.purple {
    width: 600px;
    height: 600px;
    background-color: #b030ff;
    top: -100px;
    left: -100px;
}

.glow-orb.blue {
    width: 500px;
    height: 500px;
    background-color: #00c3ff;
    bottom: -50px;
    right: -50px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    font-size: 0.9rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo i {
    color: #b030ff;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

nav a.active, nav a:hover {
    color: var(--text-main);
}

.user-actions a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.user-actions a:hover {
    color: var(--text-main);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 4rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--border-glow) 0%, transparent 50%, var(--border-glow-blue) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, #e2b0ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Input Field */
.input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    height: 60px;
}

.input-group::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(90deg, rgba(140,82,255,0.8), rgba(0,195,255,0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#video-url {
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    border: none;
    border-radius: 12px;
    padding: 0 50px 0 20px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

#video-url::placeholder {
    color: var(--text-muted);
}

.paste-btn, .search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.paste-btn {
    right: 60px;
}

.search-icon {
    right: 20px;
    pointer-events: none;
    color: rgba(140,82,255,0.8);
}

.paste-btn:hover {
    color: var(--text-main);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.toggle-label {
    color: var(--text-muted);
    transition: all 0.3s;
}

.toggle-label.glow-text {
    color: #00c3ff;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

.mp3-label.glow-text {
    color: #b030ff;
    text-shadow: 0 0 10px rgba(176, 48, 255, 0.5);
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    border: 2px solid #00c3ff;
    transition: .4s;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #00c3ff;
    transition: .4s;
    box-shadow: 0 0 10px #00c3ff;
}

input:checked + .slider {
    border-color: #b030ff;
}

input:checked + .slider:before {
    transform: translateX(36px);
    background-color: #b030ff;
    box-shadow: 0 0 10px #b030ff;
}

/* Action Button */
.action-container {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
}

.btn-primary, .btn-success, .status-message, .error-message {
    width: 100%;
    max-width: 300px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    position: absolute;
    top: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(176, 48, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(176, 48, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

.status-message {
    background: var(--primary-bg);
    border: 1px solid var(--border-glow);
    color: #e2b0ff;
}

.btn-success {
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.6);
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.5);
    color: #ff3b30;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
