@charset "utf-8";
/*************************************************************************
* @ 서비스명   : contents
* @ 파일명     : /css/contents.css
* @ 페이지설명  : contents.css
**************************************************************************/

:root{
  --header-h: 60px;
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 60px;
  --purple-1:#5a0ca1;
  --purple-2:#2e006b;
  --bg:#f6f7fb;
  --card:#fff;
  --text:#2b2b2b;
}

/* -------- RESET -------- */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);}

/* -------- TOP FIXED WHITE HEADER -------- */
.topbar{
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:#fff; border-bottom:1px solid #ececec;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 16px; z-index:3000;
}
.brand {
  display:flex; align-items:center; gap:10px;
}
.brand .logo{width:28px;height:28px;border-radius:50%;background:#7d2bc8}
.brand .title{font-weight:700; letter-spacing:.5px;}
.brand .menu-btn{font-size:20px; cursor:pointer;margin-left:20px;}
.profile{display:flex; align-items:center; gap:10px;}
.profile .avatar{width:34px;height:34px;border-radius:50%; background:#c9c9c9}

/* -------- SIDEBAR -------- */
.sidebar{
  position:fixed; top:var(--header-h); left:0; bottom:0;
  width:var(--sidebar-w);
  background:linear-gradient(180deg,var(--purple-2),var(--purple-1));
  color:#fff; z-index:2600;
  transition: width .28s ease;
  overflow-y:auto; padding:18px 0;
}
.sidebar.collapsed { width: var(--sidebar-collapsed-w); }
.menu-section{padding:10px 20px 6px; font-size:12px; letter-spacing:.6px; opacity:.8; text-transform:uppercase;color: #fff;}
.nav{list-style:none}
.nav > li{
  padding:12px 16px; cursor:pointer; color:#eef;
  display:flex; align-items:center; gap:12px; position:relative;
}
.nav > li:hover{background:rgba(255,255,255,.09)}
.nav i.icon{width:18px; text-align:center}
.nav .label{flex:1; transition: opacity .2s ease;}
.sidebar.collapsed .label,
.sidebar.collapsed .chev,
.sidebar.collapsed .menu-section{display:none;}

/* dropdown */
.has-children .submenu{
  display:none; padding:6px 0 6px 46px; background:rgba(0,0,0,.12);
}
.has-children.open .submenu{display:block}
.has-children.open .chev{transform:rotate(180deg)}
.submenu a{
  display:block; color:#dcdcf7; text-decoration:none; padding:7px 0; font-size:14px;
}
.submenu a:hover{color:#fff}

/* -------- OVERLAY -------- */
.overlay{
  position:fixed; top:var(--header-h); left:0; right:0; bottom:0;
  background:rgba(0,0,0,.4); z-index:2500; display:none;
}

/* -------- CONTENT -------- */
.content{
  min-height:100vh;
  padding: calc(var(--header-h) + 16px) 16px 24px;
  margin-left: var(--sidebar-w);
  transition: margin-left .28s ease;
}
.sidebar.collapsed ~ .content{margin-left: var(--sidebar-collapsed-w);}
.container{
  background:var(--card); border-radius:12px; padding:20px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

/* pills */
.pills{display:flex; gap:10px; margin:10px 0 16px}
.pills button{
  padding:8px 14px; border:1px solid #e7e7e7; background:#fff; border-radius:8px; cursor:pointer
}
.pills button.active{background:#5a0ca1;color:#fff;border-color:#5a0ca1}

/* filters */
.filters{margin:12px 0 16px}
.select, .input, .btn{
  padding:10px 12px; border:1px solid #dcdde3; border-radius:8px; background:#fff; font-size:14px;
}
.btn.primary{background:#5a0ca1; color:#fff; border-color:#5a0ca1;width:70px;}
#daterange {width:250px;border:1px solid #dcdde3;}
/* table */
.table-wrap{overflow-x:auto; background:#fff; border-radius:10px}
table{width:100%; border-collapse:collapse; min-width:1100px}
th,td{padding:12px 10px; border-bottom:1px solid #eee; text-align:left; font-size:14px}
th{background:#fafafa; font-weight:600}

/* action row */
.actions{display:flex; gap:8px; margin-bottom:12px}
.actions .btn{padding:8px 12px}

/* 아이콘 버튼 */
.btn-icon {
  background: #6a0dad;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.2s;
}
.btn-icon:hover {
  background: #5a0bb5;
}
.btn-icon i {
  font-size: 16px;
}

/* 드롭다운 */
.custom-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px;
  padding: 6px 0;
  z-index: 3000; /* 모달보다 낮고, 테이블보다 높게 */
}
.custom-dropdown .dropdown-item {
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.custom-dropdown .dropdown-item:hover {
  background: #f4f4f4;
}

/* 모달 공통 */
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}
.custom-modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  margin: 80px auto;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.custom-modal-content h4 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}
.custom-modal .close {
  right: 14px;
  top: 10px;
  font-size: 22px;
  color: #666;
  cursor: pointer;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #6a0dad;
  color: #fff;
}
.btn-light {
  background: #f4f4f4;
  color: #333;
}
.btn-danger {
  background: #d9534f;
  color: #fff;
}

.btn-icon {
  background: #6a0dad;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.2s;
}
.btn-icon:hover {
  background: #5a0bb5;
}
.btn-icon i {
  font-size: 18px; /* 아이콘 조금 더 크게 */
}

.action-menu {
  position: relative;
  display: inline-block;
}



/* -------- RESPONSIVE -------- */
@media (max-width: 1024px){
  .filters{grid-template-columns:1fr 1fr; }
}
@media (max-width: 768px){
  .sidebar{transform:translateX(-100%);}
  .sidebar.active{transform:translateX(0);}
  .overlay.active{display:block;}
  .content{margin-left:0;}
  .brand .logo,
  .brand .title {display:none;}
}


/* 전체 배경 */
.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e003d, #6a0dad);
  font-family: 'Poppins', sans-serif;
}

/* 메인 컨테이너 */
.login-body .login-container {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
}

/* 로그인 박스 */
.login-body .login-box {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-body .login-container .logo {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.login-body .logo img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  border-radius: 50%;
}

.login-body .logo span {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.login-body h1 {
  font-size: 32px;
  margin: 0 0 12px 0;
  font-weight: 700;
  color: #111;
}

.login-body .subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 15px;
}

.login-body .form-group {
  margin-bottom: 25px;
}

.login-body label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-body input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}

.login-body input:focus {
  border-color: #6a0dad;
  box-shadow: 0 0 0 2px rgba(106,13,173,0.2);
}

.login-body button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6a0dad, #9a4dff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.login-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(106,13,173,0.3);
}

.login-body .help-text {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

.login-body .help-text a {
  color: #6a0dad;
  text-decoration: none;
  font-weight: 500;
}

.login-body .help-text a:hover {
  text-decoration: underline;
}

/* 이미지 박스 */
.login-body .image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-body .image-box img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* 반응형 처리 */
@media (max-width: 768px) {
  .login-body .login-container {
    grid-template-columns: 1fr;
  }
  .login-body .image-box {
    display: none;
  }
}

.daterangepicker {
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.daterangepicker .calendar {
    border: none;
}

.daterangepicker .drp-buttons {
    text-align: right;
}

.daterangepicker .applyBtn {
    background-color: #4f46e5;
    border: none;
    border-radius: 6px;
    color: #fff;
}

.daterangepicker .cancelBtn {
    background-color: #e5e7eb;
    border: none;
    border-radius: 6px;
    color: #374151;
}
