/* ==========================================================
   ENABLEX AI ASSISTANT
   ai-assistant.css
========================================================== */


/* ========================================
   MAIN CONTAINER
======================================== */

.ai-container{

width:min(1400px,92%);

margin:60px auto;

}



/* ========================================
   AI HEADER
======================================== */

.ai-header{

text-align:center;

max-width:950px;

margin:0 auto 60px;

}


.ai-header h1{

font-size:3.8rem;

margin:25px 0;

}


.ai-header h1 span{

background:

linear-gradient(
90deg,
#2EC5FF,
#6C63FF,
#18D89E
);

-webkit-background-clip:text;

color:transparent;

}


.ai-header p{

color:var(--text-light);

font-size:1.15rem;

line-height:1.8;

}



/* ========================================
   WORKSPACE
======================================== */

.ai-workspace{

display:grid;

grid-template-columns:

2fr 1fr;

gap:30px;

}



/* ========================================
   CHAT PANEL
======================================== */

.chat-panel{

height:700px;

display:flex;

flex-direction:column;

background:

rgba(255,255,255,.06);

border:

1px solid rgba(255,255,255,.12);

border-radius:30px;

overflow:hidden;

backdrop-filter:blur(20px);

}



.chat-header{

padding:25px 30px;

display:flex;

justify-content:space-between;

align-items:center;

border-bottom:

1px solid rgba(255,255,255,.1);

}



.chat-header h2{

font-size:1.3rem;

}



.status{

color:#18D89E;

font-weight:700;

}



/* ========================================
   MESSAGES
======================================== */

.chat-messages{

flex:1;

padding:30px;

overflow-y:auto;

display:flex;

flex-direction:column;

gap:20px;

}



.message{

max-width:75%;

padding:18px 22px;

border-radius:22px;

line-height:1.6;

}



.ai-message{

background:

rgba(46,197,255,.12);

border:

1px solid rgba(46,197,255,.2);

align-self:flex-start;

}



.user-message{

background:

rgba(108,99,255,.25);

align-self:flex-end;

}



/* ========================================
   INPUT
======================================== */

.chat-input{

display:flex;

gap:15px;

padding:20px;

border-top:

1px solid rgba(255,255,255,.1);

}



.chat-input input{

flex:1;

padding:18px 22px;

border-radius:18px;

background:

rgba(255,255,255,.06);

border:

1px solid rgba(255,255,255,.12);

color:white;

outline:none;

}



/* ========================================
   SIDEBAR
======================================== */

.ai-sidebar{

display:flex;

flex-direction:column;

gap:25px;

}



.prompt-card,
.insight-card{

padding:30px;

border-radius:25px;

background:

rgba(255,255,255,.06);

border:

1px solid rgba(255,255,255,.1);

}



.prompt-card h3,
.insight-card h3{

margin-bottom:20px;

}



.prompt-card button{

width:100%;

padding:15px;

margin-bottom:12px;

border-radius:14px;

border:

1px solid rgba(255,255,255,.1);

background:

rgba(255,255,255,.05);

color:white;

cursor:pointer;

transition:.3s;

}



.prompt-card button:hover{

background:

rgba(46,197,255,.15);

transform:translateX(5px);

}



/* ========================================
   INSIGHTS
======================================== */

.insight-card div{

display:flex;

justify-content:space-between;

padding:15px 0;

border-bottom:

1px solid rgba(255,255,255,.08);

}



.insight-card strong{

color:#18D89E;

}



/* ========================================
   FEATURES
======================================== */

.ai-features{

margin-top:70px;

}



.ai-feature-grid{

display:grid;

grid-template-columns:

repeat(3,1fr);

gap:25px;

}



.ai-feature-grid div{

padding:30px;

border-radius:25px;

background:

rgba(255,255,255,.05);

border:

1px solid rgba(255,255,255,.1);

}



.ai-feature-grid p{

color:var(--text-light);

line-height:1.7;

}



/* ========================================
   RESPONSIVE
======================================== */

@media(max-width:1000px){


.ai-workspace{

grid-template-columns:1fr;

}


.ai-feature-grid{

grid-template-columns:1fr;

}


}



@media(max-width:700px){


.ai-header h1{

font-size:2.4rem;

}



.chat-panel{

height:600px;

}



.message{

max-width:90%;

}


}
/* ========================================
   AI TYPING INDICATOR
======================================== */


#aiTyping{

opacity:.8;

font-style:italic;

animation:pulseAI 1.2s infinite;

}



@keyframes pulseAI{


0%{

opacity:.4;

}


50%{

opacity:1;

}


100%{

opacity:.4;

}


}
