* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #d6dbe1;
    font-family: Arial, sans-serif;
    overflow-x: auto;
    min-width: 1450px;
     position: relative;
}

body {
    display: flex;
    align-items: stretch;
}

/* 사이드바 */
.sidebar {
    width: 240px;
    min-height: 100vh;
    height: auto;
    background: #5b6670;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.sidebar .logo {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #5b6670;
    margin: 0;
    padding: 0;
}

.sidebar .logo img {
    width: 220px;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #f5f3ef;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    padding-left: 18px;
    cursor: pointer;
    white-space: normal;
    line-height: 1.25;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

.nav button:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    transform: translateX(4px);
}

.gold-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b7d6b;
}

/* 메인 공통 */
.main {
    flex: 1;
    padding: 45px 70px;
    background: #d6dbe1;
}

.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    margin-bottom: 70px;
}

.top-info strong {
    display: block;
    font-size: 38px;
    margin-top: 10px;
}

/* 공지 */
.notice-card {
    width: calc(100vw - 520px);

    max-width: 1200px;

    min-width: 700px;

    margin: 0 auto;

    background: white;

    border-radius: 22px;

    padding: 42px 52px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 25px;
}

.notice-header h1 {
    margin: 0;
    font-size: 34px;
    color: #111;
}

.notice-header button {
    border: none;
    background: none;
    font-size: 20px;
    color: #2c3e50;
    cursor: pointer;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.notice-item:last-child {
    border-bottom: none;
}

.dot {
    width: 14px;
    height: 14px;
    background: #d8c3a5;
    border-radius: 50%;
}

.notice-item p {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.notice-item em {
    font-style: normal;
    font-size: 20px;
    color: #666;
    text-align: right;
}

.notice-text {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    font-size: 22px;
    font-weight: bold;
    background: transparent;
    font-family: Arial;
    min-height: 35px;
}

.notice-date {
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    font-size: 20px;
    color: #666;
}

.add-notice-btn {
    border: none;
    background: #2c3e50;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.notice-delete {
    border: none;
    background: #f1f1f1;
    color: #555;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* 오늘 스케줄 */
.today-card {
    width: min(1380px, calc(100vw - 140px));

    margin: 34px auto 0;

    background: white;

    border-radius: 22px;

    padding: 38px 52px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.today-card h2 {
    margin: 0 0 24px;
    color: #2c3e50;
}

.today-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.today-list div {
    background: #f4f6f8;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.today-list strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

.today-list span {
    font-weight: bold;
}

/* 스케줄 페이지 */
.schedule-main {
    flex: 1;
    padding: 45px 70px;
    background: #d6dbe1;
    box-sizing: border-box;
    overflow-x: auto;
}

.schedule-card {
    width: 1050px;
    min-height: 860px;
    background: white;
    border-radius: 22px;
    padding: 40px 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.schedule-card .calendar {
    width: 100%;
    margin: 0 auto;
}

.schedule-card .day {
    min-height: 125px;
}

.schedule-card .top-bar {
    margin-bottom: 28px;
}

/* 달력 */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.top-bar button {
    width: 54px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #2f4858;
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(47,72,88,0.25);
    transition: 0.2s;
}

.top-bar button:hover {
    background: #243947;
    transform: translateY(-2px);
}

.month-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.month-title select {
    border: none;
    outline: none;
    background: #f3f6f9;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #2f4858;
    cursor: pointer;
}

#monthText {
    font-size: 34px;
    font-weight: 900;
    color: #2f4858;
    margin-right: 18px;
    letter-spacing: -1px;
}

.month-wrapper {
    position: relative;
}

.month-display {
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.month-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 220px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.month-menu div {
    padding: 12px;
    cursor: pointer;
}

.month-menu div:hover {
    background: #f0f0f0;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 900px;
    margin: 0 auto;
    background: white;
    border: 2px solid #222;
    overflow: hidden;
}

.day-name {
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 15px;
    border-right: 1px solid #4c647c;
    border-bottom: 1px solid #1e2b38;
}

.day {
    background: white;
    border: 1px solid #d8dee6;
    min-height: 165px;
    padding: 8px;
    transition: 0.15s;
}

.day:hover {
    background: #f8fafc;
}

.empty {
    background: transparent;
    box-shadow: none;
}

.date {
    font-size: 28px;
    font-weight: 900;
    color: #222;
    margin-bottom: 6px;
}

/* 스케줄 입력칸 */
.inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inputs textarea,
textarea {
    width: 100%;
    height: 40px;

    border: none;

    resize: none;
    overflow: hidden;

    outline: none;

    font-size: 11px;
    font-weight: bold;

    border-radius: 6px;

    color: #2c3e50;

    padding: 4px 6px;
}

.inputs textarea {
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    transition: 0.15s;
}

.inputs textarea:focus {
    transform: scale(1.02);
}

.doctor {
    background: #e9edf3;
}

.room {
    background: #dbeafe;
}

.nurse {
    background: #ffe4ec;
}

.desk {
    background: #fef3c7;
}

.therapy {
    background: #dcfce7;
}

/* 대시보드 */
.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.top-menu,
.bottom-menu {
    display: flex;
    justify-content: center;
}

.top-menu {
    gap: 40px;
}

.bottom-menu {
    align-items: center;
    gap: 80px;
    margin-top: 40px;
}

.square {
    width: 180px;
    height: 140px;
    border-radius: 30px;
}

.circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 매뉴얼 */
.manual-section {
    margin-top: 35px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.manual-header {
    font-size: 28px;
    font-weight: 800;
    color: #2f4858;
    margin-bottom: 28px;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.manual-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    cursor: pointer;
    transition: 0.15s;
}

.manual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    background: white;
}

.manual-card h3 {
    margin: 14px 0 10px;
    font-size: 19px;
    color: #2f4858;
}

.manual-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.manual-tag,
.manual-tag-input {
    display: inline-block;
    width: 80px;
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 5px 10px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.manual-title-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    margin: 14px 0 10px;
    font-size: 19px;
    font-weight: 800;
    color: #2f4858;
}

.manual-desc-input {
    width: 100%;
    height: 38px;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font-size: 14px;
    color: #6b7280;
    font-family: Arial;
}

.manual-title-input:focus,
.manual-desc-input:focus {
    background: #f1f5f9;
    border-radius: 8px;
}

.manual-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: 0.22s;
}

.manual-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.manual-modal-box {
    width: 700px;
    height: 500px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: 0.22s;
}

.manual-modal.active .manual-modal-box {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

#modalTitle {
    font-size: 30px;
    margin-bottom: 20px;
    color: #2f4858;
}

#modalContent {
    width: 100%;
    height: 360px;
    border: none;
    outline: none;
    resize: none;
    background: #f4f6f8;
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
}

/* 색상 태그 */
.blue {
    background: #dbeafe;
    color: #2563eb;
}

.orange {
    background: #ffedd5;
    color: #ea580c;
}

.pink {
    background: #fce7f3;
    color: #db2777;
}

.gray {
    background: #e5e7eb;
    color: #374151;
}

.green {
    background: #dcfce7;
    color: #16a34a;
}.sidebar {
    align-self: stretch;
    overflow: visible;
}

.sidebar .nav {
    position: absolute;
    top: 220px;
    left: 0;
    width: 240px;
    z-index: 999;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar .nav:hover {
    transform: translateX(4px);
}.nav button {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-img-icon {
    width: 18px;
    height: 18px;

    object-fit: contain;

    filter: brightness(0) invert(1);

    opacity: 0.9;

    margin-left: 2px;

}

.notice-url-row {
    width: calc(100vw - 320px);

    max-width: 1350px;

    margin: 0 auto;

    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.notice-card {
    flex: 1;

    min-width: 0;

    margin: 0;
}

.url-board {
    width: 260px;

    flex-shrink: 0;

    min-height: 420px;

    background: white;
    border: none;
    border-radius: 24px;

    padding: 28px;
    box-sizing: border-box;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.url-board h3 {
    margin: 0 0 22px;
    color: #2f4858;
    font-size: 24px;
    font-weight: 900;
}

.url-input-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.url-input-box input {
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #f4f6f8;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.url-input-box input:focus {
    background: white;
    box-shadow: 0 0 0 2px #dbeafe;
}

.url-input-box button {
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #2f4858;
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.url-link-item {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f8fafc;
    border-radius: 14px;

    padding: 12px 14px;
    margin-bottom: 10px;
}

.url-link-item::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #d8c3a5;
    border-radius: 50%;
}

.url-link-item a {
    flex: 1;
    color: #2f4858;
    text-decoration: none;
    font-weight: 800;
}

.url-link-item button {
    border: none;
    background: #f1f1f1;
    color: #555;
    padding: 6px 9px;
    border-radius: 9px;
    cursor: pointer;
}.url-board {
    width: 300px;
}

#urlList {
    display: grid;

    grid-auto-flow: column;

    grid-template-rows: repeat(3, auto);

    gap: 10px;

    overflow-x: auto;

    padding-bottom: 6px;

    margin-top: 14px;

    scrollbar-width: thin;
}

.url-link-item {
    width: 180px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    background: #f8fafc;

    border-radius: 14px;

    padding: 12px 14px;

    box-sizing: border-box;
}

.url-link-item a {
    flex: 1;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}.sidebar-clock {
    margin: 10px 18px 24px;

    background: rgba(255,255,255,0.08);

    border-radius: 18px;

    padding: 16px 12px;

    text-align: center;

    backdrop-filter: blur(4px);
}

#clockDate {
    color: rgba(255,255,255,0.72);

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}

#clockTime {
    color: white;

    font-size: 34px;

    font-weight: 900;

    letter-spacing: 1px;
}/* =========================
   스케줄 + 점심표 배치
========================= */

.schedule-main {
    flex: 1;

    padding: 45px 40px;

    background: #d6dbe1;

    overflow-x: auto;
}

.schedule-wrap {
    display: flex;

    align-items: flex-start;

    gap: 34px;

    width: max-content;

    margin: 0 auto;
}

/* =========================
   기존 스케줄 박스
========================= */

.schedule-card {
    width: 1050px;

    min-height: 860px;

    background: white;

    border-radius: 22px;

    padding: 40px 45px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    flex-shrink: 0;
}/* =========================
   스케줄 + 직원 점심시간 가로 배치
========================= */

.schedule-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 55px !important;

    padding: 45px 70px !important;

    overflow-x: auto !important;

    width: max-content !important;
}

.schedule-card {
    flex-shrink: 0 !important;
    width: 1050px !important;
}

.lunch-box {
    flex-shrink: 0 !important;

    width: 1180px !important;
    min-height: 860px !important;

    background: white !important;

    border-radius: 22px !important;

    padding: 36px 34px !important;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;

    box-sizing: border-box !important;
}

.lunch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.lunch-title {
    margin: 0;

    color: #2f4858;

    font-size: 34px;
    font-weight: 900;
}

.lunch-title span {
    font-size: 22px;
    font-weight: 800;
}

.lunch-legend {
    display: flex;
    gap: 22px;

    font-size: 15px;
    font-weight: 800;

    color: #2f4858;
}

.lunch-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    display: inline-block;
}

.slot-12 {
    background: #bfddff;
}

.slot-13 {
    background: #ffd1e3;
}

.slot-14 {
    background: #fff1a8;
}

.lunch-table-wrap {
    width: 100%;

    overflow: hidden;

    border: 1px solid #d8dee6;
    border-radius: 10px;
}

.monthly-lunch-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}

.monthly-lunch-table th,
.monthly-lunch-table td {
    border: 1px solid #d8dee6;

    text-align: center;
    vertical-align: middle;

    height: 38px;

    font-size: 13px;
    font-weight: 800;

    padding: 0;
}

.monthly-lunch-table th {
    background: #2f4858;

    color: white;
}

.monthly-lunch-table .name-cell {
    width: 72px;

    background: white;

    color: #111;

    font-size: 17px;
    font-weight: 900;
}

.monthly-lunch-table .day-cell {
    height: 32px;

    background: white;

    color: #111;
}

.monthly-lunch-table .sat {
    color: #2563eb !important;
}

.monthly-lunch-table .sun {
    color: #dc2626 !important;
}

.monthly-lunch-table .divider td {
    height: 14px;

    background: #eeeeee;
}

.lunch-cell {
    cursor: pointer;

    background: #ffffff;

    transition: 0.12s;
}

.lunch-cell:hover {
    background: #f8fafc;
}

.lunch-dot {
    width: 26px;
    height: 26px;

    margin: 0 auto;

    border-radius: 6px;
}

.time-12 .lunch-dot {
    background: #d8ebff;
}

.time-13 .lunch-dot {
    background: #ffd6e6;
}

.time-14 .lunch-dot {
    background: #fff3b8;
}

.lunch-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lunch-control button {
    width: 48px;
    height: 48px;

    border: none;
    border-radius: 14px;

    background: #2f4858;
    color: white;

    font-size: 24px;
    font-weight: 900;

    cursor: pointer;
}

.lunch-month-box {
    min-width: 140px;
    height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f4f6f8;

    border-radius: 14px;

    color: #2f4858;

    font-size: 18px;
    font-weight: 900;
}.logout-btn {
    width: 190px;
    height: 54px;

    border: none;
    border-radius: 16px;

    background: #dc2626;
    color: white;

    font-size: 18px;
    font-weight: 900;

    cursor: pointer;

    margin-top: 26px;
    margin-left: 24px;

    transition: 0.15s;
}

.logout-btn:hover {
    transform: scale(1.03);

    background: #b91c1c;
}.notice-add-btn,
.notice-delete-btn {
    appearance: none;

    border: none;

    outline: none;
}

.notice-add-btn:focus,
.notice-add-btn:active,
.notice-delete-btn:focus,
.notice-delete-btn:active {
    outline: none;

    box-shadow: none;
}.notice-add-btn,
.notice-delete-btn {
    transition: 0.12s ease;

    cursor: pointer;
}

.notice-add-btn:hover,
.notice-delete-btn:hover {
    transform: translateY(-2px);
}

.notice-add-btn:active,
.notice-delete-btn:active {
    transform: scale(0.94);
}