@charset "UTF-8";

body, html { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; background-color: #f4f7f6; height: 100vh; overflow: hidden; }
a { text-decoration: none; color: inherit; }
header { height: 70px; box-sizing: border-box; background-color: #2c3e50; color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); position: relative; z-index: 1001; }
.header-left { flex: 1; display: flex; align-items: center; font-size: 24px; font-weight: 900; letter-spacing: 2px; }
.logo-img { height: 55px; cursor: pointer; transition: transform 0.2s; margin-right: 15px; }
.logo-img:hover { transform: scale(1.05); }
.home-link { color: white; transition: color 0.2s; cursor: pointer; }
.home-link:hover { color: #ff8c00; }

/* 🌊 메뉴 애니메이션 (스르륵 등장) */
.dropdown-menu { 
    position: fixed; top: 70px; left: 0; width: 15vw; min-width: 220px; height: calc(100vh - 70px); 
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 5px 0 15px rgba(0,0,0,0.15); 
    z-index: 1000; border-right: 1px solid rgba(224, 224, 224, 0.8); overflow-y: auto; 
    transform: translateX(-100%); opacity: 0; visibility: hidden; 
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}
.dropdown-menu.menu-open {
    transform: translateX(0); opacity: 1; visibility: visible;
}

.dropdown-menu a { color: #2c3e50; padding: 15px 25px; display: block; font-size: 14px; font-weight: bold; border-bottom: 1px solid #f1f3f5; transition: all 0.3s ease; border-left: 0px solid transparent; }
.dropdown-menu a:hover { background-color: #f8f9fa; color: #ff8c00; padding-left: 35px; border-left: 5px solid #ff8c00; }
.header-right { flex: 2; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.top-login-form { display: flex; gap: 5px; align-items: center; margin-right: 10px; }
.top-login-form input { padding: 8px 10px; border: none; border-radius: 6px; font-size: 14px; width: 130px; outline: none; transition: 0.2s; }
.top-login-form input:focus { box-shadow: 0 0 0 2px #ff8c00; }
.top-login-form button { padding: 8px 15px; background-color: #34495e; color: white; border: 1px solid #455a64; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.2s; }
.top-login-form button:hover { background-color: #1a252f; }
.top-login-form button.btn-guest { background-color: #7f8c8d; border-color: #636e72; }
.top-login-form button.btn-guest:hover { background-color: #636e72; }
.header-right a { font-size: 14px; padding: 8px 15px; border-radius: 6px; transition: all 0.2s; font-weight: bold; }
.btn-highlight { background-color: #ff8c00; color: white; }
.btn-highlight:hover { background-color: #e67e00; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background-color: rgba(255,255,255,0.1); }
.main-content { width: 95%; max-width: 1800px; margin: 20px auto; height: calc(100vh - 110px); display: flex; flex-direction: column; }

/* 🌊 전체 그리드 애니메이션 및 우측 밀림/축소 (7fr 3fr 버전) */
.dashboard-grid { 
    display: grid; grid-template-columns: 6fr 4fr; gap: 30px; height: 100%; min-height: 0; 
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.dashboard-grid.menu-open {
    margin-left: 15vw; width: calc(100% - 15vw); grid-template-columns: 7fr 3fr; gap: 20px;
}
.dashboard-grid.menu-open .clock-card {
    border-radius: 24px; box-shadow: -5px 10px 25px rgba(0,0,0,0.15);
}

.left-column { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* 🌊 바다 모니터 애니메이션 리듬 동기화 */
.clock-card { 
    background: url("../images/sea.png") no-repeat center center; background-size: cover; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; padding: 40px 0 35px; text-align: center; border: 1px solid #1a1a1a; 
    box-sizing: border-box; flex: 1; position: relative; overflow: hidden; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}

/* 💡 핵심 수정 파트: 어두운 배경은 1층으로, 시계와 버튼들은 2층으로 띄움! */
.clock-card::before { 
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.15); z-index: 1;
}
.clock-card > * { position: relative; z-index: 2; }

.zoom-hint { position: absolute; top: 15px; right: 25px; color: #333333; font-size: 13px; font-weight: bold; font-family: 'Segoe UI', Tahoma, sans-serif; letter-spacing: 1px; z-index: 10; text-shadow: 1px 1px 2px #fff; }
.bada-search-box, .dynamic-display-container, .quick-apps-row { width: 85%; max-width: 650px; box-sizing: border-box; }
.bada-search-box { display: flex; align-items: center; background: rgba(0, 0, 0, 0.75); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 6px; padding: 12px 15px; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); transition: 0.3s; }
.bada-search-box:hover, .bada-search-box:focus-within { border-color: orange; box-shadow: 0 0 15px rgba(127, 255, 0, 0.2), inset 0 0 10px rgba(127, 255, 0, 0.1); }
.search-prompt { color: #7fff00; font-family: monospace; font-weight: bold; font-size: 15px; margin-right: 12px; letter-spacing: 1px; }
.bada-search-input { flex: 1; background: transparent; border: none; outline: none; color: #ecf0f1; font-size: 15px; font-family: 'Segoe UI', Tahoma, sans-serif; }
.bada-search-input::placeholder { color: #888; }
.bada-search-btn { background: transparent; border: none; color: #888; cursor: pointer; font-size: 18px; font-weight: bold; transition: 0.2s; }
.bada-search-btn:hover { color: #7fff00; }
.dynamic-display-container { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.main-clock-screen { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: 1; transition: opacity 0.4s ease; cursor: pointer; width: 100%; height: 100%; }
.main-clock-screen:hover .clock-time { color: #adff2f; text-shadow: 0 0 25px rgba(127, 255, 0, 0.8); }
.clock-date { font-size: clamp(14px, 1.5vw, 22px); font-weight: bold; color: #ecf0f1; letter-spacing: 3px; margin-bottom: 10px; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 2px 2px 10px rgba(0,0,0,0.9); }
.clock-time { font-size: clamp(28px, 3.5vw, 50px); font-weight: 900; font-family: monospace; letter-spacing: 5px; color: #7fff00; margin: 0; line-height: 1; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 0 10px rgba(0,0,0,0.7); white-space: nowrap; transition: all 0.3s; }
.web-chat-screen { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.dynamic-display-container.chat-active .main-clock-screen { opacity: 0; pointer-events: none; }
.dynamic-display-container.chat-active .web-chat-screen { opacity: 1; pointer-events: auto; }
.chat-header { background: rgba(0, 0, 0, 0.4); padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 14px; font-weight: bold; }
.chat-close-btn { background: none; border: none; color: #aaa; cursor: pointer; font-size: 14px; font-weight: bold; transition: 0.2s; }
.chat-close-btn:hover { color: #ff8c00; }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.chat-bubble { background: rgba(255, 255, 255, 0.15); color: #fff; padding: 10px 15px; border-radius: 10px; width: fit-content; font-size: 14px; max-width: 80%; line-height: 1.4; word-break: break-all; }
.chat-bubble.sys { background: transparent; color: #7fff00; font-family: monospace; font-weight: bold; padding: 5px 0; font-size: 13px; }
.chat-bubble.mine { background: rgba(52, 152, 219, 0.4); align-self: flex-end; }
.chat-input-row { display: flex; gap: 10px; padding: 12px; background: rgba(0, 0, 0, 0.4); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.chat-input-row input { flex: 1; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 6px; padding: 10px 15px; color: white; font-size: 14px; outline: none; }
.chat-input-row input:focus { border-color: #3498db; }
.chat-input-row button { background: #3498db; color: white; border: none; border-radius: 6px; padding: 0 20px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.chat-input-row button:hover { background: #2980b9; }
.quick-apps-row { display: flex; gap: 15px; height: 65px; }
.app-btn { flex: 1; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 900; color: #2c3e50; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; }
.app-btn:hover, .app-btn.active { border-color: #ff8c00; color: #ff8c00; background: rgba(255, 255, 255, 0.95); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2); }
.app-icon { font-size: 20px; }
.board-column { display: flex; flex-direction: column; gap: 20px; height: 100%; min-height: 0; }
.dash-card { background: white; padding: 25px 35px; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); flex: 1; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
.dash-title { font-size: 22px; font-weight: bold; color: #2c3e50; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #2c3e50; padding-bottom: 12px; cursor: pointer; transition: 0.2s; }
.dash-title:hover { color: #ff8c00; border-color: #ff8c00; }
.preview-list { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.preview-list li { padding: 12px 0; border-bottom: 1px dashed #f1f3f5; display: flex; justify-content: space-between; align-items: center; font-size: 16px; transition: 0.2s; }
.preview-list li:hover { background-color: #fdfbf7; padding-left: 12px; }
.preview-subject { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #34495e; font-weight: bold; }
.preview-info { color: #95a5a6; font-size: 14px; margin-left: 15px; white-space: nowrap; }
.empty-msg { margin: auto; text-align: center; color: #95a5a6; font-size: 15px; }
.board-render-area { height: 100%; overflow-y: auto; padding-bottom: 50px; }