/* --- Main Layout & Font --- */
#aips-container {
    font-family: 'Tiro Bangla', serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    background: #fdfdfd;
    display: flex;
    min-height: 450px;
}
.aips-container-logged-out {
    font-family: 'Tiro Bangla', serif;
    border: 1px solid #d63638;
    background: #ffebe6;
    color: #551011;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

/* --- Sidebar Navigation --- */
#aips-sidebar-nav { width: 220px; background: #f1f1f1; border-right: 1px solid #ddd; padding: 15px; flex-shrink: 0; }
#aips-sidebar-nav h3 { margin-top: 0; font-size: 18px; color: #333; }
#aips-sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.aips-nav-item { padding: 10px 12px; cursor: pointer; border-radius: 4px; margin-bottom: 5px; font-size: 16px; transition: background-color 0.2s, color 0.2s; }
.aips-nav-item:hover { background-color: #e0e0e0; }
.aips-nav-item.active { background-color: #0073aa; color: white; font-weight: bold; }

/* --- Main Content Area --- */
#aips-main-content { padding: 20px; flex-grow: 1; width: calc(100% - 250px); position: relative; }

/* --- New Search Bar & Suggestions --- */
.aips-search-wrapper { position: relative; margin-bottom: 20px; }
#aips-search-bar { 
    width: 100%; 
    padding: 12px 15px 12px 40px; /* Add padding for icon */
    font-size: 16px; 
    border: 1px solid #ccc; 
    border-radius: 25px; /* Rounded corners */
    box-sizing: border-box; 
    font-family: 'Tiro Bangla', serif;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 12px center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#aips-search-bar:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

#aips-suggestions-wrapper { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; z-index: 1000; max-height: 250px; overflow-y: auto; margin-top: 5px; border-radius: 5px; }
.aips-suggestion-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #eee; }
.aips-suggestion-item:hover { background-color: #f0f0f0; }
.aips-suggestion-item strong { display: block; }
.aips-suggestion-item small { color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* --- Selected Item & Actions --- */
#aips-selected-prompts { margin-top: 10px; max-height: 500px; overflow-y: auto; padding-right: 10px;}
.aips-selected-item { background: #f9f9f9; border: 1px solid #e0e0e0; border-left: 5px solid #0073aa; border-radius: 5px; padding: 15px; margin-bottom: 12px; }

/* --- এটি টাইটেল প্যারাগ্রাফকে টার্গেট করে --- */
.aips-selected-item > p {
    color: #28a745; /* সম্পূর্ণ টাইটেলের রঙ সবুজ */
    font-size: 1.2em; /* ফন্ট সাইজ বড় করা হয়েছে */
    font-weight: bold; /* সম্পূর্ণ টাইটেল বোল্ড */
    margin: 0 0 12px 0;
}

/* --- এটি প্রম্পট প্যারাগ্রাফকে টার্গেট করে --- */
.aips-selected-item .prompt-text-wrapper p {
    color: #333; /* স্বাভাবিক কালো রঙ */
    font-size: 1em; /* স্বাভাবিক ফন্ট সাইজ */
    font-weight: normal; /* স্বাভাবিক ফন্ট ওয়েট */
    margin: 0 0 8px 0;
}
.aips-selected-item .prompt-text-wrapper p strong {
    font-weight: bold; /* শুধু "প্রম্পট:" লেখাটি বোল্ড থাকবে */
}

.prompt-text-wrapper { margin-top: 8px; }

.aips-item-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: flex-end; /* Aligns buttons to the right */
}
.aips-btn { background: #0073aa; color: white; border: none; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 14px; transition: opacity 0.2s; }
.aips-btn:hover { opacity: 0.85; }
.aips-remove-btn { background: #d63638; }
.aips-fav-btn { background: #6c757d; font-size: 14px; padding: 3px 8px; }
.aips-fav-btn.is-favorite { background: #ffc107; color: #333; }
#aips-copy-all-btn { background: #28a745; color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; margin-top: 10px; width: 100%; }

/* --- UI States --- */
.aips-loader, .aips-no-results, .aips-error, .aips-initial-message { text-align: center; padding: 40px 20px; color: #777; font-size: 16px; }
.aips-error { color: #d63638; }