@charset "UTF-8";

/* ========== 기본 색상 팔레트 ========== */
:root {
  /* 🎨 기본 색상 팔레트 */
  --ari-primary: #3f51b5; 
  --ari-bg-primary: #34495e;       	/* 주 배경 (Navy Gray) */
  --ari-bg-secondary: #2c3e50;     	/* 어두운 보조 배경 */
  --ari-primary-dark: #3367d6; 		/* hover 시 강조 */
  --ari-accent: #00c851;       		/* 성공 */
  --ari-danger: #ff4444;       		/* 실패, 경고 */
  --ari-warning: #ffbb33;      		/* 주의 */
  --ari-info: #33b5e5;         		/* 정보 */

  /* ⚙️ 배경/테두리/텍스트 */
  --ari-bg: #f9fafb;
  --ari-bg-light: #c0c0c0;
  --ari-bg-hover: #648db5;         	/* hover 강조 */
  --ari-border: #dcdfe3;
  --ari-text-primary: #ecf0f1;     	/* 주 텍스트 (밝은 회색) */
  --ari-text-secondary: #bdc3c7;   	/* 보조 텍스트 */
  --ari-text: #333333;
  --ari-text-light: #666666;
  --ari-accent-blue: #3498db;      	/* 액션 버튼 */
  --ari-accent-orange: #e67e22;    	/* 경고/삭제 버튼 */
  --ari-active: #fff;                     /* 활성 버튼 글자색 */
  --ari-disabled: #c8c8c8;                /* 비활성 버튼 배경색 */
  --ari-cursor-not-allowed: not-allowed;    /* 비활성 버튼 커서 */
  --ari-btn-primary: #007bff;               

  /* 📦 입력 필드용 */
  --ari-input-border: #ccc;
  --ari-input-focus: var(--ari-primary);
  
  --ari-border-light: #4e6a82;     /* 구분선 */
  --ari-bg-hover2: #005fa3;
}


/* =================================================================
 * 공통
 ================================================================ */

body {
	margin:0px 0px 0px 0px;
	padding:0px;
	background-color:#fff;
	font-family: 'Segoe UI', 'Malgun Gothic', Arial, sans-serif;
	font-size:12px;
	color:#000000;
	line-height:1.4em;
}
th, td, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, form, fieldset, p, blockquote, iframe { margin:0;	padding:0; }
ol, ul, li { list-style:none; padding:0; margin:0; }
hr { display: none; }
img { border:none; vertical-align:top; }
fieldset { border:none;}
legend { display:none; margin:0; padding:0;}
form {padding: 0px 0px;}

ol, ul, li { list-style:none; padding:0; margin:0; }
a { color: #000; text-decoration: none }
a:hover { color: #000; text-decoration: none }

.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }
.mt50 { margin-top: 50px; }

.ml10 { margin-left: 10px; }
.ml20 { margin-left: 10px; }


/* =================================================================
 * button
 ================================================================ */

button {
  background-color: #0078d7;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  margin-right: 6px;
}

button:hover {
  background-color: #005fa3;
}


.ari-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.ari-btn-primary {
  background: var(--ari-primary);
  color: #fff;
}
.ari-btn-primary:hover {
  background: #2c3fa3;
}
.ari-btn-outline {
  background: transparent;
  border: 1px solid var(--ari-primary);
  color: var(--ari-primary);
}

/* =================================================================
 * header
 ================================================================ */

/* 헤더 전체 */
#ari-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background-color: #2d3e50;
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
}

/* --- 왼쪽: 로고 + 타이틀 --- */
.ari-header-left {
  display: flex;
  align-items: center;
  width: 520px;
}
.ari-logo {
  white-space: nowrap;
  width: 48px;
  margin-right: 6px;
  font-size: 2rem;
}
.ari-logo img {
  vertical-align: middle;
}
.ari-logo #home {
  cursor: pointer;
}
.ari-title {
  font-weight: 600;
  white-space: nowrap;
}

/* --- 중앙: 상단/하단 2줄 --- */
.ari-header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
}
.ari-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ari-header-bottom {
  margin-top: 2px;
  color: #ffdf4a;
  font-size: 13px;
  line-height: 1.3;
  animation: ariGuestBlink 3s ease-in-out infinite;
}

/* 깜빡임 효과 */
@keyframes ariGuestBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- 오른쪽: 버튼 영역 --- */
.ari-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ari-btn-blue {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.ari-btn-blue:hover {
  background-color: #1a8fff;
}

/* 세션 시간 표시 */
.ari-session-time {
  color: #cbd5e0;
}


.ari-header #home { margin-right: 10px; cursor: pointer; }


/* =================================================================
 *
 ================================================================ */

.ari-footer {
	
  flex: 0 0 auto;              /* 높이 고정/콘텐츠 만큼 */
  box-sizing: border-box;
  padding: 10px 16px;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ari-text-secondary);
  border-top: 1px solid var(--ari-border-light);
  background: var(--ari-bg-primary);
	
}


/* ===========================
   Main Container
=========================== */


/* main container */
.ari-main-container {
    margin-top: 0px;
	padding: 0px;
}

.ari-main-container h2 {
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: bold;
}


/* ===========================
   Form
=========================== */


/* ✅ 메인 폼 */
#mainForm.ari-main-form {
  max-width: 500px;
  margin: 0 auto 20px auto;
  padding: 20px;
}

/* ✅ 라벨 & 인풋 */
.ari-main-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.ari-main-form input[type="text"],
.ari-main-form input[type="email"],
.ari-main-form input[type="password"]
 {
  width: 98%;
  padding: 8px 0 8px 5px;
  margin-right: 20px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 15px;
}

/* ✅ 버튼 */
.ari-main-form button {
  background-color: #0078d7;
  color: #fff;
  border: none;
  border-radius: 4px;
/*   padding: 8px 16px; */
  font-size: 15px;
  cursor: pointer;
  margin-right: 6px;
}

.ari-main-form button:hover {
  background-color: #005fa3;
}

.ari-main-form label.error {
    border: 0;
    width: 100%;
    font-size: 12px;
    color: red;
    font-weight: 100;
}

.ari-form-buttons {
	margin-bottom: 10px;
}

.ari-input-disabled {
    background-color: #ebebeb;
}

.ari-form-buttons button:disabled {
    background-color: var(--ari-disabled);
    cursor: var(--ari-cursor-not-allowed);
    color: #777;
    opacity: 0.6;
}


.ari-main-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 8px 10px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 15px;
  resize: vertical;  /* 세로 크기 조절 가능 (가로는 고정) */
  box-sizing: border-box;
  margin-bottom: 15px;
}

.ari-buttons { display: flex; gap: 10px; margin-bottom: 15px; }

/* 썸네일 그리드 */
.ari-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ari-gallery-item {
  position: relative;
  cursor: pointer;
}
.ari-gallery-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.25s ease;
}
.ari-gallery-item:hover img {
  transform: scale(1.05);
}

/* 오버레이 (삭제 버튼용) */
.ari-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
  z-index: 99;
}

.ari-gallery-item:hover .ari-gallery-overlay {
  opacity: 1;
}

/* 썸네일 위에 이름 오버레이 */
.ari-gallery-item .ari-gallery-name {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5); /* 어두운 배경 */
  padding: 5px;
  font-size: 14px;
  border-radius: 5px;
  text-align: center;
  width: 90%;
  box-sizing: border-box;
}

/* 이미지 hover 시 확대 효과 */
.ari-gallery-item:hover img {
  transform: scale(1.05);
}

/* 모달 내부 이미지 뷰어 */
.ari-gallery-viewer {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;        /* 화면 크기에 맞춰 제한 */
  overflow: hidden;
  border-radius: 8px;
  padding: 5px;
}

.ari-modal-prev, .ari-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  z-index: 10;
}

.ari-modal-prev {
  left: 20px;
}

.ari-modal-next {
  right: 20px;
}

.ari-modal-prev:hover, .ari-modal-next:hover {
  background: rgba(255,255,255,0.25);
}

.ari-custom-file-upload {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.ari-file-names {
  margin-top: 5px;
}
.ari-file-name {
    margin-left: 10px;
    color: #555;
}

/* ===========================
   switch
=========================== */

/* ✅ OTP 토글 행 전체 컨테이너 */
.ari-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  margin: 12px 0;
}

/* ✅ 왼쪽 라벨 */
.ari-switch-label {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
}

/* ✅ 오른쪽 영역(스위치+상태) */
.ari-switch-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ 스위치 버튼 디자인 */
.ari-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.ari-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ari-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d0d5d9;
  border-radius: 22px;
  transition: background-color .3s;
}
.ari-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform .3s;
}
input:checked + .ari-slider {
  background-color: #1a73e8;
}
input:checked + .ari-slider:before {
  transform: translateX(22px);
}

/* ✅ 상태 텍스트 */
#otpStatusText {
  font-weight: 500;
  font-size: 20px;
  color: #777;
  min-width: 28px;
  text-align: right;
}
input:checked ~ #otpStatusText {
  color: #1a73e8;
}

.ari-switch-right label {
  margin-bottom: 0;
}


/* ===========================================================
   🧩 ari-btn-wrap
   버튼 그룹을 가로 정렬 및 우측 정렬할 때 사용.
   관리자 목록 상단 등에서 자주 사용됨.
   =========================================================== */
.ari-btn-wrap {
  display: flex;
  justify-content: flex-end; /* 오른쪽 정렬 */
  align-items: center;
  gap: 8px; /* 버튼 간격 */
  margin: 10px 0 15px 0;
}

.ari-btn-wrap.left {
  justify-content: flex-start; /* 왼쪽 정렬용 보조 클래스 */
}

.ari-btn-wrap.center {
  justify-content: center; /* 가운데 정렬용 보조 클래스 */
}

.ari-btn-wrap .ari-btn,
.ari-btn-wrap .ari-btn-primary {
  margin: 0;
}

/* 🌸 기본 버튼 (이미 존재)
-------------------------------------------------- */
.ari-btn {
  display: inline-block;
  background: var(--ari-accent-blue, #3088e0);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.ari-btn:hover {
  background: var(--ari-accent-blue-hover, #2678d4);
}

/* 🌿 작은 버튼 버전 (추가)
-------------------------------------------------- */
.ari-btn.small {
  padding: 5px 10px;              /* 더 작게 */
  border-radius: 5px;
  font-size: 0.85rem;             /* 글자 약간 작게 */
  font-weight: 500;
  line-height: 1.4;
  vertical-align: middle;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ari-btn.small:hover {
  background: var(--ari-accent-blue-hover, #2678d4);
  transform: translateY(-1px);
}

/* ✨ 보조 색상 (선택사항)
-------------------------------------------------- */
.ari-btn.small.gray {
  background: #888;
}
.ari-btn.small.gray:hover {
  background: #666;
}

.ari-btn.small.red {
  background: #d9534f;
}
.ari-btn.small.red:hover {
  background: #c9302c;
}

.danger {
  background: #e14b4b;
  box-shadow: 0 2px 4px rgba(225, 75, 75, 0.25);
}
.danger:hover {
  background: #c93838;
  transform: translateY(-1px);
}


.ari-card {
  background: var(--ari-bg);
  border: 1px solid var(--ari-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ari-card-title {
  font-size: 0.9em;
  color: #777;
}

.ari-card-value {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--ari-primary);
  margin-top: 6px;
}


#mainForm input[type=password] { background: #f9f9f9; }
#mainForm input[type=checkbox] { width:auto; vertical-align: middle; }
#mainForm label.hidden { display: none; }

@media (min-width: 769px) {
  .ari-header-toggle {
      display: none;
  }
}

@media (max-width: 768px) {

  h2 { 
    font-size: 22px !important;
    margin: 20px 0 16px 0 !important; 
  }
  
  .ari-title {
    font-size: 20px;
    font-weight: 200;
  }

  /* 전체 header를 세로형으로 전환 */
  #ari-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size:12px;
    padding: 12px 14px;
    gap: 12px;
  }

  /* 왼쪽: 로고/타이틀 영역 */
  .ari-header-left {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  /* 중앙: 세션/환영메시지 — 가급적 줄바꿈 허용 */
  .ari-header-center {
    display: flex;
    width: 100%;
    padding: 0;
  }

  .ari-header-top {
    flex-wrap: wrap;
  }

  /* 오른쪽 버튼 영역 → 햄버거로 숨기기 */
  .ari-header-right {
    display: none;  /* 기본 숨김 */
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  /* 오른쪽 버튼이 세로로 길게 배치됨 */
  .ari-header-right button {
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    border-radius: 6px;
  }

  /* 햄버거 버튼 추가 스타일 */
  .ari-header-toggle {
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-block;
    color: #fff;
  }
}