/* استایل‌های عمومی */
body {
    background-color: #f8f9fa;
    font-family: 'Tanha', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* استایل‌های صفحه لاگین */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.admin-login-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: #ffffff;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background: linear-gradient(to right, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-button:active {
    transform: translateY(0);
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-login-card {
    animation: fadeIn 0.6s ease forwards;
}

/* رسپانسیو */
@media (max-width: 576px) {
    .admin-login-card {
        padding: 30px 20px;
    }

    .title {
        font-size: 20px;
    }
}




/* استایل‌های عکس پرسنلی */
.img-thumbnail {
    border: 3px solid #dee2e6;
    padding: 0.25rem;
    background-color: #fff;
}

/* استایل‌های شبکه‌های اجتماعی */
.btn-instagram {
    background-color: #E1306C;
    color: white;
    border-color: #E1306C;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.btn-eitaa {
    background-color: #00BFA5;
    color: white;
    border-color: #00BFA5;
}

.social-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* استایل‌های اطلاعات تماس */
.list-group-item {
    padding: 0.75rem 1.25rem;
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

/* استایل‌های پیام‌ها */
.message-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.message-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.user-message {
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.user-message::before {
    background-color: #6c757d;
}

.admin-message {
    background-color: #e9f7fe;
    border: 1px solid #d1ecf1;
}

.admin-message::before {
    background-color: #17a2b8;
}

.message-header {
    font-size: 0.9rem;
}

.message-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* استایل‌های اقدامات مدیریتی */
.action-buttons {
    margin-top: 1rem;
}

.action-buttons .btn {
    min-width: 180px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approve-btn {
    background-color: #28a745;
    border-color: #28a745;
}

.approve-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.reject-btn {
    background-color: #dc3545;
    border-color: #dc3545;
}

.reject-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* استایل‌های گالری */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* استایل‌های رسپانسیو */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons .btn {
        width: 100%;
    }
}


/*ایندکس استایل*/
.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}
.table th {
    border-top: none;
    font-weight: 600;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}
.card {
    border-radius: 0.5rem;
}
.card-header {
    padding: 1rem 1.25rem;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
.text-truncate {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




/* استایل‌های پیام‌ها به سبک تلگرام */
#chat {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    animation: bgGradient 15s ease infinite;
    height: 500px;
    overflow: auto; /* فریم اصلی overflow رو نگه می‌داریم */
    list-style: none;
    padding: 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
    border-radius: 15px;
}

#chat li {
    display: flex; /* مهم برای wrapper */
}

.message-wrapper {
    display: flex;
    width: 100%;
}

.message-wrapper.justify-end {
    justify-content: flex-start;
}

.message-wrapper.justify-start {
    justify-content: flex-end;
}

.message-box {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

.admin-message {
    background-color: #0dd471;
    color: white;
    border-top-right-radius: 0;
}

.user-message {
    background-color: white;
    color: #333;
    border-top-left-radius: 0;
}

.message-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

.admin-message .message-time {
    text-align: right;
    color: rgba(255,255,255,0.8);
}

.user-message .message-time {
    text-align: left;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




/*استایل های صفحه نظرات ادمین*/
/* کانتینر اصلی */
.review-admin-container {
    background: #f9f9fb;
    padding: 20px;
    border-radius: 16px;
    font-family: "Vazirmatn", sans-serif;
}

/* هدر */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.review-page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.review-user-menu i {
    color: #666;
    cursor: pointer;
}

/* فیلترها */
.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.review-filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}
.review-filter-group select,
.review-search-box input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}
.review-search-box {
    display: flex;
}
.review-search-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 8px;
    cursor: pointer;
}

/* جدول */
.review-table-container {
    overflow-x: auto;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.review-table {
    width: 100%;
    border-collapse: collapse;
}
.review-table th,
.review-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}
.review-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #333;
}

/* وضعیت */
.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}
.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.status-approved {
    background: #dcfce7;
    color: #166534;
}
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* دکمه‌ها */
.action-buttons .btn {
    padding: 6px 10px;
    border-radius: 6px;
    margin: 0 2px;
    font-size: 13px;
    cursor: pointer;
    border: none;
}
.btn-approve {
    background: #4ade80;
    color: #fff;
}
.btn-reject {
    background: #f87171;
    color: #fff;
}
.btn-view {
    background: #3b82f6;
    color: #fff;
}
.btn-more {
    background: transparent;
    color: #4f46e5;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

/* صفحه‌بندی */
.review-pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    justify-content: center;
}
.review-pagination a,
.review-pagination span {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.review-pagination .active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}
.review-action-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.review-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease-in-out;
}

.review-btn i {
    font-size: 14px;
}

.review-btn-approve {
    background: #22c55e;
    color: #fff;
}
.review-btn-approve:hover {
    background: #16a34a;
}

.review-btn-reject {
    background: #ef4444;
    color: #fff;
}
.review-btn-reject:hover {
    background: #dc2626;
}

.review-btn-view {
    background: #3b82f6;
    color: #fff;
}
.review-btn-view:hover {
    background: #2563eb;
}

.review-btn-more {
    background: transparent;
    color: #4f46e5;
    border: none;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
}
.review-btn-more:hover {
    text-decoration: underline;
}

.review-reply-row td {
    padding: 10px 8px;
    vertical-align: top;
    border-bottom: 2px solid #e5e7eb;
}

.review-reply-row .review-action-buttons {
    display: flex;
    justify-content: flex-start; /* دکمه‌ها سمت چپ ردیف پاسخ */
    gap: 6px;
}

.review-table td {
    word-break: break-word; /* جلوگیری از بیرون زدن متن */
}

.review-table td, .review-table th {
    text-align: center; /* ستون‌ها وسط چین */
}

.review-reply-row td:nth-child(5) {
    text-align: left; /* متن پاسخ سالن سمت چپ */
}







/* استایل‌های نظرات آرایشگران در پنل ادمین */
.admin-reviews-container {
    direction: rtl;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.admin-reviews-content {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* هدر */
.admin-reviews-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.admin-reviews-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.admin-reviews-subtitle {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* فیلترها */
.admin-reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.admin-reviews-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-reviews-filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.admin-reviews-filter-select,
.admin-reviews-search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-reviews-filter-select:focus,
.admin-reviews-search-input:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.admin-reviews-search-box {
    display: flex;
    align-items: center;
}

.admin-reviews-search-input {
    border-radius: 8px 0 0 8px;
    border-right: none;
    width: 250px;
}

.admin-reviews-search-btn {
    background: #6a11cb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.admin-reviews-search-btn:hover {
    background: #5a0db9;
}

/* جدول */
.admin-reviews-table-container {
    overflow-x: auto;
    padding: 0 10px;
}

.admin-reviews-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-reviews-table th {
    background-color: #f1f3f5;
    padding: 15px 12px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.admin-reviews-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: top;
    font-size: 14px;
}

.admin-reviews-row:hover {
    background-color: #f8f9fa;
}

.admin-reviews-reply-row {
    background-color: #f0f7ff;
}

.admin-reviews-reply-row:hover {
    background-color: #e6f2ff;
}

.admin-reviews-reply-label {
    font-weight: 600;
    color: #2575fc;
    text-align: right !important;
}

/* متن نظر */
.admin-reviews-comment-text {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s;
    line-height: 1.5;
}

.admin-reviews-comment-text.expanded {
    max-height: 500px;
}

.admin-reviews-btn-more {
    background: none;
    border: none;
    color: #6a11cb;
    cursor: pointer;
    font-size: 13px;
    margin-top: 5px;
    padding: 0;
    text-decoration: underline;
}

.admin-reviews-reply-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
}

/* ستاره‌های امتیاز */
.admin-reviews-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

.admin-reviews-star-filled {
    color: #ffc107;
}

.admin-reviews-star-empty {
    color: #ddd;
}

.admin-reviews-rating-text {
    font-size: 13px;
    color: #6c757d;
}

/* وضعیت‌ها */
.admin-reviews-status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-reviews-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.admin-reviews-status-approved {
    background-color: #d1edff;
    color: #0c5460;
}

.admin-reviews-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* دکمه‌های عملیات */
.admin-reviews-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-reviews-inline-form {
    display: inline;
}

.admin-reviews-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-reviews-btn-approve {
    background-color: #d4edda;
    color: #155724;
}

.admin-reviews-btn-approve:hover {
    background-color: #c3e6cb;
}

.admin-reviews-btn-reject {
    background-color: #f8d7da;
    color: #721c24;
}

.admin-reviews-btn-reject:hover {
    background-color: #f1b0b7;
}

.admin-reviews-btn-edit {
    background-color: #d1ecf1;
    color: #0c5460;
}

.admin-reviews-btn-edit:hover {
    background-color: #bee5eb;
}

.admin-reviews-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.admin-reviews-btn-cancel:hover {
    background-color: #5a6268;
}

/* مودال */
.admin-reviews-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.admin-reviews-modal-content {
    background: #fff;
    width: 500px;
    max-width: 90%;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-reviews-modal-title {
    margin: 0 0 15px;
    color: #495057;
    font-size: 18px;
}

.admin-reviews-modal-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    font-size: 14px;
}

.admin-reviews-modal-textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.admin-reviews-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 20px;
}

/* صفحه‌بندی */
.admin-reviews-pagination {
    padding: 20px 30px;
    display: flex;
    justify-content: center;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .admin-reviews-container {
        padding: 10px;
    }

    .admin-reviews-filters {
        flex-direction: column;
        padding: 15px;
    }

    .admin-reviews-search-input {
        width: 100%;
    }

    .admin-reviews-table th,
    .admin-reviews-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .admin-reviews-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-reviews-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}
