/* ===== 전역스타일 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Placeholder divs should not interfere with layout */
#header-placeholder,
#sidebar-placeholder,
#footer-placeholder {
  display: contents;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #333;
  background-color: #f5f7fa;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 400' preserveAspectRatio='none'%3E%3Cpath d='M0,400 L0,200 Q100,150 200,180 Q300,210 400,160 Q500,110 600,150 Q700,190 800,140 Q900,90 1000,130 Q1100,170 1200,120 Q1300,70 1400,100 L1400,400 Z' fill='rgba(5,150,105,0.03)'/%3E%3Cpath d='M0,400 L0,250 Q150,200 300,230 Q450,260 600,210 Q750,160 900,200 Q1050,240 1200,190 Q1300,140 1400,170 L1400,400 Z' fill='rgba(5,150,105,0.04)'/%3E%3Cpath d='M0,400 L0,300 Q200,270 400,290 Q600,310 800,280 Q1000,250 1200,270 Q1300,280 1400,260 L1400,400 Z' fill='rgba(5,150,105,0.05)'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, #f5f7fa 0%, #e8f5f1 100%);
  background-size: 100% 400px, 100% 100%;
  background-position: bottom, top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== Header ===== */
.header {
  width: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5a3d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav-links > a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav-links > a:hover {
  color: #2d5a3d;
}

.header-user {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

.header-user-wrapper {
  position: relative;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(45, 90, 61, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-user-info:hover {
  background-color: rgba(45, 90, 61, 0.2);
}

.header-user-email {
  color: #2d5a3d;
  font-size: 14px;
  font-weight: 500;
}

.header-profile-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45, 90, 61, 0.2);
}

/* ë"œë¡­ë‹¤ìš´ ë©"ë‰´ */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.header-user-wrapper:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background-color: #f7fafc;
  color: #667eea;
}

.dropdown-icon {
  font-size: 16px;
}

.header-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.header-btn-primary {
  background-color: #2d5a3d;
  color: white;
}

.header-btn-primary:hover {
  background-color: #234a2f;
}

.header-btn-secondary {
  background-color: transparent;
  color: #2d5a3d;
  border: 2px solid rgba(45, 90, 61, 0.3);
}

.header-btn-secondary:hover {
  background-color: rgba(45, 90, 61, 0.1);
  border-color: #2d5a3d;
}

.header-btn-logout {
  background-color: rgba(45, 90, 61, 0.1);
  color: #2d5a3d;
  border: 1px solid rgba(45, 90, 61, 0.3);
}

.header-btn-logout:hover {
  background-color: rgba(45, 90, 61, 0.2);
  transform: translateY(-1px);
}

/* ===== Sidebar (숨김) ===== */
.sidebar {
  display: none;
}

/* ===== Main Content ===== */
.main-content {
  margin-left: 0;
  padding: 32px 24px;
  min-height: calc(100vh - 150px);
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.content-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ===== Footer ===== */
.footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  color: #94a3b8;
  margin-left: 0;
  max-width: 900px;
  margin: 0 auto;
}

.footer a {
  color: #059669;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer a:hover {
  color: #047857;
  text-decoration: underline;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
  }

  .header-nav-tabs {
    gap: 4px;
  }

  .header-nav-tabs a {
    padding: 8px 16px;
    font-size: 14px;
  }

  .main-content {
    padding: 20px 16px;
  }

  .footer {
    padding: 24px 16px;
  }
}

/* ===== 스크롤바 스타일링 ===== */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}