/* Minimal custom styles for Tailwind-based site */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Background grid pattern */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Mobile menu animation */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.hidden {
    display: none;
}

/* Code block styling */
.code-block {
    position: relative;
}

.code-block pre {
    overflow-x: auto;
    padding: 1rem;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block code {
    color: #a5d6ff;
    font-family: 'Courier New', Courier, monospace;
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Form focus states */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ensure form inputs are interactive */
input, select, textarea, button {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure form container is interactive */
form {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Fix for input fields */
input[type="text"],
input[type="email"],
input[type="checkbox"],
select {
    background-color: white !important;
    cursor: text;
    opacity: 1 !important;
    transform: none !important;
}

select {
    cursor: pointer;
}

input[type="checkbox"] {
    cursor: pointer;
}

/* Make sure waitlist section is always visible and interactive */
#waitlist {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

#waitlist * {
    pointer-events: auto !important;
}

/* Waitlist form inputs - Force visibility and interactivity */
#waitlist,
#waitlistForm,
#waitlistForm * {
    pointer-events: auto !important;
    user-select: auto !important;
}

#waitlistForm input[type="text"],
#waitlistForm input[type="email"],
#waitlistForm textarea,
#waitlistForm select {
    background-color: white !important;
    color: #111827 !important;
    cursor: text !important;
    opacity: 1 !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-text-fill-color: #111827 !important;
    position: relative !important;
    z-index: 1001 !important;
}

#waitlistForm input::placeholder,
#waitlistForm textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

#waitlistForm select {
    cursor: pointer !important;
}

#waitlistForm input[type="checkbox"] {
    cursor: pointer !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
}

/* Ensure input focus works */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px;
}

/* Remove any conflicting styles */
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure button is clickable */
button {
    cursor: pointer !important;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Waitlist form success animation */
.success-message {
    animation: fadeIn 0.5s ease-in;
}

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

/* Navbar shadow on scroll */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for interactive elements */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for code blocks */
.code-block pre::-webkit-scrollbar {
    height: 8px;
}

.code-block pre::-webkit-scrollbar-track {
    background: #0f172a;
}

.code-block pre::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

