/* Chat Card */
#talha-ai-chat .chat-card {
    max-width: 900px;
    margin: 0 auto;
    background: #0f172a;
    border-radius: 22px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 650px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: relative;
}

.chat-header .chat-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ef4444;
}

.chat-header .chat-title {
    font-size: 20px;
    font-weight: bold;
    color: #ef4444;
}

.chat-header .chat-status {
    position: absolute;
    right: 20px;
    font-size: 13px;
    color: #10b981;
}

/* Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0f172a;
    scroll-behavior: smooth;
}

.message {
    max-width: 70%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 15px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.user {
    background: #ef4444;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot {
    background: #1e3a8a;
    color: #fff;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* Typing animation */
.bot.typing::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,50%,100% { opacity: 0; }
    25%,75% { opacity: 1; }
}

/* Input area */
.chat-input-area {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid #334155;
    background: #1e293b;
    gap: 10px;
}

.chat-input-area textarea {
    flex: 1;
    padding: 12px 15px;
    border-radius: 12px;
    border: none;
    background: #0f172a;
    color: white;
    resize: none;
    min-height: 50px;
}

.chat-input-area textarea:focus {
    outline: 2px solid #ef4444;
}

.chat-input-area button {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: #ef4444;
    color: white;
    cursor: pointer;
}

.chat-input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #ef4444;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-card { height: 600px; }
    .chat-header .chat-title { font-size: 18px; }
    .chat-header .chat-status { font-size: 12px; }
    .message { font-size: 14px; }
}
/*** Courses Start ***/
.courses {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(12, 24, 68, 0.7), rgba(12, 24, 68, 0.7)), url(../images/proje9.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
