/* =========================================================
   SERO 관리자 대시보드 스타일
   ========================================================= */
:root{
  --navy:#0b2545;
  --deep-navy:#08192f;
  --air-blue:#2e7ee0;
  --sky:#3ea8ff;
  --mint:#14d8c4;
  --gray-100:#eef2f6;
  --gray-300:#ccd6e0;
  --gray-500:#7c8ba1;
  --gray-700:#445369;
  --text-dark:#0f2033;
  --radius-md:16px;
  --radius-sm:10px;
  --font:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:var(--font);
  background:#f2f6fa;
  color:var(--text-dark);
}
a{text-decoration:none;color:inherit;}

/* ---------- Login View ---------- */
.login-view{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, var(--deep-navy), var(--navy) 60%, #123a63);
  padding:24px;
}
.login-box{
  background:#fff;
  border-radius:24px;
  padding:44px 38px;
  max-width:400px;
  width:100%;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.5);
  position:relative;
}
.login-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--gray-500);
  margin-bottom:18px;
}
.login-logo{font-size:22px;font-weight:900;color:var(--navy);margin-bottom:20px;}
.login-logo span{color:var(--air-blue);font-size:14px;font-weight:700;margin-left:4px;}
.login-box h1{font-size:22px;font-weight:800;margin:0 0 8px;color:var(--navy);}
.login-note{font-size:14px;color:var(--gray-500);margin:0 0 26px;}
.login-form label{display:block;font-size:13px;font-weight:700;color:var(--navy);margin-bottom:8px;}
.pw-wrap{position:relative;margin-bottom:8px;}
.pw-wrap input{
  width:100%;
  padding:14px 46px 14px 16px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--gray-100);
  font-size:16px;
  letter-spacing:2px;
}
.pw-wrap input:focus{outline:none;border-color:var(--air-blue);}
.pw-wrap button{
  position:absolute;
  right:12px;top:50%;
  transform:translateY(-50%);
  background:none;border:none;
  color:var(--gray-500);
  cursor:pointer;
  font-size:16px;
}
.login-error{color:#e5484d;font-size:13px;min-height:18px;margin:4px 0 14px;font-weight:600;}
.btn-login{
  width:100%;
  padding:15px 0;
  border:none;
  border-radius:100px;
  background:linear-gradient(135deg,var(--air-blue),var(--sky));
  color:#fff;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  transition:transform .2s ease;
}
.btn-login:hover{transform:translateY(-2px);}
.login-security-note{
  margin-top:26px;
  font-size:12px;
  line-height:1.6;
  color:var(--gray-500);
  background:var(--gray-100);
  border-radius:var(--radius-sm);
  padding:14px;
}
.login-security-note i{color:#e0a800;margin-right:6px;}

/* ---------- Dashboard ---------- */
.dash-view{display:none;min-height:100vh;}
.dash-header{
  background:var(--navy);
  padding:18px 0;
  position:sticky;top:0;z-index:50;
}
.dash-header-inner{
  max-width:1200px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;
}
.dash-logo{font-size:18px;font-weight:900;color:#fff;}
.dash-logo span{color:var(--sky);font-weight:700;font-size:13px;margin-left:4px;}
.dash-header-actions{display:flex;gap:10px;flex-wrap:wrap;}
.btn-ghost{
  display:flex;align-items:center;gap:6px;
  background:rgba(255,255,255,0.1);
  color:#fff;
  border:1px solid rgba(255,255,255,0.2);
  padding:9px 16px;
  border-radius:100px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s;
}
.btn-ghost:hover{background:rgba(255,255,255,0.2);}

.dash-main{max-width:1200px;margin:0 auto;padding:36px 24px 80px;}
.dash-title{font-size:24px;font-weight:800;color:var(--navy);margin:0 0 24px;}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:32px;
}
.stat-card{
  background:#fff;
  border-radius:var(--radius-md);
  padding:24px;
  box-shadow:0 10px 26px -16px rgba(11,37,69,0.2);
}
.stat-label{display:block;font-size:13px;color:var(--gray-500);font-weight:700;margin-bottom:10px;}
.stat-value{font-size:30px;font-weight:900;color:var(--navy);}
@media (max-width:800px){.stat-grid{grid-template-columns:repeat(2,1fr);}}

.table-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.toolbar-left{display:flex;gap:10px;flex-wrap:wrap;}
.toolbar-left input, .toolbar-left select{
  padding:10px 14px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--gray-100);
  font-size:14px;
  font-family:var(--font);
}
.toolbar-left input{min-width:220px;}

.table-wrap{
  background:#fff;
  border-radius:var(--radius-md);
  overflow-x:auto;
  box-shadow:0 10px 26px -16px rgba(11,37,69,0.2);
}
.inquiry-table{width:100%;border-collapse:collapse;min-width:920px;}
.inquiry-table th, .inquiry-table td{
  padding:14px 16px;
  font-size:13.5px;
  text-align:left;
  border-bottom:1px solid var(--gray-100);
  white-space:nowrap;
}
.inquiry-table thead th{
  background:#f7fafd;
  color:var(--gray-700);
  font-weight:700;
  position:sticky;top:0;
}
.inquiry-table tbody tr:hover{background:#f8fbfe;}
.empty-row{text-align:center;color:var(--gray-500);padding:40px 0;}
.status-badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:100px;
  font-size:12px;
  font-weight:700;
  color:#fff;
}
.status-신규문의{background:#2e7ee0;}
.status-연락대기{background:#e0a800;}
.status-상담중{background:#17c3e6;}
.status-예약완료{background:#8a5cf6;}
.status-상담완료{background:#14d8c4;}
.status-취소{background:#a0a8b4;}
.btn-detail{
  background:var(--navy);
  color:#fff;
  border:none;
  padding:7px 14px;
  border-radius:100px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.btn-detail:hover{background:var(--air-blue);}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed;inset:0;
  background:rgba(8,25,47,0.55);
  display:none;
  align-items:center;justify-content:center;
  z-index:900;
  padding:20px;
}
.modal-overlay.show{display:flex;}
.modal-box{
  background:#fff;
  border-radius:20px;
  padding:36px;
  max-width:480px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.4);
}
.modal-close{
  position:absolute;top:18px;right:18px;
  background:var(--gray-100);
  border:none;
  width:34px;height:34px;
  border-radius:50%;
  cursor:pointer;
  color:var(--gray-700);
}
.modal-box h2{font-size:19px;font-weight:800;color:var(--navy);margin:0 0 20px;}
.detail-list{margin:0 0 20px;}
.detail-list div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:9px 0;
  border-bottom:1px solid var(--gray-100);
  font-size:14px;
}
.detail-list dt{color:var(--gray-500);font-weight:600;flex:0 0 90px;}
.detail-list dd{margin:0;color:var(--text-dark);text-align:right;word-break:break-word;}
.detail-status-row, .detail-memo-row{margin-bottom:18px;}
.detail-status-row label, .detail-memo-row label{
  display:block;font-size:13px;font-weight:700;color:var(--navy);margin-bottom:8px;
}
.detail-status-row select, .detail-memo-row textarea{
  width:100%;
  padding:11px 14px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--gray-100);
  font-size:14px;
  font-family:var(--font);
}
.detail-save-msg{font-size:13px;color:var(--mint);font-weight:700;margin-top:10px;text-align:center;min-height:18px;}

.pw-change-form label{display:block;font-size:13px;font-weight:700;color:var(--navy);margin:14px 0 8px;}
.pw-change-form input{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--gray-100);
  font-size:14px;
}
.pw-change-error{color:#e5484d;font-size:13px;min-height:18px;margin:10px 0;font-weight:600;}
