/*
 * DEVC API 가이드 공통 스타일
 * DEVC1000~1300, main.html 등 API 가이드 페이지들에서 공통으로 쓰이는
 * 헤더/좌우 메뉴 레이아웃 + 아코디언/탭/파라미터표 등 API 문서 컴포넌트 스타일.
 * 각 페이지 inline <style> 에서 중복되던 부분을 추출한 파일입니다.
 */

html, body{
    height:100%;
}

.menu{
    display:flex;
    margin-left: 240px;
    gap:55px;
}

#container{
    display:flex;
    min-height:calc(100vh - 80px);
}

#left-area{
    width:260px;
    border-right:1px solid #ddd;
    background:#fafafa;
}

#content-area{
    margin-left:60px;
    margin-top:120px;
    margin-bottom: 40px;
    padding:30px;
    border:1px solid rgba(226,226,226);
    border-radius:10px;

    display:flex;
    gap:60px;
    
    width: 80%;
}

.title {
	font-size : 14px;
}

.font-b {
	color : #0047ff;
}

.font-g {
	color : rgba(118, 118, 118);
}

.header-content {
	font-weight: bold;
	font-size: 32px;
	margin-top: 10px;
}

#main-content{
    flex:1;
    min-width:0;
}

#right-menu{
    width:200px;
    position:sticky;
    top:120px;
    align-self:flex-start;
    border-left: 2px solid #2962ff;
    padding-left: 10px;
}

#right-menu ul{
    list-style:none;
    padding:0;
}

#right-menu li{
    margin:8px 0;
}

#right-menu a{
    text-decoration:none;
    color:#666;
    font-size:14px;
}

#main-content h2,
#main-content .title{
    scroll-margin-top:120px;
}

.title-content {
	font-size: 24px;
	font-weight: bold;
	margin-top: 80px;
}

.content-top {
	margin-top: 15px;
	font-size: 16px;
}

.content-top a {
	color:#0047ff;
}

.flow-box {
	display: flex;
	margin-top: 15px;
	border: 1px solid rgba(226,226,226);
	gap: 20px;
	flex-wrap: wrap;
	border-radius: 10px;
	padding: 5px;
	justify-content: center;
}

.content-box {
	margin-top: 15px;
	border: 1px solid rgba(226,226,226);
	padding: 20px 10px;
	border-radius: 10px;
	background:#fafafa;
}

.content-box p {
	padding: 5px;
}

.guide-img{
    width:auto;
    max-width:100%;
    display:block;
    margin:auto;
}

.flow-img{
	margin: 5px 0;
    width: 47%;
    box-sizing: border-box;
}

.flow-box a {
    width: 400px;
}

.flow-box a img {
    width: 100%;
    display: block;
    height: 270px;
    border: 1px solid black;
}

.img-box {
	margin-top: 15px;
	border: 1px solid rgba(226,226,226);
	padding: 20px 10px;
	border-radius: 10px;
}

.content-box a {
	color:#0047ff;
}

.env-wrap{
    border:1px solid #dfe5df;
    background:#fafafa;
    width:100%;
    margin-top: 15px;
}

.env-tab{
    display:flex;
    border-bottom:1px solid #dfe5df;
}

.tab-btn, .tab-btn2, .tab-btn3, .tab-btn4, .tab-btn5{
    background:none;
    border:none;
    padding:16px 24px;
    cursor:pointer;
    font-size:18px;
    font-weight:600;
    color:#7a8795;
    position:relative;
}

.tab-btn.active, .tab-btn2.active, .tab-btn3.active, .tab-btn4.active, .tab-btn5.active {
    color:#222;
}

.tab-btn.active:after, .tab-btn2.active:after, .tab-btn3.active:after, .tab-btn4.active:after, .tab-btn5.active:after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    background:#00b050;
}

.api-url-box{
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 20px;
}

.method{
    background:#00b050;
    color:#fff;
    font-weight:bold;
    padding:5px 12px;
    border-radius:4px;
}

#apiUrl, #apiUrl2, #apiUrl3, #apiUrl4, #apiUrl5{
    font-size:16px;
    color:#555;
}

.copy-btn{
    border:none;
    background:none;
    cursor:pointer;
    font-size:18px;
}

.api-section h2{
    margin:30px 0 15px;
    font-size:32px;
    font-weight:700;
    color:#222;
}

.accordion{
    border:1px solid #d9e2ea;
    border-radius:4px;
    margin-bottom:15px;
    overflow:hidden;
    background:#fff;
}

.accordion-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 24px;
    cursor:pointer;
    font-size:18px;
    font-weight:600;
    color:#444;
    background:#fff;
}

.accordion-header:hover{
    background:#f8fafc;
}

.arrow{
    font-size:24px;
    color:#999;
    transition:transform .3s;
}

.accordion.active .arrow{
    transform:rotate(90deg);
}

.accordion-body{
    display:none;
    padding:20px;
    border-top:1px solid #edf2f7;
    background:#fafbfc;
}

.accordion.active .accordion-body{
    display:block;
}

.accordion-body pre{
    margin:0;
    white-space:pre-wrap;
    font-family:Consolas, monospace;
    font-size:14px;
    line-height:1.6;
}

.param-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    font-size:15px;
}

.param-table th{
    background:#f3f6f9;
    color:#444;
    font-weight:600;
    text-align:center;
    padding:12px;
    border:1px solid #dfe5eb;
    text-align: center;
}

.param-table td{
    padding:12px;
    border:1px solid #dfe5eb;
    vertical-align:center;
    text-align: center;
}

.param-table tbody tr:hover{
    background:#fafcff;
}

.example-box {
    background:#1e2348;
    color:#fff;
    border-radius:12px;
    padding:32px;
    margin-top:16px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.example-box pre {
    margin:0;
    font-size:16px;
    line-height:1.9;
    font-family:
        "JetBrains Mono",
        Consolas,
        monospace;
}

.example-title {
    font-size: 16px;
    font-weight: 600;
    color: #6ea8ff;
    margin-bottom: 12px;
    border-bottom: 1px solid white;
}

.key {
    color:#7dd3fc;
}

.string {
    color:#facc15;
}

.request_post {
	color:#2e7d32;
	font-weight:600;
}

.url{
    color:#7dd3fc;
    font-weight:600;
}

.key-name{
    color:#93c5fd;
    font-weight:600;
}

#header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:white;
    border-bottom:1px solid #ddd;
    z-index:1000;
}

/* 내부 정렬 */
.header-inner{
    width:100%;
    height:80px;
    
	white-space:nowrap;

    margin:0;
    display:flex;
    align-items:center;

    font-family:'Noto Sans KR';
    font-size:18px;
    font-weight:bold;
}

/* 로고 */
.logo{
    display:flex;
    align-items:center;
    text-decoration:none;
    margin-left:20px;
}

/* 개발자센터 글자 */
.dev-title{
    margin-left:8px;
    color:#333;
}

.menu-item{
    position:relative;
}

.menu-item::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-10px;
    height:10px;
}

.menu-item > a{
    display:block; 
    padding:20px 10px; 

    text-decoration:none;
    color:#333;
}

.submenu{
    position:absolute;

    top:100%;
    left:50%;
    transform:translateX(-50%);

    margin-top:5px;

    min-width:180px;

    background:white;
    border:1px solid #ddd;
    border-top: 2px solid #0047ff;

    list-style:none;
    padding:10px 0;
    margin-left:0;

    display:none;
}

.menu-item > a:hover,
.menu-item.active > a {
	color : #0047ff;
}

.menu-item:hover .submenu{
    display:block;
}

.submenu li a{
    display:block;
    padding:10px 15px;

    text-decoration:none;
    color:#333;
    font-size:14px;
}

.submenu li a:hover{
    background:#f5f5f5;
    color:#0047ff;
}

.contact-btn{
	margin-right: 20px;
    width: 100px;
    height: 50px;
    padding: 11px 0;

    background:#3b82f6;
    color:white;
    text-align: center;

    border-radius:6px;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
}

.contact-btn:hover{
    background:#2563eb;
}

.dev_server {
	margin-left:auto;
    margin-right: 20px;
    font-size: 16px;
}

.dev_server > a {
	text-decoration: none;
	color: #333;
}

#left-container{
    position:relative;
    display:flex;
}

a {
	text-decoration:none;
	color:#333;
}

#left-menu{
    position:sticky;
    top:80px;
    left:0;
    width:230px;

    height:calc(100vh - 80px); 
    border-right:1px solid #ddd;
    background:#fafafa;

    overflow-y:auto; 
}

#left-menu.hide{
    margin-left: -230px;
}

#menu-toggle{
    position:fixed;
    left:210px;
    top:200px;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f3f3f3;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    transition:all 0.3s;
    font-size:18px;
}

#left-container.hide #menu-toggle{
    left:10px;
}

.menu-group{
    list-style:none;
    padding:0;
    margin:0;
    /* border-bottom: 1px solid rgb(226, 226, 226); */
    margin-top: 15px;
}

.menu-group li{
    position:relative;
}

.menu-title {
	margin-top: 30px;
	margin-left: 40px;
	font-weight:bold;
	font-size: 24px;
}

.menu-group > li:hover {
	color: #0047ff;
}

.menu-header.active a{
    color:#0047ff;
    font-weight:bold;
}

#left-inner.hide{
    margin-left: -230px;
}
