@charset "utf-8";

/* ============================================================================
   Reloj 다크 테마 - basic-sidebar 위젯 (우측 슬라이드 패널)
   ============================================================================ */

/* sidebar Box - 메인 컨테이너 */
#sidebar-box {
	top: 0;
	width: 320px;
	height: 100%;
	position: fixed;
	z-index: 99998;
	background: #1a1c2e;
	color: #d8d8e0;
	font-family: "Jost", "Noto Sans KR", sans-serif;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}
#sidebar-box * { box-sizing: border-box; }

#sidebar-box .sidebar-content {
	position: relative;
	padding: 16px 20px;
	overflow: auto;
	overflow-x: hidden;
	height: 100%;
	-webkit-overflow-scrolling: touch;
}
#sidebar-box .sidebar-content::-webkit-scrollbar { width: 4px; }
#sidebar-box .sidebar-content::-webkit-scrollbar-track { background: transparent; }
#sidebar-box .sidebar-content::-webkit-scrollbar-thumb { background: #404A60; border-radius: 4px; }

#sidebar-box .sidebar-head {
	position: absolute;
	top: 0; left: -1px;
	width: 321px;
	height: 4px;
	background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
	z-index: 10;
}

#sidebar-box a, #sidebar-box a:visited { color: #d8d8e0; text-decoration: none; }
#sidebar-box a:hover, #sidebar-box a:focus { color: #65FF4B; text-decoration: none; }

/* 마스크 */
#sidebar-box-mask {
	display: none;
	position: fixed;
	z-index: 99997;
	background: rgba(0, 0, 0, 0.7);
	left: 0; top: 0;
	width: 100%; height: 100%;
}

/* 섹션 타이틀 */
#sidebar-box .div-title-underline-thin {
	margin: 0 0 12px;
	padding: 0 0 8px;
	color: #ffffff;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#sidebar-box .div-title-underline-thin b { color: #ffffff; }

/* 공백 클래스 */
#sidebar-box .h10 { height: 10px; }
#sidebar-box .h15 { height: 15px; }
#sidebar-box .h20 { height: 20px; }
#sidebar-box .h30 { height: 30px; }

/* ===== 버튼 ===== */
#sidebar-box .btn {
	border: 0;
	border-radius: 8px;
	padding: 8px 12px;
	font-weight: 500;
	font-size: 13px;
	transition: background 0.2s, color 0.2s;
}
#sidebar-box .btn-navy,
#sidebar-box .btn-default {
	background: #31334E;
	color: #ffffff;
}
#sidebar-box .btn-navy:hover,
#sidebar-box .btn-default:hover {
	background: #65FF4B;
	color: #121519;
}
#sidebar-box .btn-color,
#sidebar-box .btn-primary {
	background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
	color: #121519;
	font-weight: 600;
}
#sidebar-box .btn-block { display: block; width: 100%; }
#sidebar-box .btn-sm { padding: 6px 10px; font-size: 12px; }

#sidebar-box .btn-group { display: flex; gap: 4px; }
#sidebar-box .btn-group-justified { display: flex; width: 100%; }
#sidebar-box .btn-group-justified > .btn { flex: 1; }

/* ===== 아이콘 타일 (탑 5개 아이콘 영역) ===== */
#sidebar-box .sidebar-icon-tbl { display: table; width: 100%; table-layout: fixed; }
#sidebar-box .sidebar-icon-cell {
	display: table-cell;
	text-align: center;
	vertical-align: top;
	padding: 8px 4px;
	color: #d8d8e0;
	transition: color 0.2s;
}
#sidebar-box .sidebar-icon-cell:hover { color: #65FF4B; }
#sidebar-box .sidebar-icon-cell span {
	display: block;
	font-size: 11px;
	letter-spacing: -0.3px;
	margin-top: 6px;
	color: inherit;
}
#sidebar-box .sidebar-icon-cell i { font-size: 20px; }

/* ===== 메뉴 ===== */
#sidebar-box .sidebar-menu { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
#sidebar-box .sidebar-menu a { display: block; }
#sidebar-box .sidebar-menu .panel {
	background: none;
	margin-top: 0;
	line-height: 24px;
	border: 0;
	box-shadow: none;
}

#sidebar-box .sidebar-menu .ca-head {
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#sidebar-box .sidebar-menu .ca-head > a {
	padding: 10px 12px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
}
#sidebar-box .sidebar-menu .ca-head > a:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #65FF4B;
}
#sidebar-box .sidebar-menu .ca-head.active > a {
	color: #65FF4B !important;
	font-weight: 600 !important;
	background: rgba(101, 255, 75, 0.08);
}
#sidebar-box .sidebar-menu .ca-head > a.no-sub::after {
	top: 0;
	font-family: "FontAwesome";
	float: right;
	position: relative;
	content: "\f105";
	color: rgba(255, 255, 255, 0.4);
}
#sidebar-box .sidebar-menu .ca-head > a > .ca-href {
	display: inline-block;
	width: 30px;
	cursor: pointer;
}
#sidebar-box .sidebar-menu .ca-head > a > .ca-href::after {
	top: 0;
	float: right;
	position: relative;
	content: "+";
	color: rgba(255, 255, 255, 0.4);
}
#sidebar-box .sidebar-menu .ca-head.active > a > .ca-href::after {
	font-family: "FontAwesome";
	content: "\f107";
	color: #65FF4B;
}
#sidebar-box .sidebar-menu .ca-sub {
	padding: 0;
	margin: 0;
	list-style: none;
	background: rgba(0, 0, 0, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#sidebar-box .sidebar-menu .ca-sub li {
	padding: 8px 25px 8px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
#sidebar-box .sidebar-menu .ca-sub li:last-child { border-bottom: 0; }
#sidebar-box .sidebar-menu .ca-sub li.on a { color: #65FF4B !important; font-weight: 600 !important; }
#sidebar-box .sidebar-menu .ca-line {
	border: 0;
	background: rgba(255, 255, 255, 0.02);
	color: #ffffff;
	font-weight: 600;
}

/* ===== 검색 ===== */
#sidebar-box .sidebar-search {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: #24263A;
	padding: 10px;
	margin-bottom: 12px;
	border-radius: 12px;
}
#sidebar-box .sidebar-search .row { margin-left: -3px; margin-right: -3px; }
#sidebar-box .sidebar-search .row > div { padding-left: 3px; padding-right: 3px; }
#sidebar-box .sidebar-search .form-control,
#sidebar-box .sidebar-search input[type="text"] {
	background: #1a1c2e;
	border: 1px solid #404A60;
	color: #ffffff;
	border-radius: 8px;
	height: auto;
	padding: 6px 10px;
	font-size: 13px;
	box-shadow: none;
}
#sidebar-box .sidebar-search .form-control::placeholder,
#sidebar-box .sidebar-search input::placeholder { color: #888a9a; }

/* ===== 미디어 (알림/쪽지 항목) ===== */
#sidebar-box .sidebar-media {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin: 0 0 8px;
	padding: 0 0 8px;
	line-height: 20px;
	color: #d8d8e0;
}
#sidebar-box .sidebar-media .media-photo i {
	background: #31334E;
	border-radius: 50%;
	padding: 8px;
	width: 40px;
	height: 40px;
	text-align: center;
	font-size: 22px;
	display: inline-block;
	color: #d8d8e0;
}
#sidebar-box .sidebar-media .media-photo img {
	border-radius: 50%;
	width: 40px !important;
	height: 40px !important;
	display: inline-block;
}
#sidebar-box .sidebar-media .media-heading,
#sidebar-box .sidebar-media .media-body { color: #d8d8e0; }
#sidebar-box .sidebar-media .media-info { font-size: 12px; color: #888a9a; }
#sidebar-box .sidebar-media .media-info i { margin-left: 10px; }

/* ===== 로그인 / 프로필 ===== */
#sidebar-box .sidebar-login label {
	line-height: 1.4 !important;
	font-weight: 400;
	cursor: pointer;
	color: #d8d8e0;
	font-size: 12px;
}
#sidebar-box .sidebar-login .profile { padding: 8px 0 12px; overflow: hidden; }
#sidebar-box .sidebar-login .profile .photo { margin-right: 12px; }
#sidebar-box .sidebar-login .profile .photo img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
}
#sidebar-box .sidebar-login .profile .photo i {
	width: 60px;
	height: 60px;
	font-size: 30px;
	padding: 15px 0 0;
	text-align: center;
	background: #31334E;
	color: #d8d8e0;
	border-radius: 50%;
}
#sidebar-box .sidebar-login .profile h3 {
	font-size: 16px;
	line-height: 32px;
	padding: 0;
	margin: 0;
	letter-spacing: -0.5px;
	color: #ffffff;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#sidebar-box .sidebar-login .form-group { margin-bottom: 10px; }
#sidebar-box .sidebar-login .input-group {
	background: #31334E;
	border: 1px solid #404A60;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
}
#sidebar-box .sidebar-login .input-group-addon {
	background: transparent;
	border: 0;
	color: #888a9a;
	padding: 6px 10px;
}
#sidebar-box .sidebar-login .form-control,
#sidebar-box .sidebar-login input[type="text"],
#sidebar-box .sidebar-login input[type="password"] {
	background: transparent;
	border: 0;
	color: #ffffff;
	box-shadow: none;
	padding: 6px 10px 6px 0;
	font-size: 13px;
	flex: 1;
}
#sidebar-box .sidebar-login input::placeholder { color: #888a9a; }
#sidebar-box .sidebar-login input[type="checkbox"] { accent-color: #65FF4B; margin-right: 4px; }

/* SNS 로그인 */
#sidebar-box .sidebar-sns-login img { margin: 5px 0 0; width: 20%; float: left; }

/* ===== 리스트 ===== */
#sidebar-box .sidebar-list {
	padding: 0;
	margin: 0;
	list-style: none;
}
#sidebar-box .sidebar-list a {
	display: block;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: #d8d8e0;
	font-size: 13px;
	transition: background 0.2s, color 0.2s;
}
#sidebar-box .sidebar-list a:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #65FF4B;
}
#sidebar-box .sidebar-list.list-links a::after {
	top: 0;
	font-family: "FontAwesome";
	float: right;
	position: relative;
	content: "\f105";
	color: rgba(255, 255, 255, 0.3);
}
#sidebar-box .sidebar-list.list-links a.no-fa::after { content: ""; }
#sidebar-box .sidebar-list .pull-right { color: #65FF4B; font-size: 12px; }

/* ===== 프로그레스바 (포인트/레벨) ===== */
#sidebar-box .progress {
	position: relative;
	border-radius: 100px;
	height: 24px;
	overflow: hidden;
	margin-bottom: 12px;
	background: #31334E;
	box-shadow: none;
}
#sidebar-box .progress-bar,
#sidebar-box .progress-bar-blue {
	background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
	color: #121519;
	font-weight: 600;
	box-shadow: none;
}
#sidebar-box .progress .sr-only {
	margin: 0 12px;
	left: 0;
	width: auto;
	height: 24px;
	line-height: 24px;
	font-size: 12px;
	clip: auto;
	color: #ffffff;
}
#sidebar-box .sr-score {
	height: 24px;
	line-height: 24px;
	font-size: 12px;
	padding-right: 8px;
	color: #d8d8e0;
}
#sidebar-box .sr-secret {
	display: inline-block;
	padding: 0;
	margin: 0;
	line-height: 12px;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: 0 0;
	width: 12px;
	height: 12px;
	background-image: url('./img/icon_secret.gif');
	filter: invert(1);
}

/* ===== 강조 색상 (amina 기본 컬러를 Reloj 액센트로 매핑) ===== */
#sidebar-box .crimson,
#sidebar-box .red,
#sidebar-box .orangered,
#sidebar-box b.crimson,
#sidebar-box b.orangered { color: #65FF4B !important; }
#sidebar-box .blue,
#sidebar-box b.blue { color: #FFFB1F !important; }
#sidebar-box .green { color: #65FF4B !important; }
#sidebar-box .gray,
#sidebar-box .text-muted { color: #888a9a !important; }
#sidebar-box .font-12 { font-size: 12px; }

/* 배지 */
#sidebar-box .badge {
	background: #65FF4B;
	color: #121519;
	font-weight: 600;
	border-radius: 10px;
	font-size: 11px;
	padding: 2px 8px;
}

/* clearfix */
#sidebar-box .clearfix::after { content: ""; display: table; clear: both; }
#sidebar-box .pull-left { float: left; }
#sidebar-box .pull-right { float: right; }
#sidebar-box .text-center { text-align: center; }

/* ===== 닫기 버튼 (윙) ===== */
#sidebar-box .sidebar-wing {
	position: absolute;
	width: 36px;
	z-index: 1;
	text-align: center;
}
#sidebar-box .sidebar-wing-close {
	background: #1a1c2e;
	color: #ffffff;
	font-size: 18px;
	font-weight: 300 !important;
	width: 36px;
	height: 50px;
	line-height: 50px !important;
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
#sidebar-box .sidebar-wing-close:hover {
	background: linear-gradient(94deg, #65FF4B 0%, #FFFB1F 100%);
	color: #121519;
	border-color: transparent;
}

/* 위치 (PC: 우측, 모바일: 좌측) */
@media (min-width: 481px) {
	#sidebar-box {
		right: -360px;
		border-left: 1px solid rgba(255, 255, 255, 0.08);
		margin-left: 40px;
	}
	#sidebar-box .sidebar-wing { left: 0; margin-left: -35px; }
	#sidebar-box .sidebar-wing-close { border-right: 0; border-radius: 8px 0 0 8px; }
}
@media (max-width: 480px) {
	#sidebar-box {
		left: -360px;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
		margin-right: 40px;
	}
	#sidebar-box .sidebar-wing { right: 0; margin-right: -35px; }
	#sidebar-box .sidebar-wing-close { border-left: 0; border-radius: 0 8px 8px 0; }
}

@media (min-width: 768px) {
	#sidebar-box { padding-bottom: 0; }
	#sidebar-box .sidebar-wing { top: 20%; }
	#sidebar-box .sidebar-wing-icon { border-right: 0; display: block; }
}
@media (max-width: 767px) {
	#sidebar-box { padding-bottom: 0; }
	#sidebar-box .sidebar-wing { top: 35%; }
	#sidebar-box .sidebar-wing-icon { display: none; }
}
