@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakhFaNum-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan Bakh';
    src: url('../fonts/YekanBakhFaNum-ExtraBold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Yekan Bakh', 'Tahoma', sans-serif;
}

body {
    background-color: #f5f7fa;
    direction: rtl;
    text-align: right;
}

/* Chat-like interface */
.chat-container {
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message {
    display: flex;
    margin-bottom: 20px;
}

.message.customer {
    justify-content: flex-start;
}

.message.admin {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.message.customer .message-bubble {
    background-color: #e9ecef;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message.admin .message-bubble {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    margin-top: 5px;
    color: #6c757d;
}

.message.admin .message-meta {
    color: rgba(255,255,255,0.8);
}

/* Ticket list */
.ticket-item {
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}

/* Recording button */
.btn-record {
    transition: all 0.2s;
}

.btn-record.recording {
    background-color: #dc3545;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Attachment preview */
.attachment-preview {
    display: inline-block;
    margin: 5px;
    position: relative;
}

.attachment-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-attachment {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}