/* Small, targeted RTL + Arabic overrides for the Teacher/Student portals
   and AI assistant. Kept separate from the existing theme CSS so the
   Admin panel (English/LTR) is completely unaffected. */

body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.navbar-right {
    float: left !important;
}

.panel-heading,
.panel-title,
th, td,
.breadcrumb,
label {
    text-align: right;
}

.alert.left-icon-alert {
    border-left: none;
    border-right: 4px solid #dd3d36;
}
.alert-success.left-icon-alert {
    border-right-color: #5cb85c;
}

.form-horizontal .control-label {
    text-align: right;
}

/* AI assistant chat widget */
.chat-window {
    height: 420px;
    overflow-y: auto;
    background: #f7f7f9;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 15px;
}
.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
    clear: both;
}
.chat-bubble.user {
    background: #337ab7;
    color: #fff;
    float: left;
    border-bottom-left-radius: 2px;
}
.chat-bubble.bot {
    background: #fff;
    color: #333;
    border: 1px solid #e3e3e3;
    float: right;
    border-bottom-right-radius: 2px;
}
.chat-input-row {
    margin-top: 12px;
}
.dashboard-tile {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}
.dashboard-tile .num {
    font-size: 30px;
    font-weight: bold;
    display: block;
}
