:root {
    --bg-color: #0d0d12; --box-bg: rgba(30,30,40,0.7);
    --primary-purple: #6a0dad; --secondary-gray: #4a4a4a;
    --cancel-gray: #2a2a2a; --text-color: #ffffff;
    --glow-green: rgba(0,255,128,0.8); --glow-purple: rgba(138,43,226,0.8);
    --item-bg: rgba(0,0,0,0.4); --admin-green: #00ff88;
}
body.light-mode {
    --bg-color: #e0e0e5; --box-bg: rgba(255,255,255,0.6);
    --secondary-gray: #999; --text-color: #111;
    --item-bg: rgba(255,255,255,0.8); --cancel-gray: #ccc;
    --glow-green: rgba(0,200,100,0.8);
}
* { box-sizing: border-box; }
body { margin:0; padding:0; background:var(--bg-color); color:var(--text-color);
       font-family:'Pretendard',sans-serif; display:flex; flex-direction:column;
       height:100vh; overflow:hidden; align-items:center; justify-content:center;
       transition:background-color 0.3s; }
.teardrop-box { background:var(--box-bg); border-radius:24px 24px 8px 24px;
                backdrop-filter:blur(15px); border:1px solid rgba(255,255,255,0.1);
                box-shadow:0 8px 32px rgba(0,0,0,0.3); transition:all 0.3s; }
::-webkit-scrollbar { display:none; }
.auth-screen { width:350px; padding:40px; display:flex; flex-direction:column;
               gap:15px; position:absolute; z-index:50; }
.auth-title { text-align:center; font-size:24px; font-weight:bold; margin-bottom:10px; }
input,textarea { width:100%; padding:15px; background:rgba(0,0,0,0.2);
                 border:1px solid rgba(128,128,128,0.3); border-radius:12px;
                 color:var(--text-color); font-size:14px; outline:none; transition:0.3s; }
input:focus,textarea:focus { border-color:var(--primary-purple); }
.btn-group { display:flex; gap:10px; margin-top:15px; }
button { flex:1; padding:10px 15px; border:none; border-radius:12px; font-size:14px;
         font-weight:bold; cursor:pointer; color:white; transition:0.3s; }
.btn-primary  { background:var(--primary-purple); }
.btn-primary:hover { box-shadow:0 0 15px var(--glow-purple); }
.btn-secondary { background:var(--secondary-gray); }
.btn-secondary:hover { opacity:0.8; }
.btn-cancel { background:var(--cancel-gray); }
#main-screen { display:none; width:100%; height:100vh; flex-direction:column; }
.top-bar { height:60px; background:rgba(20,20,25,0.9); display:flex;
           justify-content:space-between; align-items:center; padding:0 30px;
           border-bottom:1px solid rgba(128,128,128,0.2); z-index:10; }
body.light-mode .top-bar { background:rgba(240,240,245,0.9); }
.top-center { font-weight:bold; font-size:20px; letter-spacing:2px; }
.top-right { display:flex; gap:15px; }
.icon-btn { width:35px; height:35px; border-radius:50%; background:var(--secondary-gray);
            display:flex; justify-content:center; align-items:center; cursor:pointer; color:white; }
.layout { display:flex; flex:1; padding:20px; gap:20px; height:calc(100vh - 60px); }
.sidebar { width:70px; display:flex; flex-direction:column; gap:15px;
           align-items:center; padding:20px 0; }
.sidebar-btn { width:50px; height:50px; display:flex; justify-content:center;
               align-items:center; font-size:20px; cursor:pointer;
               transition:0.3s; border-radius:14px; }
.sidebar-btn:hover,.sidebar-btn.active { background:rgba(128,128,128,0.3); transform:scale(1.1); }
.content-area { flex:1; position:relative; overflow:hidden; }
.view-section { display:none; width:100%; height:100%;
                animation:fadeIn 0.3s ease; overflow-y:auto; }
.view-section:not(.split-layout) { padding:30px; }
.view-section.active { display:block; }
.split-layout.active { display:flex; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.split-box { flex:1; padding:20px; display:flex; flex-direction:column; gap:15px; overflow-y:auto; }
.split-box.wide { flex:1.5; }
.list-item { background:var(--item-bg); padding:15px; border-radius:12px;
             border-left:4px solid var(--primary-purple); margin-bottom:10px; }
.list-item h4 { margin:0 0 5px 0; }
.list-item p  { margin:0; font-size:13px; color:gray; }
.header-with-btn { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.add-btn { background:var(--primary-purple); border:none; width:30px; height:30px;
           border-radius:8px; color:white; font-size:18px; cursor:pointer;
           display:flex; justify-content:center; align-items:center; }
.action-btn { background:none; border:none; color:gray; cursor:pointer;
              font-size:13px; padding:0 5px; font-weight:bold; }
.action-btn:hover { color:var(--primary-purple); }
.toggle-container { display:flex; justify-content:center; margin-bottom:20px; }
.toggle-bg { width:200px; height:40px; background:rgba(128,128,128,0.3);
             border-radius:20px; display:flex; position:relative; cursor:pointer; }
.toggle-btn { width:50%; height:100%; display:flex; justify-content:center;
              align-items:center; font-weight:bold; z-index:2; transition:0.3s; color:gray; }
.toggle-btn.active { color:white; }
.toggle-slider { position:absolute; top:2px; left:2px; width:calc(50% - 4px);
                 height:calc(100% - 4px); border-radius:18px; background:var(--glow-green); transition:0.3s; z-index:1; }
.board-box { width:100%; padding:20px; transition:0.4s; overflow-y:auto; }
.board-box.notice-mode { box-shadow:0 0 15px var(--glow-green); border:1px solid var(--glow-green); border-radius:16px; }
.board-box.patch-mode  { box-shadow:0 0 15px var(--glow-purple); border:1px solid var(--glow-purple); border-radius:16px; }
.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%;
                 background:rgba(0,0,0,0.6); backdrop-filter:blur(5px);
                 z-index:100; justify-content:center; align-items:center; }
.modal-content { width:400px; padding:30px; display:flex; flex-direction:column;
                 gap:15px; max-height:80vh; overflow-y:auto; }
.sq-modal { background:var(--box-bg); border-radius:24px 24px 8px 24px;
            backdrop-filter:blur(15px); border:1px solid rgba(255,255,255,0.1);
            width:400px; padding:30px; display:flex; flex-direction:column;
            gap:15px; box-shadow:0 8px 32px rgba(0,0,0,0.5); }
.profile-img-wrap { display:flex; justify-content:center; margin-bottom:10px; }
.profile-img { width:100px; height:100px; border-radius:50%; border:4px solid gray;
               background:#222; display:flex; justify-content:center;
               align-items:center; font-size:40px; cursor:pointer; }
.post-avatar { width:38px; height:38px; border-radius:50%; border:3px solid gray;
               background:#222; display:flex; justify-content:center;
               align-items:center; font-size:17px; cursor:pointer;
               flex-shrink:0; transition:0.2s; }
.post-avatar:hover { transform:scale(1.1); }
.color-picker { display:flex; justify-content:center; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
.color-dot { width:22px; height:22px; border-radius:50%; cursor:pointer;
             border:2px solid rgba(255,255,255,0.3); transition:0.2s; }
.color-dot:hover { transform:scale(1.2); }
.admin-tag { color:var(--admin-green); font-size:11px; font-weight:bold;
             padding:2px 6px; border:1px solid var(--admin-green); border-radius:10px; }
.op-tag { color:#bb88ff; font-size:11px; font-weight:bold;
          padding:2px 6px; border:1px solid #bb88ff; border-radius:10px; }
