#ngesc-dispute-chat-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 92vh;
    max-height: 720px;
    min-height: 300px;
    border: 1px solid #e0e0e0;
	border-radius: 2rem;
    background: #fff;
    overflow: hidden;
}

.dark-edition #ngesc-dispute-chat-frame {
    background: #212b42;
    border: 1px solid #ffffff17;
}

.ngesc-chat__header {
    flex: 0 0 60px;
    line-height: 60px;
    padding-left: 1rem;
    border-bottom: 1px solid #bebebe;
    background: #fff;
}

.dark-edition .ngesc-chat__header {
    background: #212b42;
    border: none;
}

.ngesc-chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.ngesc-chat__footer {
    flex: 0 0 auto;
    padding: 0.5rem;
    border-top: 1px solid #ccc;
    background: #fff;
}

.dark-edition .ngesc-chat__footer {
    background: #212b42;
}

.ngesc-chat__footer form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ngesc-chat__footer textarea {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px;
    background: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ngesc-chat__send-btn {
    background: #2271b1;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #fff;
    cursor: pointer;
}

.ngesc-chat__send-btn:hover {
    background: #435f7a;
}

.ngesc-chat__attach-btn {
    cursor: pointer;
    font-size: 1.2em;
    color: #555;
}

.ngesc-chat__messages {
    padding: 1rem;
}

.ngesc-chat__messages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ngesc-chat__msg {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.ngesc-chat__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.ngesc-chat__avatar--empty {
    background: transparent;
}

.ngesc-chat__bubble {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 100%;
    line-height: 1.3;
    font-size: 0.9rem;
    position: relative;
}

.ngesc-chat__msg--complainant .ngesc-chat__bubble {
    background: #354d34;
    color: #fff;
    border-radius: 0 20px 20px 20px;
}

.ngesc-chat__msg--accused .ngesc-chat__bubble {
    background: #383d3d;
    color: #fff;
    border-radius: 0 20px 20px 20px;
}

.ngesc-chat__msg--admin .ngesc-chat__bubble {
    background: #f5f5f5;
    color: #333;
    border-radius: 20px 0 20px 20px;
}

.ngesc-chat__author {
    font-size: 0.75rem;
    color: #bbb;
}

.ngesc-chat__date {
    font-size: 0.75rem;
    color: #87a1ac;
    display: block;
    margin-top: 4px;
}

.ngesc-chat__file-img {
    max-width: 200px;
    border-radius: 6px;
    display: block;
    margin-bottom: 5px;
}

/*Frontend upload*/

.ngesc-img-preview {
    width: 270px !important;
    border-radius: 10px !important;
    border: solid 3px #adb7ba;
}

.ngesc-front-wrapper .ngesc-file-preview-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 8px;
    margin-left: 10px;
    background: #f9f9f9;
    max-width: 220px;
    overflow: hidden;
}

.ngesc-file-preview-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
}

.ngesc-file-preview-name {
    flex: 1;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444;
}

.ngesc-clear-file-btn {
    background: transparent;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 6px;
    flex-shrink: 0;
}

.ngesc-clear-file-btn:hover {
    color: #900;
}
