/* Crowny Class 슈퍼어드민 - 한국형 대시보드 스타일 */
:root {
  /* 브랜드 색상 */
  --brand-primary: #D53A6B;
  --brand-secondary: #3B7DD6;

  /* 강조 색상 */
  --accent-primary: #8A38F5;
  --accent-secondary: #3B67F6;

  /* 한국형 대시보드 색상 (토스/카카오 스타일) */
  --bg-main: #F2F4F6;
  --bg-card: #FFFFFF;
  --bg-hover: #F7F8FA;
  --bg-selected: #EEF1F6;

  /* 테두리 */
  --border-light: #E5E8EB;
  --border-medium: #D1D6DB;
  --border-dark: #B0B8C1;

  /* 텍스트 - 더 진하게 */
  --text-primary: #191F28;
  --text-secondary: #4E5968;
  --text-tertiary: #8B95A1;
  --text-disabled: #ADB5BD;

  /* 상태 색상 - 진하고 명확하게 */
  --status-success: #00C73C;
  --status-success-bg: #E8F9ED;
  --status-warning: #FF9500;
  --status-warning-bg: #FFF4E5;
  --status-error: #FF3B30;
  --status-error-bg: #FFEBEB;
  --status-info: #007AFF;
  --status-info-bg: #E5F1FF;

  /* 사이드바 */
  --sidebar-bg: #1B1D21;
  --sidebar-hover: #2B2D35;
  --sidebar-active: #8A38F5;

  /* 그림자 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* 그라데이션 텍스트 */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--brand-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 그라데이션 버튼 */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--brand-primary));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* 카드 - 한국형 스타일 */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* 테이블 스타일 */
.table-container {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.table-header {
  background: var(--bg-selected);
  border-bottom: 1px solid var(--border-medium);
}

.table-row {
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.15s;
}

.table-row:hover {
  background-color: var(--bg-hover);
}

.table-row:last-child {
  border-bottom: none;
}

/* 상태 뱃지 - 더 명확하게 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: var(--status-success-bg);
  color: #00A32E;
}

.badge-warning {
  background: var(--status-warning-bg);
  color: #CC7700;
}

.badge-error {
  background: var(--status-error-bg);
  color: #CC2F26;
}

.badge-info {
  background: var(--status-info-bg);
  color: #0062CC;
}

/* 통계 카드 */
.stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.blue::before { background: #3B82F6; }
.stat-card.purple::before { background: #8B5CF6; }
.stat-card.green::before { background: #10B981; }
.stat-card.orange::before { background: #F59E0B; }
.stat-card.pink::before { background: #EC4899; }

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-change {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up { color: var(--status-success); }
.stat-change.down { color: var(--status-error); }

/* 입력 필드 */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(138, 56, 245, 0.15);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

/* 검색바 */
.search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--text-tertiary);
}

/* 버튼 */
.btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #7B2FE0;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
}

/* 탭 */
.tab-list {
  display: flex;
  gap: 4px;
  background: var(--bg-selected);
  padding: 4px;
  border-radius: 10px;
}

.tab-item {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-item:hover {
  color: var(--text-primary);
}

.tab-item.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* 플로팅 애니메이션 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* 반응형 */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}
