﻿/* center chat on screen */
.chat-wrapper {
    height: calc(100vh - 110px); /* subtract navbar height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* main black chat box */
.chat-outer {
    width: min(900px, 95vw);
    height: min(700px, 90vh);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.chat-outer.dark {
    background: #27272f;
}

.chat-outer.light {
    background: #ffffff;
}

/* header at top-left */
.chat-header {
    border-bottom: 1px solid rgb(74, 150, 101);
}

.chat-title {
    margin: 0;
    font-weight: 600;
}

/* scrollable messages */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* input area at bottom */
.chat-input {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px;
}

.chat-textarea textarea {
    resize: none !important;
    overflow-y: auto !important;
    max-height: 120px !important; /* ~3 lines */
    white-space: pre-wrap !important; /* respect newlines, allow wrapping */
    word-break: break-word !important; /* <-- THIS breaks long words */
    overflow-wrap: break-word !important;
}

.send-btn {
    white-space: nowrap;
    padding: 13px 20px;
}

.mud-chat-bubble {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Main container styling */
.terms-container {
    background: #222;
    border-radius: 16px;
    box-shadow: 0 4px 24px #222;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 40px 32px 32px 32px;
}

/* Main title: "Terms and Conditions" */
.terms-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: 1px;
    color: #c4c4c4;
}

/* Divider bar below the title */
.terms-divider {
    width: 48px;
    height: 5px;
    background: #43b02a;
    border-radius: 2px;
    margin-bottom: 32px;
}

/* List container styling */
.terms-list {
    margin-bottom: 0;
}

.terms-list:hover {
    color: red;
    margin: auto;
}

/* Individual list item spacing */
.terms-list-item {
    margin-bottom: 5px;
}

.terms-list-item:hover {
    background-color: transparent !important; /* Remove background */
    outline: none !important; /* Remove focus outline */
    box-shadow: none !important; /* Remove glow/outline */
}

/* Style for each link/button */
.terms-link {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #333;
    border-radius: 8px;
    color: #eee;
    background: #222;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px #222;
    outline: none;
}

/* Hover and focus effects for links */
.terms-link:hover,
.terms-link:focus,
.terms-link:active {
    background: #222;
    color: #fff;
    box-shadow: 0 2px 8px lightgreen;
    text-decoration: none;
    outline: none !important;
    transform: scale(1.03);
}

.terms-link::-moz-focus-inner {
    border: 0;
}

/* Cell template text truncation classes */
.w-vsmall {
    width: 1%
}

.w-small {
    width: 5%
}

.w-medium {
    width: 20%
}

.w-large {
    width: 30%
}

.w-xlarge {
    width: 50%
}

.clamped-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 3;;
    -webkit-line-clamp: 3; /* number of visible lines */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.cell-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-truncate-sm {
    max-width: 15rem;
    width: 10%;
}

.cell-truncate-md {
    max-width: 20rem;
    width: 30%;
}

.cell-truncate-lg {
    max-width: 25rem;
    width: 40%;
}

.cell-vsmall {
    width: 1%
}