/* Base Styles */
html {
    scroll-behavior: auto;
}

* {
    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: #181918;
    background: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)), url(/images/bg-long-new.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* Title fonts */
h1, h2, h3, .section-title, .plan-name, .plan-price {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Stats Grid for Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #181918;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #181918;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.9rem;
    color: #181918;
    opacity: 0.8;
}

/* Glass Effects */
.glass {
    position: relative;
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(31 38 135 / 20%), inset 0 4px 20px rgba(255, 255, 255, 0.3);
}   

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

.nav-glass {
    position: relative;
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
}   

.nav-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

.dark-glass {
    position: relative;
    background: rgb(0 0 0 / 75%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(0 0 0 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(0 0 0 / 20%), inset 0 4px 20px rgb(217 217 217 / 42%);
}

.dark-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(5 5 5 / 10%);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

.dark-glass h3 {
    color: #fff !important;
}

.dark-glass li {
    color: #fff !important;
}

.dark-glass .plan-period {
    color: #fff !important;
}

.dark-glass p {
    color: #fff;
}

.dark-glass .hero-form p {
    color: #d3d3d3 !important;
}

/* Navigation */
.navbar {
    background: transparent;
    backdrop-filter: blur(3px);
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #181918;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: #181918;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ef4444;
}

.nav-links a.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* General button styles */
.btn {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Fire animation for Get Started button when scrolling */
.cta-button.fire-active {
    animation: fireGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(249, 115, 22, 0.4);
}

.cta-button.fire-active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, #f97316, #ef4444, #fbbf24);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame1 1.5s ease-in-out infinite alternate;
}

.cta-button.fire-active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: linear-gradient(to top, #fbbf24, #f97316);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame2 1.2s ease-in-out infinite alternate-reverse;
}

/* Flame particle effects */
.cta-button.fire-active .flame-particle {
    position: absolute;
    width: 2px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    animation: particleFloat 2s ease-out infinite;
}

.secondary-button {
    background: linear-gradient(135deg, #628B48 0%, #7BA05A 100%);
    color: #FFF;
    padding: 0.75rem 1.5rem;
    border: 2px solid #7BA05A;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: linear-gradient(135deg, #7BA05A 0%, #8BB06A 100%);
    border-color: #8BB06A;
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero h1 {
    font-size: 3.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: #181918;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-top: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: #181918;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.hero-form {
    padding: 2rem;
    padding-bottom: 1rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    margin-bottom: 0;
}

.active-sessions-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    transition: all 0.3s ease;
}

.active-sessions-badge.pulse {
    animation: badgePulse 0.6s ease-in-out;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }
}

.code-snippet {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d2d2d;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.code-title {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #505050;
    border-color: #666;
}

.copy-btn.copied {
    background: #059669;
    border-color: #10b981;
    color: white;
}

.copy-icon {
    font-size: 10px;
}

.code-content {
    padding: 16px;
    background: #1e1e1e;
}

.code-content code {
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #181918;
}

.hero-form p {
    font-size: 0.875rem;
    color: #e3e0e0;
    margin-bottom: 1.5rem;
    font-style: italic !important;
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #ef4444;
}

.url-input::placeholder {
    color: #9ca3af;
}

.get-code-btn {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.get-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Fire animation for Get Code button */
.get-code-btn.fire-active {
    animation: fireGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(249, 115, 22, 0.4);
}

.get-code-btn.fire-active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, #f97316, #ef4444, #fbbf24);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame1 1.5s ease-in-out infinite alternate;
}

.get-code-btn.fire-active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: linear-gradient(to top, #fbbf24, #f97316);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame2 1.2s ease-in-out infinite alternate-reverse;
}

/* Flame particle effects for Get Code button */
.get-code-btn.fire-active .flame-particle {
    position: absolute;
    width: 2px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    animation: particleFloat 2s ease-out infinite;
}

/* Fire animation keyframes */
@keyframes fireGlow {
    0% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 0 40px rgba(249, 115, 22, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 50px rgba(249, 115, 22, 0.6);
    }
}

@keyframes flame1 {
    0% {
        transform: translateX(-50%) scaleY(1) rotate(-2deg);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scaleY(1.2) rotate(2deg);
        opacity: 1;
    }
}

@keyframes flame2 {
    0% {
        transform: translateX(-50%) scaleY(1) rotate(1deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scaleY(1.1) rotate(-1deg);
        opacity: 0.9;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) translateX(var(--particle-x, 0));
        opacity: 0;
    }
}

/* Page Header */
.page-header {
    margin: 6rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #181918;
}

.page-header p {
    color: #666;
    font-size: 1.125rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #181918;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #181918;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #181918;
}

.feature-card p {
    color: #181918;
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #181918;
}

.step p {
    color: #181918;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}

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

.pricing-card {
    background-clip: padding-box;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card.featured {
    transform: scale(1.05);
}

.featured .plan-price {
    color: #ff9600 !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #181918;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.plan-period {
    color: #181918;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #181918;
}

.plan-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    color: #181918;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #181918;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2e312e;
    padding-top: 1rem;
    text-align: center;
    color: #fefefe;
}

/* Page Analysis Table */
.page-analysis-table {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-analysis-header {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-analysis-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.page-analysis-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-analysis-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

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

.page-analysis-table th,
.page-analysis-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-analysis-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #333;
}

.page-analysis-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.page-stats {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.btn {
    background: linear-gradient(45deg, #ef4444, #f97316);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Pagination Styles */
.pagination-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

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

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #495057;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.pagination-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.pagination-select {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    margin: 20px;
    padding: 0;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.modal-heatmap-section {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(31 38 135 / 20%), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
}

.modal-heatmap-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.modal-heatmap-header h3 {
    margin: 0 0 0.5rem 0;
    color: #181918;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-heatmap-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #181918;
    opacity: 0.8;
    flex: 1;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.list-btn,
.settings-btn,
.download-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 8px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.list-btn:hover,
.settings-btn:hover,
.download-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.list-btn:active,
.settings-btn:active,
.download-btn:active {
    background: #dee2e6;
    transform: translateY(1px);
}

.stats-line-1 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-line-2 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #181918;
    opacity: 0.7;
}

.modal-heatmap-content {
    padding: 1.5rem;
    text-align: center;
}

.modal-controls-section {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(31 38 135 / 20%), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
}

.modal-controls-section h3 {
    margin: 0 0 1rem 0;
    color: #181918;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-control-group label {
    font-weight: 600;
    color: #181918;
}

.modal-control-group select,
.modal-control-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease;
}

.modal-control-group select:focus,
.modal-control-group input:focus {
    outline: none;
    border-color: #ef4444;
}

.modal-control-group select {
    min-width: 200px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Canvas and Heatmap Styles */
.canvas-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    margin: 20px 0;
    text-align: center;
    overflow: auto;
    max-width: 100%;
    min-height: 400px;
}

.canvas-wrapper {
    display: block;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.canvas-wrapper canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.canvas-wrapper img {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.canvas-container.with-screenshot {
    background: transparent;
}

.canvas-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.canvas-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.canvas-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

.canvas-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading and Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    color: #181918;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Legend and Navigation */
.legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-right {
    display: flex;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.zoom-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.zoom-info {
    font-size: 0.8rem;
    color: #181918;
    margin-right: 0.5rem;
    min-width: 40px;
    text-align: center;
}

.zoom-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.25rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.zoom-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

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

.zoom-btn:disabled:hover {
    background: #fff;
    color: #6c757d;
    border-color: #e5e7eb;
}

/* Thumbnail Tooltip Styles */
.page-url-cell {
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.thumbnail-tooltip {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 10000;
    width: 250px;
    height: 150px;
    pointer-events: none;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.thumbnail-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.thumbnail-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.thumbnail-tooltip .tooltip-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.thumbnail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.thumbnail-error {
    padding: 20px;
    color: #dc3545;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-content {
        justify-content: space-between;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo img {
        height: 55px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .form-header h3 {
        order: 2;
        text-align: center;
    }
    
    .active-sessions-badge {
        order: 1;
        align-self: center;
    }
    
    .hero-form {
        text-align: center;
    }
    
    .page-analysis-table {
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .page-analysis-table th,
    .page-analysis-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-controls-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        flex: none;
    }
}

/* Interactive Heatmap Effect */
.heatmap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

.heatmap-point {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(251, 82, 9, 0.6) 0%, rgba(251, 82, 9, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heatmapFade 3s ease-out forwards;
}

.heatmap-click {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, rgba(239, 68, 68, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: clickFade 2s ease-out forwards;
}

.heatmap-scroll {
    position: fixed;
    right: 20px;
    width: 8px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.3));
    border-radius: 4px;
    pointer-events: none;
    z-index: 1000;
}

.heatmap-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.heatmap-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
}

.heatmap-toggle.active {
}

.heatmap-toggle.inactive {
}

@keyframes heatmapFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes clickFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Mouse coordinate widget */
#widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
}

.mouse-icon-widget {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mouse-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.mouse-coord-widget {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#mouse-coords {
    display: inline-block;
    text-align: center;
    min-width: 60px;
    margin-left: 8px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.status-indicator.idle {
    background-color: #fbbf24; /* Yellow for idle */
    box-shadow: 0 0 4px rgba(251, 191, 36, 0.6);
}

.status-indicator.active {
    background-color: #3b82f6; /* Blue for active mouse movement */
}

.status-indicator.scrolling {
    background-color: #10b981; /* Green for scrolling */
}

.status-indicator.clicked {
    background-color: #ef4444; /* Red for clicked */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* User Display Styles */
.user-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ip-address {
    font-size: 0.75rem;
    color: #666;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

/* Sessions Table Styles */
.sessions-table {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(31 38 135 / 20%), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-bottom: 2rem;
}

.sessions-header {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sessions-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sessions-header .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sessions-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

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

.sessions-table th,
.sessions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.sessions-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #181918;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sessions-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.sessions-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sessions-table tr.highlighted {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444;
}

.sessions-table tr.highlighted:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

.event-type {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-type.click {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.event-type.mousemove {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.event-type.scroll {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.coordinates {
    font-family: monospace;
    font-size: 0.8rem;
    color: #181918;
    opacity: 0.8;
}

.timestamp {
    font-size: 0.8rem;
    color: #181918;
    opacity: 0.7;
}

/* Pagination Styles */
.pagination-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #181918;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.pagination-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #495057;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

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

.pagination-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border-color: #ef4444;
    color: white;
}

.pagination-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Replay Modal Styles */
.replay-modal-content {
    width: 95vw;
    height: 95vh;
    margin: 2.5vh auto;
    display: flex;
    flex-direction: column;
}

.replay-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.replay-display-section {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    scroll-behavior: smooth;
}

.replay-display-section.no-scroll {
    overflow: hidden;
}

.replay-screenshot-container {
    position: relative;
    display: inline-block;
    min-width: 100%;
    min-height: 100%;
    text-align: center;
}

.replay-screenshot-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.replay-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.replay-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.replay-cursor.click {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.5);
    transition: transform 0.2s ease;
}

/* Player Controls */
.replay-player-controls {
    background: linear-gradient(135deg, #181918 0%, #374151 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #374151;
    position: sticky;
    bottom: 0;
    z-index: 1001;
}

.player-controls-left,
.player-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-controls-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.time-display {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.progress-container {
    width: 100%;
    position: relative;
}

.progress-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-slider::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.progress-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#speedDisplay {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sessions-table {
        overflow-x: auto;
    }
    
    .sessions-table th,
    .sessions-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-controls-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        flex: none;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .replay-modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
    }
    
    .replay-display-section {
        padding: 10px;
    }
    
    .replay-player-controls {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .player-controls-left,
    .player-controls-right {
        justify-content: center;
    }
    
    .player-controls-center {
        order: -1;
        max-width: 100%;
    }
    
    .time-display {
        font-size: 0.8rem;
    }
}

/* Tracking Log Styles */
.tracking-log {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 44%);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgb(31 38 135 / 20%), inset 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
    overflow: hidden;
}

.tracking-log-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-log-header h3 {
    color: #181918;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.tracking-log-controls {
    display: flex;
    gap: 0.5rem;
}

.tracking-log-table {
    max-height: 400px;
    overflow-y: auto;
}

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

.tracking-log-table th,
.tracking-log-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.tracking-log-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #181918;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tracking-log-table tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.tracking-log-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tracking-log-table tr.highlighted {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444;
}

.tracking-log-table tr.highlighted:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

.event-type {
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-type.click {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.event-type.mousemove {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.event-type.scroll {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.coordinates {
    font-family: monospace;
    font-size: 0.8rem;
    color: #181918;
    opacity: 0.8;
}

.timestamp {
    font-size: 0.8rem;
    color: #181918;
    opacity: 0.7;
}
