@font-face {
    font-family: 'Yekan';
    src: url('/static/fonts/Yekan.ttf') format('truetype');
}

body {
    font-family: 'Yekan', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
    direction: rtl;  /* راست‌چین */
    text-align: right;  /* راست‌چین */
}

header {
    background-color: #6C63FF;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
}

header h1 {
    margin: 0;
}

header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #FFC371;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;  /* مرکز‌چین */
}

main {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;  /* مرکز‌چین */
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;  /* مرکز‌چین */
}

label {
    font-size: 1.2em;
    margin-bottom: 5px;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 80%;  /* اندازه بزرگتر */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead {
    background-color: #6C63FF;
    color: white;
}

th, td {
    padding: 10px;
    text-align: center;  /* مرکز‌چین */
    border-bottom: 1px solid #f0f0f0;
}

th {
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

button, .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #6C63FF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

button:hover, .btn-primary:hover {
    background-color: #574B90;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress {
    height: 30px;
    background-color: #6C63FF;
    text-align: center;
    color: white;
    line-height: 30px;
    font-weight: bold;
}

.icon {
    color: #FFC371;
    margin-left: 15px;  /* تغییر جهت فاصله برای راست‌چین */
    margin-right: 0;
}

.details p {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    margin: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.message {
    color: #FF0000;  /* رنگ قرمز برای پیام‌های خطا */
}

.music-info {
    text-align: center;
    margin: 20px 0;
}

.cover-image, .video-thumbnail {
    width: 300px;  /* اندازه بزرگ‌تر */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.chat-box, .video-info {
    margin: 20px 0;
    text-align: left;  /* چپ‌چین برای پیام‌ها */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.user-message, .response-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.user-message {
    background-color: #e1f5fe;
    border: 1px solid #81d4fa;
}

.response-message {
    background-color: #fff9c4;
    border: 1px solid #fff176;
}

.signature {
    font-style: italic;
    font-size: 1em;
    color: #6C63FF;
    margin-top: 20px;
    text-align: center;  /* مرکز‌چین */
    margin-bottom: 0;
}

footer {
    background-color: #6C63FF;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #FFC371;
}

audio {
    width: 100%;
    margin: 20px 0;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

audio::-webkit-media-controls-panel {
    background-color: #6C63FF;
    color: white;
    border-radius: 5px;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    background-color: #574B90;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: white;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button, .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #6C63FF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

button:hover, .btn-primary:hover {
    background-color: #574B90;
}
