/* Custom styles to match the template */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA; /* Light mode background */
    color: #1E293B; /* Light mode text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body {
    background-color: #040220;
    color: #ffffff; /* Base text color for dark mode */
}

/* Ensure all primary text is bright white in dark mode for readability */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6,
.dark a,
.dark summary,
.dark label,
.dark .font-bold {
    color: #ffffff;
}

/* Use a slightly softer white for paragraph text to reduce eye strain */
.dark p, .dark span, .dark li {
    color: #E5E7EB;
}


.gradient-text {
    background: linear-gradient(90deg, #FF4F80, #AC4DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Styles */
.main-header {
    position: sticky;
}
.subpage-header {
    position: static;
}

/* Hero Section */
.hero-bg {
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(to bottom, #F8F9FA, #E9ECEF);
    background-repeat: repeat, no-repeat;
    background-position: center;
}

.dark .hero-bg {
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(to bottom, #040220, #0B082D);
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease-in-out;
}

.dark .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Testimonials */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
}

.dark .testimonial-card {
    background: #0B082D;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Call to Action */
.cta-bg {
     background: linear-gradient(90deg, #F8F9FA, #E9ECEF);
}

.dark .cta-bg {
    background: linear-gradient(90deg, #040220, #0B082D);
}

/* FAQ */
.faq-item {
     border-bottom: 1px solid #E5E7EB;
}

.dark .faq-item {
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

details > summary { 
    list-style: none; 
}

details > summary::-webkit-details-marker { 
    display: none; 
}

/* Tool Page Specific Styles */
textarea, input[type="text"], input[type="number"], .output-div, pre {
    font-family: monospace;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #1E293B;
}

.dark textarea, .dark input[type="text"], .dark input[type="number"], .dark .output-div, .dark pre {
    background-color: #0B082D;
    border-color: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
}

.upload-box { 
    border: 2px dashed #9CA3AF; 
}
.dark .upload-box { 
    border-color: #4B5563; 
}

.stat-card { 
    background: #FFFFFF; 
    border: 1px solid #E5E7EB; 
}
.dark .stat-card { 
    background: #0B082D; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Custom Overrides */
.dark header {
    background-color: #020111 !important;
}

.dark footer {
    background-color: #020111 !important;
}

footer .flex {
    display: none;
}
