
<style>


/* Notes Section */
.notes-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-title {
    color: #b0011a;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    color: #b0011a;
}

.notes-list {
    list-style: none;
    padding-right: 0;
}

.notes-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(176, 1, 26, 0.03);
    border-radius: 8px;
    position: relative;
    padding-right: 30px;
}

.notes-list li:before {
    content: "•";
    color: #b0011a;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    right: 10px;
    top: 10px;
}

.edit-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(176, 1, 26, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.persian-button.primary {
    background-color: #b0011a;
    color: white;
}

.persian-button.primary:hover {
    background-color: #900116;
}

.persian-button.secondary {
    background-color: #6b7280;
    color: white;
}

.persian-button.secondary:hover {
    background-color: #4b5563;
}
</style>



<style>



/* User Dashboard Styles */
.user-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header svg {
    color: #b0011a;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.stat-label {
    font-size: 1.3rem;
    color: #555;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.credit-value {
    color: #28a745;
    font-size: 1.3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 15px;
    }
}


/* Transaction Styles */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.transaction-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
    margin-top: 4px;
}

.transaction-card.positive {
    border-left-color: #28a745;
}

.transaction-card.negative {
    border-left-color: #dc3545;
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.transaction-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #555;
}

.transaction-number {
    font-size: 1.3rem;
    color: #666;
    unicode-bidi: embed;
}

.transaction-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 600;
}

.transaction-card.positive .transaction-amount {
    color: #28a745;
}

.transaction-card.negative .transaction-amount {
    color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-number {
        margin-right: auto;
    }
}


/* queue list */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

.queue-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.queue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.queue-code {
    font-weight: 700;
    color: #b0011a;
    font-size: 1.2rem;
}

.queue-user {
    font-size: 1.2rem;
    color: #666;
}

.queue-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.action-btn.delete {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.action-btn.send {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.action-btn:hover {
    transform: scale(1.1);
}

.queue-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.queue-message {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.queue-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.queue-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: #fff;
}

/* Status Styles */
.status-pending {
    color: #ffc107;
    font-weight: 600;
}

.status-success {
    color: #28a745;
    font-weight: 600;
}


/* ourgoing */
.persian-glass-container {
    direction: rtl;
    padding: 1px !important;
    min-height: 100vh;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.2);
    padding: 35px;
    margin: 0 auto;
    max-width: 900px;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: #b0011a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.header-icon svg {
    color: white;
    width: 32px;
    height: 32px;
}

.persian-title {
    color: #333;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.form-description {
    color: #666;
    font-size: 1.25rem;
}

/* Alert Box */
.alert-glass {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1.3rem;
}

.alert-glass.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-glass svg {
    color: #ffc107;
}

/* Search Box */
.search-box {
    margin: 25px 0;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.search-box input[type="text"]:focus {
    border-color: #b0011a;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 15px;
}

.persian-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px !important;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.15rem;
    gap: 10px;
}
.persian-button.primary {
    background: #b0011a;
    color: white;
}

.persian-button.secondary {
    background: rgb(255 255 255);
    color: #b0011a;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.persian-button.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.persian-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 7px rgb(121 16 30 / 57%);
    background: #b0011a;
}

.persian-button.secondary:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.persian-button.danger:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-3px);
}

.persian-button svg {
    width: 18px;
    height: 18px;
}

.help-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Message List */

.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    overflow: hidden;
}

/* نشانگر وضعیت کناری */
.message-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.1); /* حالت پیش‌فرض */
}

/* وضعیت موفق */
.message-card.status-success::before {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

/* وضعیت ناموفق */
.message-card.status-error::before {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

/* وضعیت در انتظار */
.message-card.status-pending::before {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
}

/* وضعیت تحویل شده */
.message-card.status-delivered::before {
    background: linear-gradient(to bottom, #3498db, #b0011a);
}

/* وضعیت واتساپ */
.message-card.status-whatsapp::before {
    background: linear-gradient(to bottom, #25D366, #128C7E);
}

/* استایل‌های کارت */
.message-card {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}


.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recipient-label {
    font-weight: 600;
    color: rgb(42 45 56);
    white-space: nowrap;
}


.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.message-card:nth-child(odd) {
    background: #FFF;
    border: 1px solid rgb(0 0 0 / 15%);
}

.message-card:nth-child(even) {
    background: #efefef;	
    border: 1px solid rgb(0 0 0 / 15%);
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}


.recipient-number {
    font-weight: 500;
    color: rgb(42 45 56);
    direction: ltr; /* برای اعداد انگلیسی */
    unicode-bidi: embed;
}

.queue-link {
    margin-right: auto;
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.queue-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.message-checkbox {
    display: block;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    user-select: none;
}

.message-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: rgb(121 121 121);
    border-radius: 4px;
    transition: all 0.3s;
}

.message-checkbox:hover input ~ .checkmark {
    background-color: rgba(0, 0, 0, 0.1);
}

.message-checkbox input:checked ~ .checkmark {
    background-color: #b0011a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.message-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.message-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.message-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.message-time svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.message-content {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: rgb(151 151 151 / 18%);
    border-radius: 8px;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #dddddd59;
    border-radius: 12px 12px 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    margin-top: 12px;
}

.message-info {
    display: flex;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, rgb(176 1 26) 0%, rgb(167 1 24) 100%);
    padding: 6px 12px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-item svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-status {
    background: linear-gradient(135deg, rgb(176 1 26) 0%, rgb(167 1 24) 100%);
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* استایل‌های آیکون وضعیت */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-icon.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-icon.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-icon.pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-icon.delivered {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-icon.whatsapp {
    background-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

/* افکت‌های تعاملی */
.message-footer:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
}

.message-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.status-icon.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-icon.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-icon.pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-icon.delivered {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-icon.whatsapp {
    background-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.status-icon.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-icon.delivered {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-icon.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
}

/* Video Modal */
.modal-glass {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-glass-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-glass-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #333;
}

.close-modal svg {
    width: 24px;
    height: 24px;
}

.modal-glass-body {
    padding: 20px;
}

.video-player {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
    
    .persian-title {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .message-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .message-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-glass-content {
        width: 95%;
    }
    
    .help-btn {
        bottom: 15px;
        left: 15px;
        font-size: 1.1rem;
        padding: 10px 15px;
    }
}
</style>



.persian-title {
    color: #333;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.transaction-list {
    margin-top: 30px;
}

.transaction-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.transaction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.transaction-card.positive {
    border-right-color: #4CAF50;
}

.transaction-card.negative {
    border-right-color: #F44336;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.transaction-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.transaction-date svg {
    margin-left: 5px;
    width: 14px;
    height: 14px;
}

.transaction-number {
    color: #555;
    font-size: 13px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.transaction-details {
    background: #f9f9f9;
    border-radius: 8px;
    direction: ltr;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-row.total {
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.detail-row span:first-child {
    color: #666;
}


.action-buttons {
    margin-bottom: 20px;
    text-align: left;
}

.persian-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.persian-button svg {
    margin-left: 5px;
}

.persian-button.secondary {
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
}

.persian-button.secondary:hover {
    background: #e0e0e0;
}

.pagination-container {
    margin-top: 30px;
    text-align: center;
}

/* استایل برای حالت ریسپانسیو */
@media (max-width: 768px) {
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-number {
        margin-top: 8px;
    }
    
    .glass-card {
        padding: 15px;
    }
    
    .transaction-details {
        padding: 10px;
direction: ltr;
    }
}
