/* --- Modern Rubikamp Login Experience --- */

/* کانتینر اصلی صفحه لاگین */
.login-container {
    background: #f0f4f8 !important; /* یک خاکستری-آبی بسیار ملایم برای پس‌زمینه */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh !important;
}

/* کارت اصلی لاگین */
.login-box {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 400px !important;
    padding: 2.5rem !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    height: auto !important; /* اجازه بده ارتفاع بر اساس محتوا تنظیم بشه */
    margin: 0 auto !important;
}

/* عنوان و برچسب‌ها */
.login-box label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: block;
}

/* فیلد‌های ورودی (Inputs) */
.login-box .form-control {
    background: #f8fafc !important;
    border: 2px solid #edf2f7 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    margin-bottom: 1.2rem;
}

.login-box .form-control:focus {
    border-color: #0061ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1) !important;
    outline: none;
}

/* بخش انتخاب وضعیت (Microphone/Camera) */
.present-switch {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
}

.switch-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.switch-radio:hover {
    background: rgba(0, 97, 255, 0.05);
}

.switch-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.switch-radio label {
    margin: 0 !important;
    cursor: pointer;
}

/* دکمه اتصال (Connect Button) */
#connectbutton {
    width: 100% !important;
    background: #0061ff !important;
    color: white !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.2);
}

#connectbutton:hover {
    background: #0052d9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 97, 255, 0.3);
}

#connectbutton:active {
    transform: translateY(0);
}

/* --- Rubikamp Professional Chat UI --- */

/* کل محفظه چت */
#chat {
    background-color: #ffffff !important;
    border-left: 1px solid #e2e8f0 !important;
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

/* محفظه نمایش پیام‌ها */
#box {
    padding: 20px !important;
    background-color: #f8fafc !important; /* پس‌زمینه بسیار ملایم برای تمایز با ویدیو */
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* استایل کلی حباب پیام */
.message {
    max-width: 85% !important;
    padding: 10px 14px !important;
    margin: 4px 0 !important;
    font-size: 14px !important;
    line-height: 1.5;
    position: relative;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* پیام‌های دیگران (سمت چپ) */
.message {
    background: #ffffff !important;
    color: #1e293b !important;
    border-radius: 14px 14px 14px 2px !important;
    align-self: flex-start;
}

/* پیام‌های خود من (بر اساس فرستنده - اگر کلاس متمایزی دارد) */
.message-sender {
    background: #0061ff !important;
    color: #ffffff !important;
    border-radius: 14px 14px 2px 14px !important;
    align-self: flex-end;
}

.message-sender .message-content {
    color: #ffffff !important;
}

/* هدر پیام (نام فرستنده) */
.message-header {
    font-weight: 700 !important;
    font-size: 12px !important;
    margin-bottom: 4px;
    color: #64748b;
    font-style: normal !important;
}

.message-sender .message-header {
    color: rgba(255, 255, 255, 0.9);
}

/* بخش پایین (ورودی متن) */
.reply {
    background: #ffffff !important;
    padding: 16px !important;
    border-top: 1px solid #e2e8f0;
    height: auto !important;
}

#inputform {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 24px;
    transition: all 0.2s;
}

#inputform:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px #0061ff20;
    border-color: #0061ff;
}

/* فیلد تایپ */
#input {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    max-height: 100px;
    min-height: 24px !important;
}

/* دکمه ارسال (آیکون تلگرامی) */
#inputbutton {
    background: #0061ff !important;
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 8px;
    font-size: 16px !important;
}

#inputbutton:hover {
    transform: scale(1.1);
    background: #0052d9 !important;
}

/* استایل سیستم (پیام‌های ورود و خروج) */
.message-system {
    align-self: center !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    font-size: 11px !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    padding: 4px 12px !important;
}