@charset "utf-8";

.chat-wrap {
    width:100%;
    height:590px;
    border-radius:8px;
    overflow:hidden;
    margin-bottom:15px;
    background:#fff;
    border:1px solid #e5e5e5;
    display:flex;
    flex-direction:column;
}

/* =========================
   HEADER
========================= */
.chat-header {
    background:#f8f9fa;
    padding:6px 12px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #e5e5e5;
}

/* =========================
   NOTICE (고정 영역)
========================= */
.chat-notice {
	background: linear-gradient(90deg,#ffbc00,#ffd95e);
	margin:10px;
	border-radius:5px;
	padding:6px 10px;
    font-weight:bold;
    border-bottom:1px solid #e5e5e5;
    animation:fadeIn .2s ease;
}

.chat-notice .notice {
    margin:0;
}

.chat-notice a {
    text-decoration:none !important;
    color:#000;
    cursor:pointer;
}

.chat-notice:hover {
    filter: brightness(1.05);
}

/* =========================
   CHAT BOX
========================= */
.chat-box {
    flex:1;
    overflow-y:auto;
    padding:12px;
    background:#fff;
    -ms-overflow-style:none;
    scrollbar-width:none;
}
.chat-box::-webkit-scrollbar { display:none; }

/* =========================
   MESSAGE
========================= */
.msg {
    margin-bottom:10px;
    font-size:14px;
    word-break:break-all;
}

.nick { color:#000; }
.admin { color:#ff3b3b; }

.lv_icon {
    width:20px;
    height:20px;
    vertical-align:middle;
    margin-right:5px;
}

/* =========================
   INPUT
========================= */
.chat-input {
    display:flex;
    background:#fafafa;
    border-top:1px solid #e5e5e5;
}

.chat-input input {
    flex:1;
    padding:6px 12px;
    border:none;
    outline:none;
}

.chat-input button {
    width:70px;
    border:none;
    background:#1e2a44;
    color:#fff;
    cursor:pointer;
}
.chat-input button:hover {
    background:#2d3d60;
}

/* =========================
   DELETE BUTTON
========================= */
.msg-del {
    margin-left:8px;
    font-size:12px;
    color:#aaa;
    cursor:pointer;
    opacity:0;
}
.msg:hover .msg-del { opacity:1; }
.msg-del:hover { color:#ff3b3b; }

/* =========================
   RIGHT AREA
========================= */
.chat-right {
    display:flex;
    align-items:center;
    gap:10px;
}

.chat-users {
    font-size:13px;
    color:#333;
    display:flex;
    align-items:center;
}

/* =========================
   ADMIN MENU
========================= */
.chat-admin-menu { position:relative; }

.chat-admin-menu i {
    cursor:pointer;
    color:#444;
}
.chat-admin-menu i:hover {
    color:#1e2a44;
}

.admin-dropdown {
    position:absolute;
    top:25px;
    right:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:6px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
    display:none;
    min-width:120px;
    z-index:999;
    animation:fadeIn .15s ease;
}

.admin-item {
    padding:8px 10px;
    font-size:13px;
    cursor:pointer;
}
.admin-item:hover {
    background:#f5f5f5;
}

#chat_clear_btn { color:#ff3b3b; }

/* =========================
   MODAL
========================= */
.notice-modal {
    position:fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.notice-content {
    width:320px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    animation:fadeIn .2s ease;
}

.notice-header {
    padding:12px;
    font-weight:bold;
    background:#f8f9fa;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.notice-close {
    cursor:pointer;
    font-size:14px;
}

.notice-body {
    padding:15px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.notice-body input[type="text"] {
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    font-size:14px;
}

.notice-check {
    font-size:13px;
    color:#333;
}

.notice-footer {
    padding:10px;
    border-top:1px solid #eee;
}

.notice-footer button {
    width:100%;
    padding:10px;
    background:#1e2a44;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
}
.notice-footer button:hover {
    background:#2d3d60;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {opacity:0; transform:translateY(-5px);}
    to {opacity:1; transform:translateY(0);}
}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){
    .chat-wrap {
        height:400px;
        border-radius:0;
    }
}



/********************/
/* 다크모드 */


[data-theme="dark"] .chat-wrap {
    width:100%;
    height:590px;
	background:#202020;
	color:#fff;
	border-radius:5px;
    overflow:hidden;
    margin-bottom:15px;
    display:flex;
    flex-direction:column;
	border-color:#4c4c4c;
}

/* =========================
   HEADER
========================= */
[data-theme="dark"] .chat-header {
    background:#3a3a3a;
    padding:6px 12px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #4c4c4c;
	color:#fff;
}

/* =========================
   NOTICE (고정 영역)
========================= */
[data-theme="dark"] .chat-notice {
	background: #52b390;
	margin:10px;
	border-radius:5px;
	padding:6px 10px;
    font-weight:bold;
    animation:fadeIn .2s ease;
}

[data-theme="dark"] .chat-notice .notice {
    margin:0;
}

[data-theme="dark"] .chat-notice a {
    text-decoration:none !important;
    color:#000;
    cursor:pointer;
}

[data-theme="dark"] .chat-notice:hover {
    filter: brightness(1.05);
}

/* =========================
   CHAT BOX
========================= */
[data-theme="dark"] .chat-box {
    flex:1;
    overflow-y:auto;
    padding:12px;
    background:#202020;
    -ms-overflow-style:none;
    scrollbar-width:none;
}
[data-theme="dark"] .chat-box::-webkit-scrollbar { display:none; }

/* =========================
   MESSAGE
========================= */
[data-theme="dark"] .msg {
    margin-bottom:10px;
    font-size:14px;
    word-break:break-all;
}

[data-theme="dark"] .nick { color:#bdbdbd; }
[data-theme="dark"] .admin { color:#ffbc00; }

[data-theme="dark"] .lv_icon {
    width:20px;
    height:20px;
    vertical-align:middle;
    margin-right:5px;
    border-radius:4px;
}

/* =========================
   INPUT
========================= */
/* 입력 영역 */
[data-theme="dark"] .chat-input {
    display:flex;
    background:#333;
    flex-shrink:0;
	border-top-color:#4c4c4c;
}

/* input */
[data-theme="dark"] .chat-input input {
    flex:1;
    padding:6px 12px;
    border:none;
    background:#3a3a3a;
    color:#fff;
    outline:none;
    box-shadow:none;
    font-size:14px;
}

/* 버튼 */
[data-theme="dark"] .chat-input button {
    width:70px;
    border:none;
    background:#444;
    color:#fff;
    cursor:pointer;
    font-size:14px;
}
[data-theme="dark"] .chat-input button:hover {
    background:#52b390;
}

/* =========================
   DELETE BUTTON
========================= */
[data-theme="dark"] .msg-del {
    margin-left:8px;
    font-size:12px;
    color:#aaa;
    cursor:pointer;
    opacity:0;
}
[data-theme="dark"] .msg:hover .msg-del { opacity:1; }
[data-theme="dark"] .msg-del:hover { color:#ff3b3b; }

/* =========================
   RIGHT AREA
========================= */
[data-theme="dark"] .chat-right {
    display:flex;
    align-items:center;
    gap:10px;
}

[data-theme="dark"] .chat-users {
    font-size:13px;
    color:#fff;
    display:flex;
    align-items:center;
}

/* =========================
   ADMIN MENU (DARK GRAY)
========================= */
[data-theme="dark"] .chat-admin-menu { 
    position:relative; 
}

[data-theme="dark"] .chat-admin-menu i {
    cursor:pointer;
    color:#bbb;
}
[data-theme="dark"] .chat-admin-menu i:hover {
    color:#ffbc00;
}

/* DROPDOWN */
[data-theme="dark"] .admin-dropdown {
    position:absolute;
    top:25px;
    right:0;
    background:#2b2b2b;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.6);
    display:none;
    min-width:130px;
    z-index:999;
    animation:fadeIn .15s ease;
    overflow:hidden;
}

/* ITEM */
[data-theme="dark"] .admin-item {
    padding:10px 12px;
    font-size:13px;
    cursor:pointer;
    color:#ddd;
    transition:all .15s ease;
}

[data-theme="dark"] .admin-item:hover {
    background:#3a3a3a;
    color:#fff;
}

/* 위험 버튼 */
[data-theme="dark"] #chat_clear_btn { 
    color:#ff6b6b;
}

[data-theme="dark"] #chat_clear_btn:hover {
    background:#3a1f1f;
    color:#ff3b3b;
}

/* =========================
   MODAL (DARK GRAY)
========================= */
[data-theme="dark"] .notice-modal {
    position:fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

[data-theme="dark"] .notice-content {
    width:320px;
    background:#2b2b2b;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.6);
    animation:fadeIn .2s ease;
    border:1px solid rgba(255,255,255,0.06);
}

/* HEADER */
[data-theme="dark"] .notice-header {
    padding:12px;
    font-weight:bold;
    background:#242424;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,0.06);
}

[data-theme="dark"] .notice-close {
    cursor:pointer;
    font-size:14px;
    color:#aaa;
}
[data-theme="dark"] .notice-close:hover {
    color:#fff;
}

/* BODY */
[data-theme="dark"] .notice-body {
    padding:15px;
    display:flex;
    flex-direction:column;
    gap:10px;
    color:#ddd;
}

[data-theme="dark"] .notice-body input[type="text"] {
    padding:10px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:6px;
    font-size:14px;
    background:#1f1f1f;
    color:#fff;
}

[data-theme="dark"] .notice-body input::placeholder {
    color:#888;
}

[data-theme="dark"] .notice-check {
    font-size:13px;
    color:#aaa;
}

/* FOOTER */
[data-theme="dark"] .notice-footer {
    padding:10px;
    border-top:1px solid rgba(255,255,255,0.06);
}

[data-theme="dark"] .notice-footer button {
    width:100%;
    padding:10px;
    background:#ffbc00;
    color:#000;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

[data-theme="dark"] .notice-footer button:hover {
    background:#ffd95e;
}

/* =========================
   ANIMATION
========================= */
[data-theme="dark"] @keyframes fadeIn {
    from {opacity:0; transform:translateY(-5px);}
    to {opacity:1; transform:translateY(0);}
}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){
    [data-theme="dark"] .chat-wrap {
        height:400px;
        border-radius:0;
    }
}