:root { --primary-color: #002c5f; --accent-color: #00a0e9; --text-dark: #333333; --bg-light: #f4f6f9; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; background-color: var(--bg-light); color: var(--text-dark); min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }

header { background: #fff; border-bottom: 1px solid #ddd; height: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo img { height: 30px !important; width: auto !important; object-fit: contain; }

.login-box { background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center; max-width: 400px; width: 90%; }
.login-box h2 { color: var(--primary-color); margin-bottom: 10px; font-size: 22px; }
.login-box p { color: #666; margin-bottom: 25px; font-size: 14px; }
.login-box input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; margin-bottom: 15px; text-align: center; letter-spacing: 5px; }
.login-box button { width: 100%; padding: 15px; background: var(--primary-color); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.login-box button:hover { background: var(--accent-color); }
#error-msg { color: #e74c3c; font-size: 13px; margin-top: 10px; display: none; }

.notice-section { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 50px; border-top: 4px solid var(--primary-color); }
.notice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.notice-header h3 { font-size: 20px; color: var(--primary-color); margin: 0; }
.btn-more { font-size: 13px; color: #888; text-decoration: none; border: 1px solid #ddd; padding: 6px 12px; border-radius: 4px; transition: 0.2s; white-space: nowrap; }
.btn-more:hover { background: var(--bg-light); color: var(--primary-color); border-color: var(--primary-color); }

.notice-list { list-style: none; }
.notice-list li { display: flex; flex-direction: column; padding: 0; border-bottom: 1px dashed #eee; font-size: 15px; }
.notice-list li:last-child { border-bottom: none; }
.notice-row { display: flex; align-items: center; padding: 15px 0; cursor: pointer; transition: 0.2s; width: 100%; }
.notice-row:hover { background-color: #f8f9fa; }
.notice-row .badge { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; margin-right: 15px; min-width: 50px; text-align: center; background: #002c5f; }
.notice-row .title-text { flex: 1; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: 0.2s; font-weight: 500; }
.notice-row:hover .title-text { color: var(--accent-color); }
.notice-row .date { color: #999; font-size: 13px; margin-left: 15px; }
.notice-row .arrow-icon { margin-left: 10px; color: #ccc; transition: transform 0.3s ease; }
.notice-content { display: none; padding: 20px; background: #f4f6f9; border-top: 1px solid #eaeaea; font-size: 14px; color: #555; line-height: 1.6; border-radius: 0 0 8px 8px; margin-bottom: 5px; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.grid-item { background: #fff; padding: 40px 20px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; border: 1px solid #eee; }
.grid-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--accent-color); }
.grid-item i { font-size: 45px; color: var(--primary-color); margin-bottom: 15px; }
.grid-item h3 { font-size: 18px; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; }
.grid-item p { font-size: 13px; color: #777; }

.dining-tab-menu { display: flex; margin-bottom: 20px; border-bottom: 2px solid #ddd; }
.dining-tab { flex: 1; padding: 12px 0; text-align: center; font-weight: 700; color: #777; cursor: pointer; transition: 0.3s; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.dining-tab.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }
.dining-content { display: none; text-align: left; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.dining-content.active { display: block; }
.restaurant-card { background: #f8f9fa; border: 1px solid #eaeaea; border-radius: 8px; padding: 15px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.restaurant-card:hover { border-color: var(--accent-color); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.res-info h4 { color: #333; font-size: 16px; margin-bottom: 5px; }
.res-info p { color: #666; font-size: 13px; line-height: 1.4; margin-bottom: 3px; }
.res-tags span { display: inline-block; background: #e8f4fd; color: #00a0e9; font-size: 11px; padding: 3px 8px; border-radius: 4px; margin-right: 5px; font-weight: 500; }
.res-action { flex-shrink: 0; margin-left: 15px; }
.res-action a { background: #002c5f; color: #fff; padding: 8px 12px; border-radius: 5px; font-size: 12px; font-weight: bold; }
.res-action a:hover { background: #00a0e9; }

.comp-acc-header { background: #fff; padding: 18px 25px; border-radius: 10px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-left: 6px solid var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.comp-acc-content { display: none; padding: 10px 0 30px; margin-bottom: 20px; }
.comp-acc-header.active { border-left-color: var(--accent-color); }
.emp-btn { background: #f8f9fa; border: 1px solid #ddd; padding: 8px 12px; border-radius: 20px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom:5px; transition: 0.2s;}
.emp-btn:hover { border-color: var(--accent-color); color: var(--accent-color); box-shadow: 0 3px 8px rgba(0,160,233,0.15); }

/* 조직도 CSS */
#tree-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:10005; flex-direction:column; align-items:center; padding-top:20px; }
.tree-container { width:95%; height:calc(100vh - 80px); overflow:auto; background:#f4f6f9; border-radius:15px; padding:40px; }

.css-tree ul { padding-top: 20px; position: relative; transition: all 0.5s; display: flex; justify-content: center; padding-left:0; margin:0; }
.css-tree li { float: left; text-align: center; list-style-type: none; position: relative; padding: 20px 15px 0 15px; transition: all 0.5s; }

.css-tree li::before, .css-tree li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid #999; width: 50%; height: 20px; }
.css-tree li::after { right: auto; left: 50%; border-left: 2px solid #999; }
.css-tree li:only-child::after, .css-tree li:only-child::before { display: none; }
.css-tree li:only-child { padding-top: 0; }
.css-tree li:first-child::before, .css-tree li:last-child::after { border: 0 none; }
.css-tree li:last-child::before { border-right: 2px solid #999; border-radius: 0 5px 0 0; }
.css-tree li:first-child::after { border-radius: 5px 0 0 0; }
.css-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #999; width: 0; height: 20px; margin-left: -1px; }

.node-box { background: #fff; border: 2px solid #002c5f; display: inline-block; text-decoration: none; font-family: 'Noto Sans KR', sans-serif; border-radius: 8px; overflow: hidden; min-width: 160px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s; }
.node-box:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); }
.node-title { background: #002c5f; color: #fff; padding: 10px; font-weight: bold; font-size: 15px; letter-spacing: 1px; }
.sub-title { background: #e8f4fd; color: #002c5f; border-bottom: 1px solid #bce0fd; }
.root-node .node-title { background: #e74c3c; font-size:16px; }
.root-node { border-color: #e74c3c; }

/* 10명 초과시 Grid 자동분할 */
.node-emps { 
    padding: 8px 15px; 
    text-align: left; 
    display: grid; 
    grid-template-rows: repeat(10, auto);
    grid-auto-flow: column; 
    grid-auto-columns: minmax(130px, auto); 
    column-gap: 25px; 
}
.emp-row { display: flex; justify-content: flex-start; align-items: center; padding: 6px 5px; border-bottom: 1px dashed #eee; cursor: pointer; transition: background 0.2s; }
.emp-row:hover { background: #f1f5f9; }
.emp-row:last-child { border-bottom: none; }
.emp-title { color: #888; font-size: 12px; width: 45px; display:inline-block; }
.emp-name { color: #333; font-weight: 700; font-size: 13px; }