/* Chat Module CSS Ultra Compact */
.mod-chat-container {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mod-chat-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e3e6ea;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mod-chat-title {
    font-weight: 700;
    color: #333;
    font-size: 13px;
}

.mod-chat-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    font-size: 13px;
    transition: color 0.2s;
}

.mod-chat-btn:hover {
    color: #333;
}

.mod-chat-list {
    height: 400px;
    overflow-y: auto;
    padding: 5px;
    background: #fff;
}

.mod-chat-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 3px;
    position: relative;
}

.mod-chat-row:hover {
    background-color: #f5f5f5;
}

.mod-chat-avatar img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 6px;
    margin-top: 1px;
}

.mod-chat-body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.mod-chat-info {
    flex: 1;
    padding-right: 5px;
    word-break: break-word;
    display: inline-block;
}

.mod-chat-user {
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    margin-right: 4px;
    font-size: 12px;
}

.mod-chat-user:hover {
    text-decoration: underline;
}

.mod-chat-text-inline {
    color: #333;
    font-size: 12px;
}

.mod-chat-text-inline p {
    margin: 0;
    display: inline;
}

.mod-chat-text-inline img {
    vertical-align: middle;
    max-width: 100%;
}

.mod-chat-right {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-left: auto;
    font-size: 11px;
    color: #999;
}

.mod-chat-date {
    margin-left: 5px;
}

.mod-chat-actions-inline {
    display: none !important;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    /* Match row bg or white */
    padding: 2px;
    border-radius: 3px;
    box-shadow: -2px 0 5px rgba(255, 255, 255, 0.8);
    align-items: center;
    z-index: 10;
}

.mod-chat-row:hover .mod-chat-actions-inline {
    display: flex !important;
}

.mod-chat-act-btn {
    cursor: pointer;
    color: #888;
    margin-left: 5px;
    font-size: 11px;
}

.mod-chat-act-btn:hover {
    color: #333;
}

/* Editör stilleri */
.mod-chat-form {
    padding: 5px;
    background: #f9f9f9;
    border-top: 1px solid #e3e6ea;
}

.mod-chat-form textarea {
    margin-bottom: 0;
    border-color: #ddd;
    border-radius: 3px;
}

.mod-chat-send {
    text-align: right;
    margin-top: 5px;
}

.mod-chat-btn-primary {
    background: #4a76a8;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.mod-chat-btn-primary:hover {
    background: #3e648d;
}

/* Scrollbar */
.mod-chat-list::-webkit-scrollbar {
    width: 5px;
}

.mod-chat-list::-webkit-scrollbar-track {
    background: transparent;
}

.mod-chat-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* Guest Warning */
.mod-chat-guest {
    padding: 10px;
    text-align: center;
    color: #888;
    background: #f5f5f5;
    font-size: 11px;
}

.mod-chat-error {
    color: #d9534f;
    background: #fdf2f2;
}