/* ألوان المجلس العربي للاختصاصات الصحية الرسمية */
:root {
    --council-green: #156b68;
    --council-gold: #caa453;
}

/* تصميم مؤشر الرسائل الجديدة */
.badge.bg-danger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.badge.bg-danger i.fas.fa-envelope {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-2px);
    }
}

/* تصميم المحادثات الجديد */
.chat-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.message-header {
    margin-bottom: 0.5rem;
}

.message-content .message-bubble {
    max-width: 75%;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    position: relative;
}

/* بالونات الرسائل للمرسل */
.chat-message.text-end .message-bubble {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    margin-left: auto;
}

.chat-message.text-end .message-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #007bff;
    border-right: 0;
    margin-bottom: -8px;
    margin-right: -8px;
}

/* بالونات الرسائل للمستقبل */
.chat-message.text-start .message-bubble {
    background: white;
    border: 1px solid #dee2e6;
    color: #333;
    margin-right: auto;
}

.chat-message.text-start .message-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: white;
    border-left: 0;
    margin-bottom: -8px;
    margin-left: -8px;
}

.chat-input-area {
    background: white;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 1rem;
}

.chat-input-area .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    resize: none;
    padding: 0.75rem;
}

.chat-input-area .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* الألوان الأساسية للمجلس */
.council-green {
    color: #156b68 !important;
}

.council-gold {
    color: #caa453 !important;
}

.bg-council-green {
    background-color: #156b68 !important;
}

.bg-council-gold {
    background-color: #caa453 !important;
}

.border-council-green {
    border-color: #156b68 !important;
}

.border-council-gold {
    border-color: #caa453 !important;
}

/* تخصيص navbar */
.navbar-brand {
    color: #caa453 !important;
    font-weight: bold;
}

.navbar-brand div {
    color: #caa453 !important;
}

.navbar {
    border-bottom: 3px solid #156b68;
}

/* أزرار بألوان المجلس */
.btn-council-green {
    background-color: #156b68;
    border-color: #156b68;
    color: white;
}

.btn-council-green:hover {
    background-color: #0f5a57;
    border-color: #0f5a57;
    color: white;
}

.btn-council-gold {
    background-color: #caa453;
    border-color: #caa453;
    color: white;
}

.btn-council-gold:hover {
    background-color: #b8934a;
    border-color: #b8934a;
    color: white;
}

/* تخصيص البطاقات */
.card-council-green .card-header {
    background-color: #156b68;
    color: white;
    border-bottom: 2px solid #0f5a57;
}

.card-council-gold .card-header {
    background-color: #caa453;
    color: white;
    border-bottom: 2px solid #b8934a;
}

/* شعار المجلس */
.council-logo {
    height: 40px;
    width: auto;
}

/* Footer بألوان المجلس */
.footer {
    background-color: #156b68;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.footer a {
    color: #caa453;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* تحسين الجداول */
.table th {
    background-color: #f8f9fa;
    color: #156b68;
    border-bottom: 2px solid #156b68;
}

/* Badge بألوان المجلس */
.badge-council-green {
    background-color: #156b68;
    color: white;
}

.badge-council-gold {
    background-color: #caa453;
    color: white;
}

/* التوقيعات */
.signature-section {
    border: 2px solid #156b68;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background-color: #f8fffe;
}

.signature-box {
    border: 1px solid #caa453;
    padding: 10px;
    text-align: center;
    margin: 5px;
    background-color: white;
    border-radius: 5px;
}

/* QR Code styling */
.qr-code-section {
    text-align: center;
    padding: 20px;
    border: 2px dashed #caa453;
    background-color: #fafafa;
    border-radius: 10px;
}

/* طباعة - إخفاء العناصر غير المرغوبة */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #156b68 !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #156b68 !important;
        color: white !important;
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}
