/* ========================================
   꾀꼬리 관리자 페이지 스타일
======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard Variable', system-ui, -apple-system, sans-serif; background: #f0f2f5; color: #2c3e50; min-height: 100vh; }

/* 로그인 화면 */
#login-screen, #no-access { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); padding: 48px 40px; text-align: center; max-width: 400px; width: 90%; }
.login-card h1 { font-size: 1.8em; margin-bottom: 8px; color: #2c3e50; }
.login-card p { color: #6c757d; margin-bottom: 24px; }

/* 버튼 */
.btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-google { background: #fff; border: 2px solid #e0e0e0; color: #333; display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; font-size: 15px; }
.btn-google:hover { background: #f8f9fa; border-color: #4285F4; }
.btn-google svg { flex-shrink: 0; }
.btn-grant { background: #27ae60; color: #fff; }
.btn-grant:hover { background: #219a52; }
.btn-deduct { background: #e74c3c; color: #fff; }
.btn-deduct:hover { background: #c0392b; }
.btn-view { background: #3498db; color: #fff; }
.btn-view:hover { background: #2980b9; }

/* 헤더 */
.admin-header { background: #fff; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.admin-header h1 { font-size: 1.3em; color: #2c3e50; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-right span { color: #6c757d; font-size: 13px; }
#logout-btn { background: #e9ecef; color: #495057; }

/* 탭 */
.admin-tabs { display: flex; gap: 0; background: #fff; border-bottom: 2px solid #e9ecef; padding: 0 32px; overflow-x: auto; }
.tab { padding: 14px 24px; border: none; background: none; font-size: 14px; font-weight: 600; color: #6c757d; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; white-space: nowrap; }
.tab:hover { color: #2c3e50; }
.tab.active { color: #3498db; border-bottom-color: #3498db; }

/* 탭 내용 */
.tab-content { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 1.2em; }

/* 검색 */
.search-input { padding: 8px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; width: 240px; transition: border-color 0.2s; }
.search-input:focus { outline: none; border-color: #3498db; }

/* 테이블 */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
thead { background: #f8f9fa; }
th { padding: 12px 16px; text-align: left; font-size: 13px; color: #6c757d; font-weight: 600; border-bottom: 2px solid #e9ecef; }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
tr:hover { background: #f8fcff; }
.point-cell { font-weight: 700; color: #27ae60; }

/* 상태 표시 */
.status-pending { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.status-done { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.type-grant { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.type-deduct { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }

/* 포인트 폼 */
.point-form { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); max-width: 500px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #6c757d; margin-bottom: 6px; }
.form-group select, .form-group input[type="number"], .form-group input[type="text"] {
  width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus { outline: none; border-color: #3498db; }
.point-display { font-size: 1.4em; font-weight: 800; color: #27ae60; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-actions .btn { flex: 1; padding: 12px; font-size: 15px; }

/* 빈 메시지 */
.empty-msg { text-align: center; color: #adb5bd; padding: 40px; font-size: 14px; }

/* 모달 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 12px; overflow: hidden; width: 95%; max-width: 1200px; height: 90vh; }
.modal-full { width: 95%; max-width: 1400px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.modal-header h3 { font-size: 1em; color: #2c3e50; }

/* 반응형 */
@media (max-width: 768px) {
  .admin-header { padding: 12px 16px; }
  .admin-header h1 { font-size: 1.1em; }
  .admin-tabs { padding: 0 12px; }
  .tab { padding: 12px 16px; font-size: 13px; }
  .tab-content { padding: 0 12px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
  .point-form { padding: 20px; }
  .form-actions { flex-direction: column; }
  .modal-content { width: 100%; height: 100vh; border-radius: 0; }
  .header-right span { display: none; }
}
