/* 
 * Style system for Intelliserve AI
 * Balanced high-tech innovation with enterprise reliability
 */

/* Root styling / typography imports are handled in index.html */

/* Premium Transitions for views */
.view-section {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.view-section.view-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(15px);
}

.view-section.view-enter-start {
    opacity: 0;
    transform: translateY(15px);
}

.view-section.view-leave-start {
    opacity: 0;
    transform: translateY(-15px);
}

/* Glassmorphism Styles */
.glass-panel, .glass-card, .glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 24px -6px rgba(13, 27, 62, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Card Hover effect */
.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(74, 71, 209, 0.3);
    box-shadow: 0 12px 30px -4px rgba(74, 71, 209, 0.12);
    transform: translateY(-4px);
}

/* Electric Gradients */
.electric-gradient {
    background: linear-gradient(135deg, #4a47d1 0%, #00d2ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.electric-gradient-hover:hover {
    background: linear-gradient(135deg, #3f3cbd 0%, #00bce5 100%);
}

@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Background grid patterns */
.ai-circuit-bg, .ai-node-pattern, .circuit-pattern, .bg-grid-pattern {
    background-image: radial-gradient(rgba(74, 71, 209, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.dark .ai-circuit-bg {
    background-image: radial-gradient(rgba(0, 210, 255, 0.08) 1.5px, transparent 1.5px);
}

/* Accent borders */
.accent-border {
    border-left: 4px solid #00d2ff;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce-slow {
    animation: bounceSlow 4s ease-in-out infinite;
}

/* Glow blob background details */
.glow-blob {
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .glow-blob {
    opacity: 0.15;
    mix-blend-mode: screen;
}

/* Mouse tracking hover glow card style */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(74, 71, 209, 0.06),
        transparent 40%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow-card:hover::before {
    opacity: 1;
}

/* Chat box styles */
.chat-bubble {
    max-width: 80%;
    animation: bubbleEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4a47d1;
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: .2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: .4s;
    margin-right: 0;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Step indicator logic */
.step-dot.active {
    background-color: #4a47d1;
    box-shadow: 0 0 0 4px rgba(74, 71, 209, 0.2);
}

.step-dot.completed {
    background-color: #10b981;
}

/* Custom styles for select elements in forms */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345464e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}
