body {
    min-height: 100vh;
    background: linear-gradient(135deg, #101728, #16213e, #0f3460);
    color: white;
    font-family: Arial, sans-serif;
}


.forum-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
}


.forum-header {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.forum-header h1 {
    margin: 0;
    font-weight: bold;
}

.forum-header p {
    color: #cfd8ff;
    margin-top: 8px;
    margin-bottom: 0;
}


.top-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-custom {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: bold;
    text-decoration: none;
}


.search-box {
    border-radius: 16px;
    padding: 14px;
    border: none;
    outline: none;
}


.thread-card {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 15px;
    transition: 0.25s;
    border-left: 6px solid #4d7cff;
}

.thread-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.thread-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.thread-info {
    color: #666;
    font-size: 14px;
}


.empty-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    color: #dbe4ff;
}

.chat-box {
    height: 600px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
}

.chat-form {
    display: flex;
    gap: 15px;
}

.chat-form input {
    flex: 1;
}

.chat-message {
    margin-bottom: 12px;
}

.message-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-content {
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
}


.chat-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 20px;
}

.top-actions-chat {
    margin-bottom: 12px;
}

.compact-header {
    padding: 18px 24px;
    margin-bottom: 15px;
}

.compact-header h1 {
    font-size: 28px;
}

.compact-header p {
    margin-top: 4px;
    font-size: 14px;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 15px;
    min-height: 0;
}

.chat-form {
    display: flex;
    gap: 15px;
    position: sticky;
    bottom: 0;
    padding-top: 10px;
}

.chat-form input {
    flex: 1;
    height: 52px;
}

.chat-message {
    margin-bottom: 12px;
}

.message-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-content {
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
}

.message-menu{
    position:absolute;
    display:none;
    flex-direction:column;
    gap:8px;
    background:#1b2233;
    padding:12px;
    border-radius:16px;
    z-index:9999;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
    border:1px solid rgba(255,255,255,0.08);
}

.message-menu button{
    border:none;
    background:#2b3550;
    color:white;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    text-align:left;
}

.message-menu button:hover{
    background:#3b4a70;
}


.reaction-container{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:14px;
    padding-top:10px;
    border-top:1px solid rgba(0,0,0,0.08);
}

.reaction-pill{
    display:flex;
    align-items:center;
    gap:6px;
    background:#f1f4ff;
    border:1px solid rgba(0,0,0,0.08);
    border-radius:999px;
    padding:5px 12px;
    font-size:14px;
    font-weight:600;
    transition:0.2s;
    cursor:pointer;
}

.reaction-pill:hover{
    transform:scale(1.05);
    background:#e5ebff;
}

.reaction-count{
    color:#555;
    font-size:13px;
}

.reaction-picker{
    display:flex;
    gap:6px;
    margin-bottom:10px;
}

.reaction-picker button{
    border:none;
    background:#2b3550;
    color:white;
    width:42px;
    height:42px;
    border-radius:12px;
    font-size:20px;
    cursor:pointer;
    transition:0.2s;
}

.reaction-picker button:hover{
    background:#44537c;
    transform:scale(1.08);
}
