.ghc-chat-button-container {
    margin: 20px 0;
}

.ghc-chat-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ghc-chat-button:hover {
    background-color: #45a049;
}

#ghc-chat-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.ghc-chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ghc-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    max-width: 70%;
}

.ghc-message.sender {
    background-color: #e3f2fd;
    margin-left: auto;
}

.ghc-message.receiver {
    background-color: #f1f1f1;
    margin-right: auto;
}

.ghc-message-time {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.ghc-chat-input {
    display: flex;
}

.ghc-chat-input textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
}

.ghc-chat-input button {
    margin-left: 10px;
    padding: 0 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ghc-chat-list ul {
    list-style: none;
    padding: 0;
}

.ghc-chat-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ghc-chat-item:hover {
    background-color: #f9f9f9;
}

.ghc-chat-user {
    font-weight: bold;
    margin-bottom: 5px;
}

.ghc-chat-preview {
    color: #666;
    margin-bottom: 5px;
}

.ghc-chat-time {
    font-size: 12px;
    color: #999;
}

#ghc-admin-chat-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
}

.ghc-modal-content {
    position: relative;
}

.ghc-modal-content .ghc-chat-messages {
    max-height: 60vh;
    overflow-y: auto;
}

/* استایل‌های لیست چت‌ها */
.ghc-chat-list-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

.ghc-chat-list-title {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ghc-chats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ghc-chat-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 15px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.ghc-chat-item:hover {
    background: #f9f9f9;
}

.ghc-chat-user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.ghc-chat-username {
    font-weight: bold;
    color: #2c3e50;
}

.ghc-chat-time {
    font-size: 0.8em;
    color: #7f8c8d;
}

.ghc-chat-preview {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghc-chat-actions {
    margin-top: 10px;
}

.ghc-open-chat {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.ghc-open-chat:hover {
    background: #2980b9;
}

.ghc-no-chats {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.ghc-admin-notice {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #6c757d;
    border-left: 3px solid #6c757d;
}

.ghc-login-required {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ghc-login-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.ghc-login-button:hover {
    background: #2980b9;
}


/* استایل جدول */
.ghc-chats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ghc-chats-table th, 
.ghc-chats-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.ghc-chats-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.ghc-chats-table tr:hover {
    background-color: #f5f5f5;
}

/* استایل مودال */
.ghc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ghc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.ghc-close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    cursor: pointer;
}

.ghc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    min-height: 300px;
}

.ghc-chat-input {
    display: flex;
    gap: 10px;
}

.ghc-chat-input textarea {
    flex: 1;
    min-height: 80px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.ghc-open-chat-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ghc-open-chat-btn:hover {
    background: #2980b9;
}