/* Chat Styles v3 */
.chat-login {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}
.chat-login-box {
    background: linear-gradient(135deg, #2c5530, #1a3a1f);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.chat-login-icon { font-size: 50px; margin-bottom: 15px; }
.chat-login-box h2 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.chat-login-box p { color: rgba(255,255,255,0.8); margin: 0 0 25px; font-size: 15px; }
.chat-login-form { display: flex; gap: 8px; }
.chat-login-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
}
.chat-login-form button {
    padding: 12px 20px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.chat-login-form button:hover { background: #e55a25; }
#login-error { margin-top: 10px; font-size: 13px; min-height: 18px; }
.chat-online-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.chat-online-preview span { color: #4caf50; font-weight: 700; font-size: 16px; }

.chat-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    height: 65vh;
    min-height: 450px;
    max-height: 650px;
}
.chat-header {
    background: linear-gradient(135deg, #2c5530, #1a3a1f);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.chat-header-left { display: flex; flex-direction: column; gap: 2px; }
.chat-title { font-size: 16px; font-weight: 700; }
.chat-user { font-size: 12px; opacity: 0.85; }
.chat-header-right { display: flex; align-items: center; gap: 12px; }
.chat-online {
    background: rgba(255,255,255,0.15);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}
.chat-online span { color: #4caf50; font-weight: 700; }
.chat-leave-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.chat-leave-btn:hover { background: rgba(255,255,255,0.3); }

.chat-body { flex: 1; display: flex; overflow: hidden; }
.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f5f5;
}
.chat-users {
    width: 150px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    padding: 12px;
    overflow-y: auto;
}
.chat-users h4 { margin: 0 0 10px; color: #2c5530; font-size: 12px; text-transform: uppercase; }
.chat-users ul { list-style: none; margin: 0; padding: 0; }
.chat-users li {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
    background: #f5f5f5;
}
.chat-users li.me { background: #e8f5e9; color: #2c5530; font-weight: 600; }

.chat-message {
    margin-bottom: 4px;
    padding: 5px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    max-width: 85%;
}
.chat-message.me { background: #e8f5e9; margin-left: auto; }
.chat-message.system {
    background: transparent;
    box-shadow: none;
    text-align: center;
    max-width: 100%;
    color: #888;
    font-size: 11px;
    font-style: italic;
    padding: 3px;
}
.msg-nick { font-weight: 600; color: #2c5530; font-size: 12px; margin-right: 6px; }
.chat-message.me .msg-nick { color: #1a3a1f; }
.msg-text { font-size: 13px; color: #333; }
.msg-time { font-size: 10px; color: #999; margin-left: 8px; }

.chat-input-area {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}
.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}
.chat-input-area input:focus { border-color: #2c5530; }
.chat-input-area button {
    padding: 10px 18px;
    background: #2c5530;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.chat-input-area button:hover { background: #1a3a1f; }

@media (max-width: 768px) {
    .chat-login-box { padding: 30px 20px; }
    .chat-login-form { flex-direction: column; }
    .chat-wrapper { height: calc(100vh - 180px); min-height: 350px; }
    .chat-body { flex-direction: column; }
    .chat-users {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 8px 12px;
        max-height: 50px;
        overflow-x: auto;
        order: -1;
    }
    .chat-users h4 { display: inline; margin: 0 10px 0 0; font-size: 11px; }
    .chat-users ul { display: inline; }
    .chat-users li { display: inline-block; margin: 0 6px 0 0; padding: 3px 6px; font-size: 11px; }
    .chat-message { max-width: 90%; }
}

/* Ukryj social share na stronie czatu */
.meta_bottom { display: none !important; }
