:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2ecc71;
    --background-color: #ecf0f1;
    --text-color: #34495e;
    --text-color-transparent: #34495e85;
    --card-bg-color: #ffffff;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.dashboard-header {
    background-color: #4a69bd;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.dashboard-title {
    font-weight: 600;
    margin: 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.data-group {
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.data-group h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.data-label {
    font-weight: 500;
}

.data-value {
    font-weight: 400;
    direction: rtl;
}

.message-item {
    background-color: #f8f9fa;
    border-right: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.message-item h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.message-item p {
    margin-bottom: 0.5rem;
}

.message-item small {
    color: #6c757d;
    display: block;
}

.symbol-select-container {
    max-width: 200px;
    margin: 0 auto;
}

#symbolSelect {
    width: 100%;
}

.select2-container--default .select2-selection--single {
    border-radius: 8px;
    height: 38px;
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 8px;
    text-align: right;
}

th {
    background-color: var(--primary-color);
    color: white;
}

.data-group .data-item {
    direction: ltr;
}

.chat-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.message-item {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #007bff;
}

.message-item p {
    margin-bottom: 5px;
}

.message-item small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Add smooth scrolling to the chat container */
.chat-container {
    scroll-behavior: smooth;
}

.telegram-chat-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.chat-header {
    background-color: #5682a3;
    color: white;
    padding: 10px 15px;
}

.chat-container {
    height: 500px;
    overflow-y: auto;
    background-color: #e6ebee;
    padding: 15px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
}

.message-item {
    max-width: 80%;
    margin-bottom: 15px;
    align-self: flex-start;
}

.message-bubble {
    background-color: white;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.message-bubble h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #42a5f5;
}

.message-bubble p {
    margin-bottom: 5px;
    color: #000;
}

.message-time {
    font-size: 0.75rem;
    color: #8e8e8e;
    text-align: right;
    margin-top: 2px;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@keyframes highlightFade {
    0% {
        color: var(--text-color);
    }

    50% {
        color: var(--text-color-transparent);
    }

    100% {
        color: var(--text-color);
    }
}

.highlight-change {
    animation: highlightFade 300ms ease-out;
}

.form-label {
    font-weight: bold;
}

.tag-box {
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.tag {
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.tag-text {
    margin-right: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #dc3545;
}

#symbolSelect {
    width: 100%;
}

.select2-container {
    width: 100% !important;
}

@media (max-width: 767px) {
    .row > div {
        margin-bottom: 1rem;
    }
}

.message-bubble.symbol-specific {
    background-color: #fff3cd; /* Light yellow background */
    border: 1px solid #ffeeba; /* Light yellow border */
}