
    /* استایل‌های عمومی */
    .ghc-chat-list-container {
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        font-family: inherit;
    }

    .ghc-user-stats {
        display: flex;
        gap: 20px;
        margin: 20px 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-box {
        background: white;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        min-width: 120px;
        transition: transform 0.3s ease;
    }

    .stat-box:hover {
        transform: translateY(-5px);
    }

    .stat-number {
        display: block;
        font-size: 24px;
        font-weight: bold;
        color: #0073aa;
    }

    .stat-label {
        font-size: 14px;
        color: #666;
    }

    .ghc-loading {
        text-align: center;
        padding: 30px;
    }

    .ghc-spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #0073aa;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: ghc-spin 1s linear infinite;
        margin: 0 auto 15px;
    }

    @keyframes ghc-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .ghc-chats-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        font-family: inherit;
    }

    .ghc-chats-table th {
        background: #0073aa;
        color: white;
        padding: 15px;
        text-align: right;
        font-weight: 600;
    }

    .ghc-chats-table td {
        padding: 12px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .ghc-chats-table tr:hover {
        background: #f8f9fa;
    }

    .ghc-chats-table tr.no-messages {
        background-color: #fff3cd;
    }

    .ghc-chats-table tr.no-messages:hover {
        background-color: #ffeaa7;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #0073aa;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-left: 10px;
        float: right;
    }

    .user-info {
        display: flex;
        align-items: center;
    }

    .user-name {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .user-email {
        font-size: 12px;
        color: #666;
    }

    .last-message-time {
        font-size: 13px;
        color: #666;
    }

    .message-preview {
        font-size: 12px;
        color: #888;
        margin-top: 5px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .status-badge {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }

    .status-waiting {
        background: #ffecb3;
        color: #7d6608;
    }

    .status-answered {
        background: #c8e6c9;
        color: #2e7d32;
    }

    .action-buttons {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .ghc-btn {
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s ease;
        text-align: center;
        font-family: inherit;
    }

    .btn-view {
        background: #17a2b8;
        color: white;
    }

    .btn-chat {
        background: #28a745;
        color: white;
    }

    .ghc-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .ghc-modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        animation: ghc-fadeIn 0.3s ease;
        font-family: inherit;
    }

    @keyframes ghc-fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .ghc-modal-content {
        background-color: white;
        margin: 5% auto;
        padding: 0;
        border-radius: 12px;
        width: 80%;
        max-width: 800px;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        animation: ghc-slideIn 0.3s ease;
        font-family: inherit;
    }

    @keyframes ghc-slideIn {
        from { transform: translateY(-50px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .ghc-modal-content.large {
        max-width: 90%;
    }

    .ghc-modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .ghc-close-modal {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 24px;
        cursor: pointer;
        color: #999;
        z-index: 10;
    }

    .ghc-close-modal:hover {
        color: #000;
    }

    .ghc-user-detail-content {
        padding: 20px;
    }

    .user-detail-section {
        margin-bottom: 25px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .user-detail-section h5 {
        margin: 0 0 15px 0;
        color: #0073aa;
        border-bottom: 2px solid #0073aa;
        padding-bottom: 8px;
    }

    .detail-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .detail-item {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        background: white;
        border-radius: 6px;
        border-left: 4px solid #0073aa;
    }

    .ghc-chat-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .ghc-chat-messages {
        height: 300px;
        overflow-y: auto;
        padding: 15px;
        margin-bottom: 15px;
        background: #fafafa;
    }

    .ghc-chat-tools {
        padding: 10px;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ghc-predefined-messages, .ghc-file-upload {
        margin-bottom: 10px;
    }

    #ghc-predefined-select-modal {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-family: inherit;
    }

    .ghc-upload-button {
        display: inline-block;
        padding: 8px 12px;
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .ghc-upload-button:hover {
        background: #e0e0e0;
    }

    .ghc-chat-input {
        display: flex;
        gap: 10px;
        padding: 0 10px 10px;
    }

    .ghc-chat-input textarea {
        flex: 1;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        resize: vertical;
        font-family: inherit;
        font-size: 14px;
    }

    .ghc-send-message {
        padding: 12px 20px;
        background: #0073aa;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        align-self: flex-end;
        font-family: inherit;
    }

    .ghc-send-message:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* استایل‌های پیام‌های چت */
    .chat-message {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 10px;
        max-width: 80%;
        position: relative;
    }

    .my-message {
        background: #0073aa;
        color: white;
        margin-left: auto;
        text-align: left;
    }

    .their-message {
        background: #e9ecef;
        color: #333;
        margin-right: auto;
        text-align: right;
    }

    .message-content {
        margin-bottom: 5px;
    }

    .message-time {
        font-size: 11px;
        opacity: 0.7;
    }

    .no-messages {
        text-align: center;
        color: #888;
        padding: 20px;
    }

    .unread-indicator {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: #dc3545;
        border-radius: 50%;
        margin-right: 5px;
    }

    /* نوتیفیکیشن */
    .ghc-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 15px 20px;
        border-radius: 8px;
        color: white;
        z-index: 10001;
        animation: ghc-slideInRight 0.3s ease;
        font-family: inherit;
    }

    @keyframes ghc-slideInRight {
        from { transform: translateX(100px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .ghc-notification.success {
        background: #28a745;
    }

    .ghc-notification.error {
        background: #dc3545;
    }

    .ghc-notification.info {
        background: #17a2b8;
    }

    /* رسپانسیو */
    @media (max-width: 768px) {
        .ghc-modal-content {
            width: 95%;
            margin: 10% auto;
        }
        
        .ghc-user-stats {
            flex-direction: column;
        }
        
        .stat-box {
            min-width: auto;
            width: 100%;
        }
        
        .ghc-chats-table {
            font-size: 12px;
            display: block;
            overflow-x: auto;
        }
        
        .ghc-chats-table th,
        .ghc-chats-table td {
            padding: 8px 4px;
            white-space: nowrap;
        }
        
        .ghc-chats-table tr {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: white;
        }
        
        .ghc-chats-table thead {
            display: none;
        }
        
        .ghc-chats-table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
        }
        
        .ghc-chats-table td:before {
            content: attr(data-label);
            font-weight: bold;
            margin-left: 10px;
            color: #0073aa;
        }
        
        .ghc-chats-table td:last-child {
            border-bottom: none;
        }
        
        .action-buttons {
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .ghc-btn {
            font-size: 11px;
            padding: 6px 8px;
            margin: 2px;
        }
        
        .detail-grid {
            grid-template-columns: 1fr;
        }
        
        .ghc-chat-tools {
            flex-direction: column;
            gap: 8px;
        }
        
        .ghc-chat-input {
            flex-direction: column;
        }
        
        .chat-message {
            max-width: 90%;
            font-size: 14px;
        }
        
        .user-info {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .user-avatar {
            margin: 0 0 10px 0;
            float: none;
        }
        
        .ghc-chat-messages {
            height: 250px;
        }
    }

    @media (max-width: 480px) {
        .ghc-modal-content {
            width: 98%;
            margin: 5% auto;
        }
        
        .ghc-chat-header h4 {
            font-size: 16px;
        }
        
        .ghc-chat-tools {
            padding: 8px;
        }
        
        .ghc-predefined-messages, .ghc-file-upload {
            width: 100%;
        }
    }
    