/* ===================================================== */
/* IAGENT PAGE WRAPPER */
/* ===================================================== */
 
.iagent-page {
    display: flex;
    flex: 1;
    padding: 35px 0;
    background: var(--light);
}

/* ===================================================== */
/* IAGENT CONTAINER GRID */
/* ===================================================== */

.container {
    width: 95%;
    max-width: 1450px;
    margin: auto;
}
.iagent-container {
        
   display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 25px;
}

/* ===================================================== */
/* IAGENT SIDEBAR & RIGHT BOX */
/* ===================================================== */
.iagent-sidebar,
.iagent-right-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iagent-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.iagent-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.iagent-section p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.iagent-section ul {
    list-style: none;
    padding-left: 0;
}

.iagent-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    transition: 0.3s ease;
}

.iagent-section ul li:hover {
    color: var(--primary);
}

/* ===================================================== */
/* IAGENT CHAT AREA */
/* ===================================================== */
.iagent-chat {
    display: flex;
    flex-direction: column;
}

.iagent-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.iagent-message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 70%;
    line-height: 1.5;
}

.iagent-message.bot {
    background: var(--primary);
    color: #fff;
    align-self: flex-start;
}

.iagent-message.user {
    background: var(--secondary);
    color: #fff;
    align-self: flex-end;
}

/* ===================================================== */
/* IAGENT FORM */
/* ===================================================== */
.iagent-form {
    display: flex;
    gap: 10px;
}

.iagent-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.iagent-form input:focus {
    border-color: var(--primary);
}

.iagent-form button {
    padding: 14px 24px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.35s ease;
}

.iagent-form button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* ===================================================== */
/* RESPONSIVE GRID */
/* ===================================================== */
@media(max-width:1200px){
    .iagent-container {
        grid-template-columns: 1fr;
    }
    .iagent-sidebar,
    .iagent-right-box {
        display: none;
    }
}

@media(max-width:768px){
    .iagent-messages {
        height: 300px;
    }
    .iagent-form input {
        font-size: 14px;
    }
}

@media(max-width:480px){
    .iagent-messages {
        height: 250px;
    }
    .iagent-form input, .iagent-form button {
        padding: 12px;
    }
}