/* Components CSS - UI Elements and Layout */

/* URL Animation Container */
.url-animation-container {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(19, 42, 42, 0.7) 0%, rgba(10, 26, 26, 0.7) 100%);
    border: 1px solid rgba(0, 229, 229, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 229, 229, 0.15);
}

.url-animation-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(64, 224, 208, 0.2), 
        rgba(0, 255, 255, 0.2), 
        rgba(72, 209, 204, 0.2), 
        rgba(64, 224, 208, 0.2));
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.url-transformation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.url-input-demo,
.url-output-demo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    min-width: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.url-input-demo {
    animation: slideInLeft 1s ease-out;
}

.url-output-demo {
    animation: slideInRight 1s ease-out 2s both;
}

.url-input-demo:hover,
.url-output-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.url-icon,
.success-icon {
    color: var(--accent);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.success-icon {
    color: #00ff88;
}

.url-long {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    opacity: 0;
    animation: typeWriter 2s ease-out 0.5s both;
}

.url-short {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
    opacity: 0;
    animation: glowIn 0.8s ease-out 2.5s both;
}

.transformation-arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 100%;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 1.5s both;
}

.arrow-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #00ff88 100%);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 8px solid #00ff88;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.arrow-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmerArrow 2s ease-in-out infinite 2s;
}

@keyframes shimmerArrow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.arrow-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
}

.particle:nth-child(1) {
    animation: particleFloat 2s ease-in-out infinite 2s;
    transform: translate(-20px, -10px);
}

.particle:nth-child(2) {
    animation: particleFloat 2s ease-in-out infinite 2.2s;
    transform: translate(-10px, 10px);
}

.particle:nth-child(3) {
    animation: particleFloat 2s ease-in-out infinite 2.4s;
    transform: translate(0px, -15px);
}

.particle:nth-child(4) {
    animation: particleFloat 2s ease-in-out infinite 2.6s;
    transform: translate(10px, 5px);
}

.particle:nth-child(5) {
    animation: particleFloat 2s ease-in-out infinite 2.8s;
    transform: translate(20px, -5px);
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

.transformation-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-size: 1.5rem;
    animation: magicSpin 2s ease-in-out infinite 2s;
}

@keyframes magicSpin {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
        opacity: 1;
    }
}

.copy-demo-btn {
    background: linear-gradient(135deg, var(--accent) 0%, #00ff88 100%);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: bounceIn 0.6s ease-out 3s both;
}

.copy-demo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Animation Keyframes - Completely New Modern Animations */
@keyframes morphInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateY(-90deg) scale(0.3);
        filter: blur(10px);
        border-radius: 50px;
    }
    50% {
        opacity: 0.7;
        transform: translateX(-20px) rotateY(-30deg) scale(0.8);
        filter: blur(3px);
        border-radius: 25px;
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
        filter: blur(0px);
        border-radius: 12px;
    }
}

@keyframes morphInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(90deg) scale(0.3);
        filter: blur(10px);
        border-radius: 50px;
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px) rotateY(30deg) scale(0.8);
        filter: blur(3px);
        border-radius: 25px;
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
        filter: blur(0px);
        border-radius: 12px;
    }
}

@keyframes liquidWave {
    0% {
        opacity: 0;
        transform: translateY(-50px) scaleX(0.1) scaleY(2);
        filter: blur(8px);
    }
    25% {
        opacity: 0.3;
        transform: translateY(-20px) scaleX(0.5) scaleY(1.5);
        filter: blur(4px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(0) scaleX(0.8) scaleY(1.2);
        filter: blur(2px);
    }
    75% {
        opacity: 0.9;
        transform: translateY(10px) scaleX(1.1) scaleY(0.9);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleX(1) scaleY(1);
        filter: blur(0px);
    }
}

@keyframes particleExplosion {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
        filter: brightness(0.5);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) rotate(72deg);
        filter: brightness(1.5);
    }
    40% {
        opacity: 0.8;
        transform: scale(1.2) rotate(144deg);
        filter: brightness(1.2);
    }
    60% {
        opacity: 0.6;
        transform: scale(1.1) rotate(216deg);
        filter: brightness(1);
    }
    80% {
        opacity: 0.9;
        transform: scale(1.05) rotate(288deg);
        filter: brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
        filter: brightness(1);
    }
}

@keyframes rippleGlow {
    0% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.8);
    }
    25% {
        opacity: 0.8;
        transform: scale(0.8);
        box-shadow: 0 0 20px 10px rgba(0, 212, 255, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 40px 20px rgba(0, 212, 255, 0.4);
    }
    75% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 60px 30px rgba(0, 212, 255, 0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 80px 40px rgba(0, 212, 255, 0.1);
    }
}

/* Enhanced Particle Effects for New Animation */
.arrow-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #00d4ff, #40e0d0);
    border-radius: 50%;
    opacity: 0;
}

.arrow-particles .particle:nth-child(1) {
    animation: particleBurst1 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.3s;
}

.arrow-particles .particle:nth-child(2) {
    animation: particleBurst2 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.5s;
}

.arrow-particles .particle:nth-child(3) {
    animation: particleBurst3 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.7s;
}

@keyframes particleBurst1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-20px, -15px) scale(1.5);
    }
    40% {
        opacity: 0.8;
        transform: translate(-35px, -25px) scale(1.2);
    }
    60% {
        opacity: 0.6;
        transform: translate(-45px, -30px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-60px, -40px) scale(0.3);
    }
}

@keyframes particleBurst2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(0, -25px) scale(1.5);
    }
    40% {
        opacity: 0.8;
        transform: translate(5px, -40px) scale(1.2);
    }
    60% {
        opacity: 0.6;
        transform: translate(10px, -50px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(15px, -65px) scale(0.3);
    }
}

@keyframes particleBurst3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(20px, -15px) scale(1.5);
    }
    40% {
        opacity: 0.8;
        transform: translate(35px, -25px) scale(1.2);
    }
    60% {
        opacity: 0.6;
        transform: translate(45px, -30px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(60px, -40px) scale(0.3);
    }
}

.transformation-arrow.animate-in {
    position: relative;
    overflow: visible;
}

.transformation-arrow.animate-in::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: energyWave 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.2s;
    z-index: -1;
}

@keyframes energyWave {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Responsive Design for URL Animation */
@media (max-width: 768px) {
    .url-transformation {
        gap: 1rem;
    }

    .url-input-demo,
    .url-output-demo {
        min-width: 250px;
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .url-long {
        font-size: 0.8rem;
    }

    .arrow-line {
        width: 60px;
    }

    .transformation-arrow {
        height: 40px;
    }
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Chart Cards */
.chart-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    max-height: 400px;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.chart-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Chart Canvas */
.chart-card canvas {
    max-height: 250px !important;
    width: 100% !important;
    height: auto !important;
}

/* Chart Container for detailed analytics */
.chart-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    min-height: 400px;
    max-height: 500px;
}

.chart-container canvas {
    max-height: 350px !important;
    width: 100% !important;
    height: auto !important;
}

/* Top Links List */
.top-links-list {
    max-height: 250px;
    overflow-y: auto;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Link Cards */
.link-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.8) 100%);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.link-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00d4ff;
    font-weight: 600;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    color: #40e0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(64, 224, 208, 0.2);
    transform: scale(1.05);
}

.link-target {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.link-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* URL Animation Container */
.url-animation-container {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.url-animation-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 229, 229, 0.2), 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 160, 160, 0.2));
    border-radius: 18px;
    z-index: -1;
    opacity: 1;
    animation: borderGlow 3s ease-in-out infinite;
}

.url-demo {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    text-align: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.url-demo-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.url-long-container,
.url-short-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); */
    padding: 0 1.5rem;
}

.url-long {
    color: var(--text-secondary);
    opacity: 0.95;
    line-height: 1.5;
    word-break: break-all;
    /* transition: all 0.4s ease; */
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.url-short {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 20px var(--aqua-glow);
    font-size: 1.3em;
    letter-spacing: 1px;
    /* transition: all 0.4s ease; */
    background: linear-gradient(135deg, #00d4ff 0%, #40e0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects for URL demo - DISABLED */
.url-animation-container:hover {
    /* border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(64, 224, 208, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.01); */
}

.url-animation-container:hover::before {
    /* opacity: 1; */
}

.url-animation-container:hover .url-short {
    /* text-shadow: 0 0 25px var(--aqua-glow);
    transform: scale(1.05); */
}

.url-animation-container:hover .url-long {
    /* color: var(--text-primary);
    opacity: 1; */
}

/* Buttons */
.cta-button {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px var(--aqua-glow),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: pulseGlow 3s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 0.5rem;
    animation: floatUp 2s ease-in-out infinite;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px var(--aqua-glow),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-login-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(88, 101, 242, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--glass-bg);
    margin: 10% auto;
    padding: 3rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--aqua-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--aqua-glow);
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 10px var(--aqua-glow);
}

/* Links Section */
.links-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 0 0 1px var(--glass-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.add-link-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 20px var(--aqua-glow),
        0 4px 20px var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Tables */
.links-table-container {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

.links-table-container::-webkit-scrollbar {
    width: 8px;
}

.links-table-container::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.links-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff 0%, #40e0d0 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.links-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #40e0d0 0%, #00d4ff 100%);
    box-shadow: 0 0 10px var(--aqua-glow);
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    position: relative;
}

.links-table th,
.links-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(64, 224, 208, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.links-table th {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(26, 26, 26, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
}

.links-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.links-table tbody tr:hover {
    background: rgba(64, 224, 208, 0.05);
    transform: translateX(4px);
}

.links-table tbody tr:hover td {
    border-bottom-color: rgba(64, 224, 208, 0.3);
}

.links-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #00d4ff 0%, #40e0d0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.links-table tbody tr:hover::before {
    opacity: 1;
}

.links-table td {
    color: var(--text-primary);
    font-size: 0.95rem;
    vertical-align: middle;
}

.links-table td:first-child {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 0 10px var(--aqua-glow);
}

.links-table td:nth-child(2) {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.links-table td:nth-child(4),
.links-table td:nth-child(5) {
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-delete {
    background: #ff4757;
    color: white;
}

.btn-stats {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #cbd5e1;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-stats:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Statistics Page */
.stats-header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stats-url {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--aqua-glow);
}

.stats-target {
    color: var(--text-secondary);
    font-size: 1rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.chart-container {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

/* URL Shortener Form */
.url-shortener-form {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(19, 42, 42, 0.7) 0%, rgba(10, 26, 26, 0.7) 100%);
    border: 1px solid rgba(0, 229, 229, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 229, 229, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 26, 26, 0.7);
    border: 1px solid rgba(0, 229, 229, 0.2);
    border-radius: 12px;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 229, 229, 0.3);
}

.input-icon {
    color: var(--accent);
    margin-left: 1rem;
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Custom Link Toggle */
.custom-link-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-label {
    position: relative;
    padding-left: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
    display: flex;
    align-items: center;
    height: 26px;
}

.toggle-label:before {
    content: '';
    position: absolute;
    left: 0;
    width: 42px;
    height: 22px;
    border-radius: 11px;
    background: rgba(26, 58, 58, 0.7);
    border: 1px solid rgba(0, 229, 229, 0.3);
    transition: all 0.3s ease;
}

.toggle-label:after {
    content: '';
    position: absolute;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.toggle-checkbox:checked + .toggle-label:before {
    background: linear-gradient(135deg, #00e5e5 0%, #00a0a0 100%);
}

.toggle-checkbox:checked + .toggle-label:after {
    left: 23px;
    background: white;
}

/* Custom Link Container */
.custom-link-container {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(10, 26, 26, 0.7);
    border: 1px solid rgba(0, 229, 229, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.domain-prefix {
    background: rgba(0, 229, 229, 0.1);
    color: var(--accent);
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    border-right: 1px solid rgba(0, 229, 229, 0.2);
}

.custom-link-input {
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .add-link-form {
        flex-direction: column;
    }

    .links-table {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .input-container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .input-icon {
        margin-left: 0;
    }

    .form-input {
        width: 100%;
        padding: 0.5rem;
    }

    #shortenButton {
        width: 100%;
        margin-top: 0.5rem;
    }
}
