/* ========== استایل‌های پنل کاربری گیاه‌یار ========== */
.giaahyaar-user-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
}

.giaahyaar-section-title {
    margin-bottom: 20px;
    color: #2d6a4f;
}

/* ------- کارت تیکت در لیست ------- */
.ticket-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.ticket-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ticket-id {
    font-weight: bold;
    color: #1b4332;
    font-size: 1.1em;
}
.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #fff;
    font-weight: 500;
}
.status-open        { background-color: #f4a261; }  /* نارنجی */
.status-in_progress { background-color: #457b9d; }  /* آبی */
.status-resolved    { background-color: #2a9d8f; }  /* سبز */
.status-closed      { background-color: #6c757d; }  /* خاکستری */

.ticket-excerpt {
    color: #555;
    margin-bottom: 10px;
}

.ticket-meta {
    color: #888;
    font-size: 0.9em;
}

.ticket-card-footer {
    margin-top: 15px;
    text-align: left;
}

.giaahyaar-btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: #2d6a4f;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}
.giaahyaar-btn:hover {
    background-color: #1b4332;
    color: #fff;
}

/* ------- جزئیات تیکت ------- */
.giaahyaar-back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #2d6a4f;
    text-decoration: none;
}

.ticket-detail-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticket-detail-id {
    margin: 0;
    color: #1b4332;
}

.ticket-detail-info {
    margin-bottom: 20px;
}
.info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}
.info-label {
    font-weight: bold;
    min-width: 100px;
}

.ticket-description-box h4,
.ticket-media-gallery h4 {
    color: #2d6a4f;
    margin-bottom: 10px;
}

.description-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

/* گالری */
.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-item {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-item.video-item {
    width: 200px;
    height: auto;
}
.media-item.video-item video {
    width: 100%;
    height: auto;
}

/* گفتگو */
.ticket-conversation {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 20px;
}

.chat-message {
    margin-bottom: 15px;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
    background: #f1f1f1;
}

.doctor-message .message-bubble {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.user-message .message-bubble {
    background: #e8f5e9;
    border-bottom-left-radius: 4px;
}

.message-author {
    font-weight: bold;
    color: #1b4332;
    margin-bottom: 4px;
}
.message-text {
    color: #333;
}
.message-time {
    font-size: 0.8em;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.no-reply {
    color: #888;
}

/* فرم پاسخ */
.ticket-reply-form-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 25px;
}
.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

/* خالی */
.giaahyaar-empty {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .media-item {
        width: 100%;
        height: auto;
    }
    .ticket-card {
        padding: 15px;
    }
}
/* ========== استایل‌های فرم ثبت ========== */
.giaahyaar-form-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: inherit;
    color: #333;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}
.form-header h2 {
    color: #2d6a4f;
    margin-bottom: 10px;
}

.giaahyaar-step {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.giaahyaar-step h3 {
    color: #1b4332;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
textarea, input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

/* ناحیه کشیدن فایل */
.upload-drop-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
    margin-bottom: 15px;
}
.upload-drop-area.dragover {
    border-color: #2d6a4f;
    background: #f0faf0;
}
.drop-icon {
    font-size: 3em;
}
.drop-content p {
    margin: 10px 0;
    color: #666;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}
.file-preview .preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.file-preview .preview-item img,
.file-preview .preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* گزینه‌های روش تماس */
.contact-methods {
    display: flex;
    gap: 15px;
}
.method-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.method-option.active {
    border-color: #2d6a4f;
    background: #f0faf0;
}
.method-icon {
    font-size: 2em;
}

/* دکمه‌ها */
.step-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}
.giaahyaar-btn {
    background: #2d6a4f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
}
.giaahyaar-btn:hover {
    background: #1b4332;
}
.giaahyaar-btn-outline {
    background: transparent;
    border: 2px solid #2d6a4f;
    color: #2d6a4f;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}
.giaahyaar-btn-outline:hover {
    background: #f0faf0;
}

.summary-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ... سایر استایل‌های قبلی (لیست تیکت‌ها و گفتگو) همان‌جا بماند */
.giaahyaar-thankyou-container {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
}
.thankyou-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.phone-number-box {
    font-size: 1.5em;
    font-weight: bold;
    background: #f0faf0;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.phone-number-box a {
    color: #2d6a4f;
    text-decoration: none;
}