/* styles.css */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Base resets & typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.brand-logo {
    display: block;
    width: clamp(86px, 12vw, 128px);
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

/* Typography utilities missing in older Tailwind versions or for specific support */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Hide spin buttons for numbers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles specific for Web Interface Guidelines */
*:focus-visible {
    outline-offset: 2px;
}

/* Multi-step Form Transitions & Selected Card/Tag custom styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Selected state for Step 1 Cards */
.interactive-card.selected-card {
    border-color: #00696b !important; /* brandPrimary */
    background-color: rgba(0, 105, 107, 0.04) !important;
    box-shadow: 0 0 0 2px rgba(0, 105, 107, 0.15) !important;
}

/* Selected state for Step 2 Tag Pills */
.interactive-card[data-tool].selected-pill {
    background-color: #00696b !important; /* brandPrimary */
    color: #ffffff !important;
    border-color: #00696b !important;
}

/* Premium Header Logo Container and Image Styling */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff !important; /* Solid white background as requested */
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important; /* Subtle shadow to integrate corporate look */
    border: 1px solid #f1f5f9 !important;
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
    border-color: #e2e8f0 !important;
}

/* Responsive Logo Image and Container Cropping */
.logo-container-responsive {
    display: block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-img-responsive {
    display: block;
    width: auto;
    max-width: none;
    transition: all 0.3s ease;
}

/* Mobile: Show logo without slogan by cropping the bottom */
@media (max-width: 639px) {
    .logo-container-responsive {
        height: 38px !important; /* Restrict height to crop slogan */
        width: 145px !important;
    }
    .logo-img-responsive {
        height: 58px !important; /* Make image taller than container */
        object-fit: cover !important;
        object-position: left top !important; /* Keeps only icon + Fluxop text */
    }
    .logo-wrapper {
        padding: 4px 8px !important;
    }
}

/* Tablet: Slightly reduced size, showing full logo */
@media (min-width: 640px) and (max-width: 1023px) {
    .logo-container-responsive {
        height: 52px !important;
        width: auto !important;
        overflow: visible !important;
    }
    .logo-img-responsive {
        height: 52px !important;
        object-fit: contain !important;
    }
    .logo-wrapper {
        padding: 5px 10px !important;
    }
}

/* Desktop: 40% - 60% larger logo (h-18 to h-20), full logo with slogan */
@media (min-width: 1024px) {
    .logo-container-responsive {
        height: 72px !important; /* 50% larger than original 48px */
        width: auto !important;
        overflow: visible !important;
    }
    .logo-img-responsive {
        height: 72px !important;
        object-fit: contain !important;
    }
    .logo-wrapper {
        padding: 6px 12px !important;
    }
}

