/* CSS Variables for modern design */
:root {
    --primary-purple: #8b5cf6;
    --secondary-teal: #14b8a6;
    --accent-blue: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f4ff 0%, #e6f7ff 50%, #f0fff4 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #FFFFFF;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.modern-layout {
    background: var(--bg-gradient);
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #6D28D9 0%, #7C3AED 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.brand-icon {
    background: #7c3aed ;
    color: #7c3aed;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-signup {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.2s ease !important;
}

.nav-signup:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important;
}

.user-greeting {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-logout {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

/* Hero Section */
.hero-section {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.transform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    color: #0891B2;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.auth-hero .transform-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.auth-hero .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-hero .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.gradient-text-smart {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-way {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Shortener Container */
.shortener-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Input Container */
.input-container-modern {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    gap: 8px;
}

.url-input-modern {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-dark);
    border-radius: 12px;
}

.url-input-modern::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.shorten-button-modern {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    min-width: 140px;
    justify-content: center;
}

.shorten-button-modern:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.button-icon-sparkle {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.error-toast {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
    font-size: 0.9rem;
}

.shortener-form {
    margin-bottom: 2rem;
}

.input-container {
    display: flex;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-dark);
}

.url-input::placeholder {
    color: var(--text-muted);
}

.shorten-button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.shorten-button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.button-icon {
    font-size: 1rem;
}

/* Success Toast */
.success-toast {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    animation: slideInDown 0.5s ease-out;
}

.success-icon {
    font-size: 1.25rem;
}

/* Analytics Notification */
.analytics-notification {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    animation: slideInUp 0.5s ease-out;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notification-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.95;
}

.notification-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.notification-link:hover {
    opacity: 0.8;
}

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

/* URL Validation */
.validation-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: slideInDown 0.3s ease-out;
}

.validation-message.valid {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.validation-message.invalid {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.url-input.invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.shorten-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Result Container */
.result-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.result-input-group {
    display: flex;
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.result-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    color: var(--primary-purple);
    font-weight: 600;
    font-family: 'Monaco', monospace;
}

.copy-button {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.copy-button:hover {
    background: #7c3aed;
}

.copy-button.copied {
    background: var(--secondary-teal);
}

.qr-result {
    text-align: center;
}

.qr-code-result {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Create Another Button */
.create-another-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.create-another-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.create-another-btn .button-icon {
    font-size: 1rem;
}

/* Example Transformation */
.example-transformation {
    text-align: center;
    margin-top: 2rem;
}

.example-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.example-urls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.example-long {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.example-arrow {
    color: var(--primary-purple);
    font-size: 1.2rem;
    font-weight: 600;
}

.example-short {
    color: var(--primary-purple);
    font-weight: 600;
    font-family: monospace;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Features Section */
.features-section-modern {
    padding: 6rem 2rem;
    background: white;
}

.features-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--secondary-teal);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.features-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.features-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card-modern {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon.custom-aliases {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.feature-icon.click-analytics {
    background: rgba(20, 184, 166, 0.1);
    color: var(--secondary-teal);
}

.feature-icon.qr-codes {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
}

.feature-icon.link-expiry {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card-modern p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.how-it-works-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.how-it-works-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.how-it-works-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-1 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.step-2 {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.step-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.step-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Mobile URL Cards */
.mobile-view {
    display: none; /* Hidden by default on desktop */
}

.desktop-view {
    display: block; /* Visible by default on desktop */
}

.mobile-url-cards {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.mobile-url-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.mobile-url-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mobile-card-main {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
}

.mobile-card-info {
    flex: 1;
    min-width: 0;
}

.mobile-short-url {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.mobile-short-link {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.mobile-short-link:hover {
    color: #2563eb;
}

.mobile-copy-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 4px;
    padding: 0.125rem 0.25rem;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-copy-btn:hover {
    background: #e2e8f0;
}

.mobile-original-url {
    margin-bottom: 0.375rem;
}

.mobile-original-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1.3;
    word-break: break-all;
}

.mobile-original-link:hover {
    color: #374151;
    text-decoration: underline;
}

.mobile-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #9ca3af;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.mobile-clicks {
    color: #3b82f6;
    font-weight: 500;
}

.mobile-date,
.mobile-creator {
    color: #64748b;
}

.mobile-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mobile-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.75rem;
}

.mobile-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
}

.mobile-action-btn.qr-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.mobile-action-btn.analytics-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.mobile-action-btn.delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: block !important;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 6rem 1rem 4rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-container-modern {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .shorten-button {
        justify-content: center;
    }

    .shorten-button-modern {
        justify-content: center;
        min-width: auto;
        width: 100%;
    }

    .result-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features-title,
    .how-it-works-title {
        font-size: 2.5rem;
    }

    .features-section-modern,
    .how-it-works {
        padding: 4rem 1rem;
    }

    .features-grid-modern,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card-modern,
    .step-card {
        padding: 1.5rem;
    }

    .mobile-url-cards {
        gap: 0.5rem;
    }

    .mobile-card-main {
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .mobile-short-url {
        gap: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .mobile-original-url {
        margin-bottom: 0.25rem;
    }

    .mobile-meta {
        gap: 0.5rem;
        font-size: 0.65rem;
    }

    .mobile-action-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.5rem 2rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-title,
    .how-it-works-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-signup {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        border-radius: 16px !important;
    }
}

/* Keep existing admin and auth styles */
.admin-table {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
}

/* Auth styles */
.auth-container {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInScale 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-form {
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    color: var(--primary-purple);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.label-icon {
    font-size: 1.1rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
    position: relative;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

.auth-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.auth-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.auth-switch p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.switch-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    transition: var(--transition);
    display: inline-block;
}

.switch-link:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Responsive auth styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px;
        margin: 0 15px 40px 15px;
    }

    .auth-header h2 {
        font-size: 1.7rem;
    }

    .auth-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 14px 16px;
    }
}

/* Button states */
.btn {
    background: var(--primary-purple);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: 1px solid #bbf7d0;
    animation: slideInRight 0.5s ease-out;
}

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

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: 1px solid #fecaca;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

/* Mobile Cards and other existing styles remain the same */
.desktop-cards {
    display: block;
    margin-top: 20px;
}

.desktop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.desktop-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.desktop-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.mobile-cards {
    display: none;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .desktop-cards {
        display: none;
    }

    .mobile-cards {
        display: block;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
}

/* Keep all existing mobile card styles, admin table styles, and other component styles unchanged */
/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)" opacity="0.5"><animate attributeName="opacity" values="0.5;1;0.5" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)" opacity="0.3"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="80" r="1" fill="rgba(255,255,255,0.1)" opacity="0.4"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

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

.header h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: inline-block;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInScale 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-group input[type="url"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--bg-light);
    position: relative;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
    transform: translateY(-1px);
}

.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
}

.btn-danger:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.success-message {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: none;
    box-shadow: var(--shadow);
    animation: slideInRight 0.5s ease-out;
}

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

.error-message {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: none;
    box-shadow: var(--shadow);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

.short-url-result {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--success-color);
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.short-url-result input {
    padding: 12px 16px;
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--white);
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
}

.admin-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
}

/* Simple mobile responsive design for admin tables */
@media (max-width: 768px) {
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .admin-table table {
        min-width: 800px;
    }

    /* Slightly smaller padding but keep readability */
    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    /* Sticky headers for scrolling */
    .admin-table th {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
        z-index: 10;
    }

    /* Slightly smaller QR codes */
    .qr-code {
        max-width: 80px;
    }

    /* Keep buttons readable */
    .btn-danger {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .btn-stats {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-table {
        margin: 0 -10px;
        border-radius: 0;
    }

    .admin-table table {
        min-width: 750px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .qr-code {
        max-width: 70px;
    }

    .btn-danger {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .btn-stats {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
}

/* Desktop Cards Styles */
.desktop-cards {
    display: block;
    margin-top: 20px;
}

.desktop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.desktop-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.desktop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.desktop-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.desktop-card-header {
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(103, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.desktop-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.desktop-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.desktop-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    word-break: break-all;
}

.desktop-card-title a:hover {
    text-shadow: 0 0 10px rgba(103, 126, 234, 0.3);
    transform: translateY(-1px);
}

.desktop-card-stats {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
    align-items: center;
    position: relative;
    z-index: 1;
}

.desktop-clicks {
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
}

.desktop-date {
    font-weight: 500;
    font-size: 0.7rem;
}

.desktop-card-content {
    padding: 15px;
}

.desktop-card-url {
    margin-bottom: 15px;
}

.desktop-card-url label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-card-url a {
    display: block;
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
    line-height: 1.4;
    transition: var(--transition);
    font-size: 0.8rem;
}

.desktop-card-url a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.desktop-card-creator {
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    border-radius: 8px;
    font-size: 0.75rem;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.desktop-card-creator label {
    display: inline;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(103, 126, 234, 0.1);
}

.desktop-card-qr {
    flex-shrink: 0;
}

.desktop-card-qr img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.desktop-card-qr img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.desktop-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.desktop-card-actions .btn-stats {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 28px;
    box-sizing: border-box;
}

.desktop-card-actions .btn-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.desktop-card-actions .btn-danger {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    cursor: pointer;
    min-width: 70px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.desktop-card-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.desktop-card-actions form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.desktop-card-actions span {
    font-size: 0.65rem;
    color: #888;
    font-style: italic;
}

/* Mobile Cards Styles */
.mobile-cards {
    display: none;
    margin-top: 20px;
}

/* Pagination Styles */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.pagination-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

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

.pagination-info {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .pagination-controls {
        gap: 10px;
        padding: 10px;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .desktop-cards {
        display: none;
    }

    .mobile-cards {
        display: block;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .desktop-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .desktop-card {
        margin: 0 -10px;
    }

    .desktop-card-header,
    .desktop-card-content {
        padding: 15px;
    }

    .desktop-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .desktop-card-actions {
        justify-content: center;
    }
}

.mobile-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.mobile-card.expanded {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.mobile-card-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(103, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.mobile-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.mobile-card-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.mobile-card-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mobile-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.mobile-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    word-break: break-all;
}

.mobile-card-title a:hover {
    text-shadow: 0 0 10px rgba(103, 126, 234, 0.3);
    transform: translateY(-1px);
}

.mobile-card-url {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mobile-card-url a {
    color: var(--accent-color);
    text-decoration: none;
    word-break: break-all;
    transition: var(--transition);
    font-weight: 500;
}

.mobile-card-url a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.mobile-card-summary {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    align-items: center;
}

.mobile-clicks {
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.mobile-date {
    font-weight: 500;
    font-size: 0.75rem;
}

.mobile-card-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(103, 126, 234, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-card-toggle:hover {
    background: rgba(103, 126, 234, 0.2);
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
    font-weight: bold;
}

.mobile-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

.mobile-card-content {
    padding: 15px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-top: 1px solid rgba(103, 126, 234, 0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-card-full-urls {
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.mobile-full-url {
    margin-bottom: 8px;
}

.mobile-full-url:last-child {
    margin-bottom: 0;
}

.mobile-full-url label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-full-url a {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    line-height: 1.3;
    transition: var(--transition);
}

.mobile-full-url a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.mobile-card-creator {
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(103, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-card-stat {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.mobile-card-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-card-stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-card-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-card-qr {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.mobile-card-qr img {
    max-width: 80px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mobile-card-qr img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.mobile-card-qr p {
    margin-top: 8px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.mobile-card-actions .btn-stats {
    padding: 0 20px;
    font-size: 0.8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(79, 172, 254, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
}

.mobile-card-actions .btn-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.mobile-card-actions .btn-danger {
    padding: 0 20px;
    font-size: 0.8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
    cursor: pointer;
    min-width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mobile-card-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.mobile-card-actions form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.mobile-card-actions span {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    padding: 10px 20px;
    text-align: center;
}

.interstitial {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.countdown {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 30px 0;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    color: var(--text-light);
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.ad-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.05), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.qr-code {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.qr-code:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1rem;
    }

    .form-container {
        padding: 25px;
    }

    .nav a {
        margin: 5px;
        padding: 8px 16px;
        font-size: 1rem;
    }

    .short-url-result {
        flex-direction: column;
    }

    .short-url-result input {
        width: 100%;
    }

    .admin-table {
        overflow-x: auto;
    }

    .countdown {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .form-container {
        padding: 20px;
    }

    .btn {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 10px;
    }

    .form-container {
        padding: 15px;
    }

    .short-url-result {
        padding: 15px;
        gap: 10px;
    }

    .short-url-result input {
        max-width: calc(100vw - 60px);
        min-width: 0;
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .copy-btn {
        width: 100%;
        padding: 10px 20px;
        margin-top: 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 0.9rem;
    }
}

/* Analytics Styles */
.btn-stats {
    background: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 5px;
}

.btn-stats:hover {
    background: #2980b9;
}

.stats-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.geo-stats, .device-stats {
    margin: 10px 0;
}

.geo-tag, .device-tag {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px;
}

.device-tag {
    background: #9b59b6;
}

.timeline {
    max-height: 200px;
    overflow-y: auto;
}

.visit-entry {
    padding: 10px;
    border-left: 3px solid #3498db;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
    font-size: 0.85rem;
}

.ip-info {
    color: #e74c3c;
    font-family: monospace;
}

.location-info {
    color: #27ae60;
}

.device-info {
    color: #8e44ad;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        padding: 15px;
    }
}

/* Link Details Page Styles */
.link-overview-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.link-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.link-overview-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.link-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.url-display {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.url-display label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.url-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-field input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    background: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}

.url-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
}

.copy-btn-small {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

.copy-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.original-url a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
    transition: var(--transition);
}

.original-url a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.meta-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    font-weight: 500;
}

.qr-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.qr-code-large {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.qr-code-large:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.summary-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.summary-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.big-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.summary-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.analytics-dashboard {
    margin-top: 30px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.analytics-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.analytics-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics-section {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.analytics-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    border-radius: 6px;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.stats-list {
    space-y: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 6px;
    border: 1px solid rgba(103, 126, 234, 0.1);
    transition: var(--transition);
}

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

.stat-label {
    min-width: 120px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.stat-bar {
    flex: 1;
    height: 18px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border-radius: 9px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: width 0.8s ease-out;
    border-radius: 9px;
    position: relative;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 9px 9px 0 0;
}

.stat-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.timeline-chart {
    space-y: 8px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 6px;
    border: 1px solid rgba(103, 126, 234, 0.1);
    transition: var(--transition);
}

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

.timeline-date {
    min-width: 60px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.timeline-bar {
    flex: 1;
    height: 14px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    transition: width 0.8s ease-out;
    border-radius: 7px;
    position: relative;
}

.timeline-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 7px 7px 0 0;
}

.timeline-count {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.hourly-chart {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 100px;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    border-radius: 8px;
    border: 1px solid rgba(103, 126, 234, 0.1);
    margin: 15px 0;
}

.hour-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.hour-bar {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.6s ease-out;
    position: relative;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.hour-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 2px 2px 0 0;
}

.hour-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.visits-table {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 1fr;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(103, 126, 234, 0.1);
    transition: var(--transition);
    background: var(--white);
    margin: 1px 0;
}

.table-row:hover {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8fafc 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.visit-time {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.visit-location {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.visit-ip {
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--text-light);
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.visit-browser, .visit-device {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.no-data-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.no-data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.no-data-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(103, 126, 234, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.no-data-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-data-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.share-buttons .btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design for Link Details */
@media (max-width: 768px) {
    .link-overview-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .meta-info span {
        justify-content: center;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .table-header {
        font-size: 0.8rem;
    }

    .table-row {
        padding: 12px 10px;
    }

    .table-header span,
    .table-row span {
        padding: 5px 0;
        border-bottom: 1px solid rgba(103, 126, 234, 0.1);
    }

    .table-header span:last-child,
    .table-row span:last-child {
        border-bottom: none;
    }

    .hourly-chart {
        height: 80px;
        padding: 10px;
        gap: 2px;
    }

    .hour-label {
        font-size: 0.6rem;
    }

    .analytics-card {
        padding: 20px;
    }

    .analytics-card h3 {
        font-size: 1.1rem;
    }

    .stat-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .stat-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .stat-bar {
        width: 100%;
        height: 14px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .timeline-date {
        min-width: auto;
        font-size: 0.8rem;
    }

    .timeline-bar {
        width: 100%;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .analytics-card {
        padding: 15px;
    }

    .url-field {
        flex-direction: column;
        gap: 10px;
    }

    .url-field input {
        width: 100%;
    }

    .share-buttons {
        flex-direction: column;
    }

    .link-overview-card {
        padding: 15px;
    }

    .link-info h2 {
        font-size: 1.4rem;
    }

    .url-display {
        padding: 12px;
    }

    .qr-code-large {
        width: 100px;
        height: 100px;
    }

    .big-number {
        font-size: 1.8rem;
    }

    .meta-info {
        gap: 5px;
    }

    .meta-info span {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hourly-chart {
        height: 60px;
        padding: 8px;
    }

    .hour-label {
        font-size: 0.55rem;
    }

    .no-data-card {
        padding: 25px;
    }

    .no-data-card h3 {
        font-size: 1.3rem;
    }

    .no-data-card p {
        font-size: 1rem;
    }
}

/* Auth Form Styles */
.auth-hero {
    padding: 2rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    max-width: 350px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.03), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.auth-form {
    position: relative;
    z-index: 1;
}

.auth-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 0.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.0625rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.0625rem;
    font-style: italic;
}

.auth-submit-btn {
    width: 100%;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;
}

.auth-submit-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.auth-switch {
    text-align: center;
    padding-top: 0.125rem;
    border-top: 1px solid #e2e8f0;
}

.auth-switch p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.switch-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    transition: var(--transition);
    display: inline-block;
}

.switch-link:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.success-toast {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid #bbf7d0;
    animation: slideInRight 0.5s ease-out;
    transition: opacity 0.3s ease;
}

.nav-current {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Responsive auth styles */
@media (max-width: 768px) {
    .auth-hero {
        padding: 1.5rem 1rem 1.5rem;
    }

    .auth-hero .transform-badge {
        margin-bottom: 0.75rem;
    }

    .auth-hero .hero-title {
        margin-bottom: 0.375rem;
    }

    .auth-hero .hero-subtitle {
        margin-bottom: 0.625rem;
    }

    .auth-form-container {
        padding: 1rem;
        margin: 0 1rem;
    }

    .auth-form-grid {
        gap: 0.125rem;
        margin-bottom: 0.25rem;
    }

    .form-input {
        padding: 0.375rem 0.625rem;
    }

    .form-hint {
        margin-top: 0.0625rem;
    }

    .auth-submit-btn {
        padding: 0.5rem 0.875rem;
        margin-bottom: 0.125rem;
        margin-top: 0.125rem;
    }

    .auth-switch {
        padding-top: 0.0625rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .auth-hero {
        padding: 1rem 1rem 1rem;
    }

    .auth-hero .transform-badge {
        margin-bottom: 0.5rem;
        padding: 0.125rem 0.5rem;
    }

    .auth-hero .hero-title {
        margin-bottom: 0.25rem;
    }

    .auth-hero .hero-subtitle {
        margin-bottom: 0.5rem;
    }

    .auth-form-container {
        padding: 0.75rem;
        margin: 0 0.5rem;
    }

    .auth-form-grid {
        gap: 0.0625rem;
        margin-bottom: 0.125rem;
    }

    .form-input {
        padding: 0.25rem 0.5rem;
    }

    .form-hint {
        margin-top: 0.03125rem;
    }

    .auth-submit-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 0.0625rem;
        margin-top: 0.0625rem;
    }

    .auth-switch {
        padding-top: 0.03125rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }
}

/* Dashboard Layout Styles */
.dashboard-layout {
    background: #FFFFFF;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Dashboard Navigation */
.dashboard-nav {
    background: #FFFFFF;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    height: 60px;
}

.dashboard-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #7c3aed;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-nav .nav-brand:hover {
    opacity: 0.8;
}

.dashboard-nav .brand-icon {
    background: #7c3aed;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.nav-tabs {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    margin-bottom: -1px;
}

.nav-tab:hover {
    color: #3b82f6;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.nav-tab.active {
    color: #7c3aed;
    background: white;
    border-color: #e2e8f0;
    border-bottom: 1px solid white;
    z-index: 1;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0891B2 ;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    color: #7c3aed;
    font-size: 0.875rem;
}

.logout-link {
    color: #000000;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #3b82f6;
}

.mobile-logout-link {
    display: none;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.content-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.filter-container {
    display: none;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* URL Cards */
.url-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.url-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.url-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title-section {
    flex: 1;
}

.short-url-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.short-link {
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.2s;
}

.short-link:hover {
    color: #2563eb;
}

.copy-link-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.copy-link-btn:hover {
    background: #e2e8f0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.expired {
    background: #fef3c7;
    color: #92400e;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: #64748b;
}

.action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #374151;
}

.qr-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.analytics-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.action-icon {
    font-size: 1.5rem;
}

.card-content {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.original-url {
    margin-bottom: 1rem;
}

.original-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.5;
}

.original-link:hover {
    color: #374151;
    text-decoration: underline;
}

.creator-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.875rem;
}

.creator-label {
    color: #64748b;
    margin-right: 0.5rem;
}

.anonymous-label {
    color: #9ca3af;
    margin-left: 0.5rem;
}

.card-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.stat-icon {
    font-size: 1rem;
}

.stat-value {
    font-weight: 600;
    color: #374151;
}

.stat-label {
    color: #9ca3af;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

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

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.pagination-number {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.empty-state a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Footer */
.dashboard-footer {
    border-top: 1px solid #e2e8f0;
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

/* QR Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.close:hover {
    color: #374151;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #374151;
    font-weight: 600;
}

.qr-modal-image {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-nav .nav-container {
        padding: 0.75rem 1rem;
        height: auto;
        min-height: 60px;
    }

    .nav-tabs {
        gap: 1rem;
    }

    .nav-tab {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .filter-container {
        justify-content: space-between;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .card-actions {
        justify-content: flex-end;
    }

    .card-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .modal-content {
        margin: 25% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-nav .nav-container {
        padding: 0.5rem 1rem;
        flex-direction: row;
        gap: 0.5rem;
        height: 60px;
        min-height: 60px;
    }

    .dashboard-nav .nav-brand {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .brand-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-tabs {
        gap: 0.25rem;
        flex: 1;
        justify-content: center;
    }

    .nav-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: 6px;
        margin-bottom: 0;
    }
    
    .nav-tab.active {
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-user {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .user-menu {
        display: none;
    }

    .mobile-logout-link {
        display: inline-block;
        color: #000000;
        text-decoration: none;
        font-size: 0.75rem;
        transition: color 0.2s;
        margin-left: 0.5rem;
    }

    .mobile-logout-link:hover {
        color: #3b82f6;
    }

    .nav-signup {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 16px !important;
        white-space: nowrap;
    }
}

/* Loading animation for buttons */
.btn.loading {
    pointer-events: none;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions for all interactive elements */
a, button, input, .qr-code {
    transition: var(--transition);
}

/* Focus styles for accessibility */
button:focus, input:focus, a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Features Section Styles */
.features-section {
    margin: 60px 0;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.features-container h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer Styles */
.footer {
    margin-top: 60px;
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.footer-keywords {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive adjustments for features */
@media (max-width: 768px) {
    .features-container h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .features-section {
        margin: 40px 0;
        padding: 40px 0;
    }
}

/* Mobile-specific styles for statistics section */
.statistics-section {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-card-mobile {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value-mobile {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label-mobile {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-popular-mobile {
    font-size: 1rem;
    color: var(--text-dark);
    word-break: break-word;
}

.full-width-mobile {
    width: 100%;
}

/* Further responsive adjustments */
@media (min-width: 769px) {
    .stats-grid-mobile {
        flex-direction: row; /* Restore to horizontal layout on larger screens */
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat-card-mobile {
        width: calc(50% - 10px); /* Two cards per row */
    }

    .full-width-mobile {
        width: 100%; /* Ensure full width for the "Most Popular" card */
    }
}

@media (min-width: 1200px) {
    .stat-card-mobile {
        width: auto; /* Allow cards to take their natural width on very large screens */
    }

    .stats-grid-mobile {
        flex-wrap: nowrap; /* Prevent wrapping on very large screens */
    }
}