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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

.gradient-bg {
    background: #000000;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.aura-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: auraFloat 15s ease-in-out infinite;
}

.aura-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.6), transparent);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.aura-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.5), transparent);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.aura-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.4), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes auraFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(100px, -100px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, 100px) scale(0.9);
        opacity: 0.5;
    }

    75% {
        transform: translate(150px, 50px) scale(1.1);
        opacity: 0.7;
    }
}

.glass {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(138, 43, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Make Clear All button dark text in light mode */
[data-theme="light"] .btn-secondary {
    color: #3d454fce;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.input-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Fix input text color in light mode */
[data-theme="light"] .input-glass {
    color: #1f2937;
}

[data-theme="light"] .input-glass::placeholder {
    color: #6b7280;
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #8b7af5;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25),
        0 4px 16px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(102, 126, 234, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6),
            0 8px 24px rgba(102, 126, 234, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.neon-text {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 30px rgba(102, 126, 234, 0.4);
}

.logo-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.9));
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6),
        0 0 40px rgba(138, 43, 226, 0.4),
        0 0 60px rgba(138, 43, 226, 0.3);
    animation: heroGlow 3s ease-in-out infinite;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

[data-theme="light"] .hero-title {
    color: #7c3aed;
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.4),
        0 0 30px rgba(124, 58, 237, 0.3),
        0 0 45px rgba(124, 58, 237, 0.2);
}

@keyframes heroGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.6),
            0 0 40px rgba(138, 43, 226, 0.4),
            0 0 60px rgba(138, 43, 226, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(138, 43, 226, 0.8),
            0 0 60px rgba(138, 43, 226, 0.6),
            0 0 90px rgba(138, 43, 226, 0.4);
    }
}

[data-theme="light"] .hero-title {
    animation: heroGlowLight 3s ease-in-out infinite;
}

@keyframes heroGlowLight {

    0%,
    100% {
        text-shadow: 0 0 6px rgba(124, 58, 237, 0.25),
            0 0 12px rgba(124, 58, 237, 0.15);
    }

    50% {
        text-shadow: 0 0 10px rgba(124, 58, 237, 0.3),
            0 0 20px rgba(124, 58, 237, 0.2);
    }
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-subtitle {
    color: #9c69f4e7 !important;
    -webkit-text-fill-color: #9c63ff !important;
}

.feature-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.7;
    animation: cardAura 3s ease-in-out infinite;
}

.feature-card:nth-child(1)::before {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.8), transparent);
    top: -50px;
    left: -50px;
}

.feature-card:nth-child(2)::before {
    background: radial-gradient(circle, rgba(0, 191, 255, 0.8), transparent);
    top: -50px;
    right: -50px;
}

.feature-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.8), transparent);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes cardAura {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.2);
    }
}

.feature-card-content {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footerGlow 3s ease-in-out infinite;
    letter-spacing: 0.05em;
}

@keyframes footerGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(118, 75, 162, 0.8));
        opacity: 1;
    }
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    margin: 0 auto 1.5rem auto;
    animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@media (max-width: 768px) {
    .aura-light {
        width: 300px !important;
        height: 300px !important;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

@import "https://unpkg.com/open-props/easings.min.css";

:root {
    --bg-primary: #000000;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.1);
    --icon-fill: #a78bfa;
    --icon-fill-hover: #c4b5fd;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-glass-strong: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(255, 255, 255, 0.8);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-glass: rgba(0, 0, 0, 0.1);
    --icon-fill: #7c3aed;
    --icon-fill-hover: #6d28d9;
}

/* Update existing classes to use CSS variables */
.gradient-bg {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

[data-theme="light"] .aura-light {
    opacity: 0.3;
}

.glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

[data-theme="light"] .glass {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-strong {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.input-glass {
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.input-glass::placeholder {
    color: var(--text-tertiary);
}

.text-muted {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

[data-theme="light"] .text-muted {
    color: #7c3aed;
}

.label-text {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.result-label {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.short-url-display {
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

[data-theme="light"] .short-url-display {
    background: rgba(0, 0, 0, 0.05);
}

.btn-text {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card h3,
.feature-card p {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card p {
    color: var(--text-secondary);
}

[data-theme="light"] .footer-text {
    color: #6d28d9;
}

/* Theme Toggle Styles */
.theme-toggle {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--bg-glass-strong);
    transform: scale(1.05);
}

.sun-and-moon> :is(.moon, .sun, .sun-beams) {
    transform-origin: center;
}

.sun-and-moon> :is(.moon, .sun) {
    fill: var(--icon-fill);
}

.theme-toggle:is(:hover, :focus-visible)>.sun-and-moon> :is(.moon, .sun) {
    fill: var(--icon-fill-hover);
}

.sun-and-moon>.sun-beams {
    stroke: var(--icon-fill);
    stroke-width: 2px;
}

.theme-toggle:is(:hover, :focus-visible) .sun-and-moon>.sun-beams {
    stroke: var(--icon-fill-hover);
}

[data-theme="dark"] .sun-and-moon>.sun {
    transform: scale(1.75);
}

[data-theme="dark"] .sun-and-moon>.sun-beams {
    opacity: 0;
}

[data-theme="dark"] .sun-and-moon>.moon>circle {
    transform: translateX(-7px);
}

@supports (cx: 1) {
    [data-theme="dark"] .sun-and-moon>.moon>circle {
        cx: 17;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .sun-and-moon>.sun {
        transition: transform .5s var(--ease-elastic-3);
    }

    .sun-and-moon>.sun-beams {
        transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
    }

    .sun-and-moon .moon>circle {
        transition: transform .25s var(--ease-out-5);
    }

    @supports (cx: 1) {
        .sun-and-moon .moon>circle {
            transition: cx .25s var(--ease-out-5);
        }
    }

    [data-theme="dark"] .sun-and-moon>.sun {
        transition-timing-function: var(--ease-3);
        transition-duration: .25s;
        transform: scale(1.75);
    }

    [data-theme="dark"] .sun-and-moon>.sun-beams {
        transition-duration: .15s;
        transform: rotateZ(-25deg);
    }

    [data-theme="dark"] .sun-and-moon>.moon>circle {
        transition-duration: .5s;
        transition-delay: .25s;
    }
}

/* History Section Styles */
.history-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
}

[data-theme="light"] .history-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .history-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(124, 58, 237, 0.3);
}

.history-url {
    color: var(--text-secondary);
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.4;
}

.history-short-url {
    color: #a78bfa;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Courier New', monospace;
    word-break: break-all;
}

[data-theme="light"] .history-short-url {
    color: #7c3aed;
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.history-empty {
    animation: fadeIn 0.5s ease-out;
}

/* Make the label black in light mode */
[data-theme="light"] label {
    color: #404752a8 !important;
}

/* Light mode → make result box white */
[data-theme="light"] .short-url-box {
    background: #d3d3d3e1 !important;
    border: 1px solid #d1d5db !important;
}

/* Light mode → make short URL text black */
[data-theme="light"] #shortUrl {
    color: #000000 !important;
}

/* Experiment 1 */
/* Full-screen loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader {
    width: 80px;
    height: 50px;
    position: relative;
}

.loader-text {
    position: absolute;
    top: 0;
    padding: 0;
    margin: 0;
    color: #C8B6FF;
    animation: text_713 3.5s ease both infinite;
    font-size: .8rem;
    letter-spacing: 1px;
}

.load {
    background-color: #9A79FF;
    border-radius: 50px;
    display: block;
    height: 16px;
    width: 16px;
    bottom: 0;
    position: absolute;
    transform: translateX(64px);
    animation: loading_713 3.5s ease both infinite;
}

.load::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #D1C2FF;
    border-radius: inherit;
    animation: loading2_713 3.5s ease both infinite;
}

@keyframes text_713 {
    0% {
        letter-spacing: 1px;
        transform: translateX(0px);
    }

    40% {
        letter-spacing: 2px;
        transform: translateX(26px);
    }

    80% {
        letter-spacing: 1px;
        transform: translateX(32px);
    }

    90% {
        letter-spacing: 2px;
        transform: translateX(0px);
    }

    100% {
        letter-spacing: 1px;
        transform: translateX(0px);
    }
}

@keyframes loading_713 {
    0% {
        width: 16px;
        transform: translateX(0px);
    }

    40% {
        width: 100%;
        transform: translateX(0px);
    }

    80% {
        width: 16px;
        transform: translateX(64px);
    }

    90% {
        width: 100%;
        transform: translateX(0px);
    }

    100% {
        width: 16px;
        transform: translateX(0px);
    }
}

@keyframes loading2_713 {
    0% {
        transform: translateX(0px);
        width: 16px;
    }

    40% {
        transform: translateX(0%);
        width: 80%;
    }

    80% {
        width: 100%;
        transform: translateX(0px);
    }

    90% {
        width: 80%;
        transform: translateX(15px);
    }

    100% {
        transform: translateX(0px);
        width: 16px;
    }
}

/* Error shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.error-message.show {
    display: block;
}

/* History link styles */
.history-url,
.history-short-url {
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-url:hover {
    color: #a78bfa;
}

[data-theme="light"] .history-url:hover {
    color: #7c3aed;
}

.history-short-url:hover {
    color: #c4b5fd;
}

[data-theme="light"] .history-short-url:hover {
    color: #6d28d9;
}

/* Animated Delete All Button */
.delete-all-btn {
    width: 120px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #e62222;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn .text {
    transform: translateX(24px);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn .icon {
    position: absolute;
    border-left: 1px solid #c41b1b;
    transform: translateX(88px);
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn svg {
    width: 13px;
    fill: #eee;
}

.delete-all-btn:hover {
    background: #ff3636;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.delete-all-btn:hover .text {
    color: transparent;
}

.delete-all-btn:hover .icon {
    width: 120px;
    border-left: none;
    transform: translateX(0);
}

.delete-all-btn:focus {
    outline: none;
}

.delete-all-btn:active .icon svg {
    transform: scale(0.8);
}

/* Custom Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease,
visibility 0.3s ease;
}

.confirmation-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirmation-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

[data-theme="light"] .confirmation-box {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirmation-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
}

.confirmation-icon svg {
    width: 30px;
    height: 30px;
    color: #ef4444;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .confirmation-title {
    color: #1f2937;
}

.confirmation-message {
    font-size: 0.95rem;
    color: #d1d5db;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

[data-theme="light"] .confirmation-message {
    color: #6b7280;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
}

.confirm-btn,
.cancel-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #ef4444;
    color: white;
}

.confirm-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

[data-theme="light"] .cancel-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Website Loading Screen */
#website-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#website-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* WiFi Loader Styles */
#wifi-loader {
    --background: #62abff;
    --front-color: #4f29f0;
    --back-color: #c3c8de;
    --text-color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wifi-loader svg {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wifi-loader svg circle {
    position: absolute;
    fill: none;
    stroke-width: 6px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-100deg);
    transform-origin: center;
}

#wifi-loader svg circle.back {
    stroke: var(--back-color);
}

#wifi-loader svg circle.front {
    stroke: var(--front-color);
}

#wifi-loader svg.circle-outer {
    height: 86px;
    width: 86px;
}

#wifi-loader svg.circle-outer circle {
    stroke-dasharray: 62.75 188.25;
}

#wifi-loader svg.circle-outer circle.back {
    animation: circle-outer135 1.8s ease infinite 0.3s;
}

#wifi-loader svg.circle-outer circle.front {
    animation: circle-outer135 1.8s ease infinite 0.15s;
}

#wifi-loader svg.circle-middle {
    height: 60px;
    width: 60px;
}

#wifi-loader svg.circle-middle circle {
    stroke-dasharray: 42.5 127.5;
}

#wifi-loader svg.circle-middle circle.back {
    animation: circle-middle6123 1.8s ease infinite 0.25s;
}

#wifi-loader svg.circle-middle circle.front {
    animation: circle-middle6123 1.8s ease infinite 0.1s;
}

#wifi-loader svg.circle-inner {
    height: 34px;
    width: 34px;
}

#wifi-loader svg.circle-inner circle {
    stroke-dasharray: 22 66;
}

#wifi-loader svg.circle-inner circle.back {
    animation: circle-inner162 1.8s ease infinite 0.2s;
}

#wifi-loader svg.circle-inner circle.front {
    animation: circle-inner162 1.8s ease infinite 0.05s;
}

#wifi-loader .text {
    position: absolute;
    bottom: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: lowercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
}

#wifi-loader .text::before,
#wifi-loader .text::after {
    content: attr(data-text);
}

#wifi-loader .text::before {
    color: var(--text-color);
}

#wifi-loader .text::after {
    color: var(--front-color);
    animation: text-animation76 3.6s ease infinite;
    position: absolute;
    left: 0;
}

@keyframes circle-outer135 {
    0% {
        stroke-dashoffset: 25;
    }

    25% {
        stroke-dashoffset: 0;
    }

    65% {
        stroke-dashoffset: 301;
    }

    80% {
        stroke-dashoffset: 276;
    }

    100% {
        stroke-dashoffset: 276;
    }
}

@keyframes circle-middle6123 {
    0% {
        stroke-dashoffset: 17;
    }

    25% {
        stroke-dashoffset: 0;
    }

    65% {
        stroke-dashoffset: 204;
    }

    80% {
        stroke-dashoffset: 187;
    }

    100% {
        stroke-dashoffset: 187;
    }
}

@keyframes circle-inner162 {
    0% {
        stroke-dashoffset: 9;
    }

    25% {
        stroke-dashoffset: 0;
    }

    65% {
        stroke-dashoffset: 106;
    }

    80% {
        stroke-dashoffset: 97;
    }

    100% {
        stroke-dashoffset: 97;
    }
}

@keyframes text-animation76 {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    50% {
        clip-path: inset(0);
    }

    100% {
        clip-path: inset(0 0 0 100%);
    }
}


/* Compact Delete All Button */
.delete-all-btn {
    width: 120px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: #e62222;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn .text {
    transform: translateX(24px);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn .icon {
    position: absolute;
    border-left: 1px solid #c41b1b;
    transform: translateX(88px);
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-all-btn svg {
    width: 13px;
    fill: #eee;
}

.delete-all-btn:hover {
    background: #ff3636;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.delete-all-btn:hover .text {
    color: transparent;
}

.delete-all-btn:hover .icon {
    width: 120px;
    border-left: none;
    transform: translateX(0);
}

.delete-all-btn:focus {
    outline: none;
}

.delete-all-btn:active .icon svg {
    transform: scale(0.8);
}
/* Pulse Glow Animation for Main Card */
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(102, 126, 234, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 20px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(102, 126, 234, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 40px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(138, 43, 226, 0.3);
    }
}

/* Enhanced Input Focus Effect */
#urlInput:focus {
    outline: none;
    border-color: #8b7af5;
    box-shadow: 0 0 0 4px rgba(139, 122, 245, 0.15),
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 0 30px rgba(138, 43, 226, 0.4);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* History Item Glow Effect */
.history-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(138, 43, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    border-color: rgba(139, 122, 245, 0.3);
}
