/* 채팅·면접 일정 페이지 전용 CSS */
/* 헤더 스타일은 style.css에서 관리 */
  

.chat-panel {
    height: 1016px;
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff; 
}

.chat-list {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid #e8eaed;
    background: #fff;
}

.chat-list-head {
    height: 73px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px;
}

.chat-list-head strong {
    font-size: 16px;
    font-weight: 750;
}

.chat-list-head span {
    color: #73819a;
    font-size: 13px;
}

.chat-search {
    height: 40px;
    margin: 13px 23px 19px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 6px;
    background: #fff;
}

.chat-search svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #71849c;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.chat-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #536172;
    font-size: 13px;
}

.chat-search input::placeholder {
    color: #8997a8;
}

.chat-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 61px;
}

.chat-item {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 72px;
	align-items: start;
	width: 100%;
	min-height: 112px;
	padding: 16px 18px 15px 15px;
	border: 0;
	border-left: 3px solid transparent;
	column-gap: 12px;
	border-top: 1px solid #eee;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease;
}

.chat-item:hover {
    background: #f8fafc;
}

.chat-item.is-active {
    border-left-color: #1f5eff;
    background: #f4f7ff;
}

.chat-item:focus-visible {
    outline: 2px solid #1f5eff;
    outline-offset: -2px;
}
  
.chat-item .profile-logo {
	width: 44px;
	height: 44px;
	flex-shrink:0;
}

.chat-info {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
	align-items: flex-start;
}	

.chat-name-row {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.chat-name-row strong {
	max-width: 52%;
	overflow: hidden;
	font-size: 16px;
	font-weight: 600;
	color: #202733;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.chat-dept {
	margin-left: 9px;
	font-size: 14px;
	color: var(--color-text-sub);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
 

.chat-message {
	display: -webkit-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden; 
	font-size: 14px;
	line-height: 1.5;
	color: #7d8794;
	white-space: normal;
	word-break: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.chat-side { 
	display: flex;
	width: 72px;
	min-height: 78px;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
}

.chat-side time {
	margin-left: auto;
	font-size: 12px;
	font-weight: 400;
	color: #71809a;
	white-space: nowrap;
} 

.unread {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	aspect-ratio:1;
	border-radius: 50%;
	background: #171717;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
}

.chat-notice {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 61px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 17px;
    background: #f7f9fb;
    color: #71829a;
}

.chat-notice svg {
    width: 15px;
    height: 15px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.chat-notice span {
    font-size: 13px;
}

.chat-room {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 23px 24px;
    scroll-behavior: smooth;
}

.message-form {
    height: 76px;
    min-height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 23px;
    border-top: 1px solid #e9ebed;
    background: #fbfcfd;
    box-sizing: border-box;
}

.attach-btn {
    width: 25px;
    height: 30px;
    flex: 0 0 25px;
    padding: 3px;
    border: 0;
    background: transparent;
}

.attach-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #111;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-form input {
    width: 100%;
    height: 50px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 15px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
    outline: 0;
    color: #252a30;
    font-size: 13px;
    box-sizing: border-box;
}

.message-form input:focus {
    border-color: #b9c8da;
}

.send-btn {
    width: 110px;
    height: 50px;
    min-width: 110px;
    flex: 0 0 110px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.room-head {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px;
    border-bottom: 1px solid #e9ebed;
}

.room-profile {
    display: flex;
    align-items: center;
    gap: 13px;
}

.room-profile .profile-logo {
    width: 42px; 
}

.room-profile div {
    display: flex;
    flex-direction: column;
}

.room-profile strong {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

.room-profile b {
    margin-top: 1px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.room-profile small {
    color: #7b8ba1;
    font-size: 13px;
    line-height: 1.4;
}

.room-head-right {
    display: flex;
    align-items: center;
    gap: 23px;
}

.room-state {
    height: 25px;
    padding: 0 14px;
}

.room-menu-btn {
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.room-menu-btn i {
    width: 15px;
    height: 2px;
    background: #171717;
}

.room-actions {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 23px;
    border-bottom: 1px solid #e9ebed;
}

.action-btn {
    height: 41px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    color: #20252b;
    font-size: 13px;
    font-weight: 650;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #111;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.messages {
    flex: 1;
    overflow: auto;
    padding: 14px 23px 24px;
    scroll-behavior: smooth;
}

.date-divider {
    display: flex;
    justify-content: center;
    margin: 0 0 15px;
}

.date-divider span {
    padding: 6px 16px;
    border-radius: 999px;
    background: #f7f9fb;
    color: #8190a3;
    font-size: 13px;
}

.system-note,
.manager-note {
    width: 390px;
    margin: 0 auto 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #dcdfe3;
    border-radius: 12px;
    background: #f7f7f7;
    color: #68788e;
}

.system-note strong {
    display: block;
    color: #6c7e94;
    font-size: 13px;
    font-weight: 650;
}

.system-note p,
.manager-note p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.manager-note {
    margin-bottom: 28px;
}

.manager-note small {
    display: block;
    margin-top: 7px;
    font-size: 13px;
}

.system-icon {
    width: 18px;
    height: 18px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #666;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.message-row {
    display: flex; 
    gap: 9px;
    margin: 0 0 18px;
}

.message-row.received {
    justify-content: flex-start;
}

.message-row.sent {
    justify-content: flex-end;
}

.mini-avatar {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    background: #f7f9fc;
    color: #3171d5;
    font-size: 12px;
}

.message-row .bubble {
    max-width: 62%;
    padding: 10px 15px;
    border-radius: 10px;
    background: #f7f9fb;
    color: #2b3036;
    font-size: 13px;
    line-height: 1.55;
}

.message-row.sent .bubble {
    background: #eef6ff;
}

.message-row time {
    color: #8190a2;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 3px;
	    display: flex;
    align-items: flex-end;
}

.schedule-card {
    width: 400px;
    margin: 22px auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #b9d9ff;
    border-radius: 12px;
    background: #eef6ff;
}

.schedule-icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #1676e8;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.schedule-card strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

.schedule-card small {
    display: block;
    margin-top: 4px;
    color: #78899e;
    font-size: 13px;
    line-height: 1.45;
}

.schedule-card p {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.decision-card {
    margin-top: 24px;
}

.decision-actions {
    width: 400px;
    display: flex;
    gap: 20px;
    margin: 0 auto 20px;
}

.decision {
    flex: 1;
    height: 53px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    background: #fff;
}

.decision.reject {
    border: 1px solid #ffc4c1;
    background: #fff3f2;
    color: #242424;
}

.decision.accept {
    border: 1px solid #b9d9ff;
    background: #eff7ff;
    color: #242424;
}

.message-form {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 23px;
    border-top: 1px solid #e9ebed;
    background: #fbfcfd;
}

.attach-btn {
    width: 25px;
    height: 30px;
    flex: none;
    padding: 3px;
    border: 0;
    background: transparent;
}



.message-form input {
    height: 50px;
    min-width: 0;
    flex: 1;
    padding: 0 15px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
    outline: 0;
    color: #252a30;
    font-size: 13px;
}



.send-btn {
    width: 110px;
    height: 50px;
    flex: none;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.floating-menu {
    position: absolute;
    z-index: 10;
    top: 76px;
    right: 0;
    width: 164px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(20, 25, 30, 0.22);
    display: none;
}

.floating-menu.is-open {
    display: block;
}

.floating-menu a,
.floating-menu button {
    width: 100%; 
    padding: 8px  ;
    border: 0;
    background: #fff; 
    text-align: left;
    font-size: 13px;
	border-radius:5px;
	display:block;
}

.floating-menu [hidden] {
    display: none !important;
}

.floating-menu a:hover,
.floating-menu button:hover {
    background: var(--bg);
}

@media (max-width: 1100px) { 

    .chat-panel {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .floating-menu {
        right: 0;
    }
}

@media (max-width: 800px) { 

    .chat-panel {
        height: calc(100vh - 150px);
        min-height: 650px;
        grid-template-columns: 300px minmax(500px, 1fr);
    }
}

@media (max-width: 620px) {
    .chat-panel {
        grid-template-columns: 100%;
        height: auto;
        min-height: 0;
    }

    .chat-list {
        height: 520px;
        border-right: 0;
    }

    .chat-room {
        height: 760px;
        border-top: 1px solid #e8eaed;
    }
 

    .room-actions {
        overflow: auto;
        white-space: nowrap;
    }

    .floating-menu {
        right: 10px;
    }

    .message-form {
        padding: 0 12px;
    }

    .send-btn {
        width: 80px;
    }
}
