/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0px 0.5rem 10px;
  min-height: 70px;
  flex-wrap: nowrap;
}

.nav-brand {
  margin-right: 4rem;
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand .logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  padding: 5px 0;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.8rem;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
}

.nav-menu > li {
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

/* Login button styling - only for top-level login link */
.nav-menu > li:last-child > a[href="/login"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  border-radius: 8px;
}

.nav-menu > li:last-child > a[href="/login"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: white;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown > a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-color);
  padding-left: 1.5rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
  list-style: none;
}

/* Mega Dropdown - 2-level menu */
.mega-dropdown {
  position: relative;
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.has-submenu > a i {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.has-submenu:hover > a i {
  opacity: 1;
}

/* Submenu on the right */
.submenu-right {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-left: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
}

.has-submenu:hover .submenu-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-right li {
  margin: 0;
}

.submenu-right a {
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  display: block;
}

.submenu-right a:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-color);
  padding-left: 1.5rem;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.nav-toggle:hover {
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.05);
}

.nav-toggle i {
  transition: transform 0.3s ease;
}

.nav-toggle.active i {
  transform: rotate(90deg);
}

/* Hero Section with Slider */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.7) 0%, rgba(30, 64, 175, 0.7) 100%);
  z-index: 1;
}

/* Slide Content - 각 슬라이드별 텍스트 */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-slide.active .slide-content {
  /* 컨테이너 자체는 항상 보임 */
}

.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 900px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active .slide-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 4;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.page-section {
  min-height: calc(100vh - 200px);
  padding-top: 120px;
  padding-bottom: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* About Section */
.about {
  background: var(--bg-light);
}

/* About Tabs */
.about-tabs {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  border-bottom: 2px solid #e5e7eb;
  flex-wrap: wrap;
}

.about-tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: -2px;
}

.about-tab-btn:hover {
  color: var(--primary-color);
  background: #f3f4f6;
}

.about-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.about-tab-btn i {
  font-size: 1.125rem;
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.about-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-item {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.about-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Products Section */
.products {
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.product-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.product-link:hover {
  gap: 0.75rem;
}

/* Service Section */
.service {
  background: var(--bg-light);
}

.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Contact Section */
.contact {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-item p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-light);
  padding: 0;
  border-radius: 12px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Menu Header */
  .nav-menu::before {
    content: '';
    display: block;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67e22 100%);
    flex-shrink: 0;
  }
  
  .nav-menu > li {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .nav-menu > li:last-child {
    border-bottom: none;
  }
  
  .nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    position: relative;
  }
  
  .nav-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary-color);
    transition: width 0.2s ease;
  }
  
  .nav-menu > li > a:hover::after,
  .nav-menu > li > a.active::after {
    width: 4px;
  }
  
  .nav-menu > li > a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.8rem;
  }
  
  .nav-menu > li > a i {
    font-size: 1rem;
    width: 20px;
    margin-right: 0.75rem;
    color: #666;
    transition: color 0.2s ease;
  }
  
  .nav-menu > li > a:hover i {
    color: var(--primary-color);
  }
  
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .about-content,
  .products-grid,
  .service-content {
    grid-template-columns: 1fr;
  }
}

/* Auth Pages */
.auth-section {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 450px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Register Container - Wide Layout */
.register-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.register-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
  margin-top: -0.25rem;
}

.btn-full {
  width: 100%;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* User Info in Navigation */
.user-info {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.user-info:hover {
  color: var(--primary-color);
}

/* Admin Page */
.admin-section {
  background: var(--bg-light);
  padding: 0;
  min-height: 100vh;
}

.admin-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 30px 2rem 30px; /* Reduced from 100px */
}

.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

.admin-tabs::-webkit-scrollbar {
  height: 6px;
}

.admin-tabs::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.admin-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  margin-bottom: -2px;
  flex-shrink: 0;
  min-width: fit-content;
}

/* 하위 탭 스타일 */
.tab-btn.sub-tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  border-left: 3px solid #e5e7eb;
  border-bottom: none;
  margin-left: 1.5rem;
}

.tab-btn.sub-tab:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
  border-left-color: var(--primary-color);
}

.tab-btn.sub-tab.active {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.tab-btn i {
  font-size: 0.95rem;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.08);
  font-weight: 600;
}

.tab-content {
  display: none !important;
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block !important;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.admin-table tr:hover {
  background: var(--bg-light);
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.role-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

.role-badge.user {
  background: #dbeafe;
  color: #1e40af;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background: var(--secondary-color);
}

.perm-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Support Page - Manufacturer Grid */
.support {
  min-height: calc(100vh - 80px);
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--bg-light);
}

.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.manufacturer-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  min-height: 150px;
}

.manufacturer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.manufacturer-logo {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.manufacturer-card:hover .manufacturer-logo {
  transform: scale(1.1);
}

.manufacturer-info {
  text-align: center;
  width: 100%;
}

.manufacturer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-align: center;
  line-height: 1.4;
}

.manufacturer-name-en {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  text-align: center;
}



/* Vehicle Models Page */
.vehicle-models {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.manufacturer-header {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow);
}

.manufacturer-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.manufacturer-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.vehicle-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}

/* 좌측 사이드바 */
.vehicle-sidebar {
  width: 250px;
  background: white;
  min-height: calc(100vh - 200px);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.vehicle-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vehicle-list li {
  border-bottom: 1px solid var(--border-color);
}

.vehicle-list li a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.vehicle-list li:hover a,
.vehicle-list li.active a {
  background: var(--primary-color);
  color: white;
}

/* 메인 컨텐츠 */
.vehicle-main {
  flex: 1;
  padding: 0;
  background: white;
}

/* 필터 섹션 */
.vehicle-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.year-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  min-width: 150px;
}

.year-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Quick Link 섹션 */
.quick-link-section {
  margin-top: 2rem;
}

.quick-link-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.quick-link-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.quick-link-table thead {
  background: var(--primary-color);
  color: white;
}

.quick-link-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link-table th:last-child {
  border-right: none;
}

.quick-link-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.quick-link-table tbody tr:hover {
  background: var(--bg-light);
}

.quick-link-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.quick-link-table td:last-child {
  border-right: none;
}

.year-cell {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
}

.check-cell {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.check-cell i {
  transition: transform 0.2s ease;
}

.quick-link-table tbody tr:hover .check-cell i {
  transform: scale(1.2);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .vehicle-content {
    flex-direction: column;
  }

  .vehicle-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .vehicle-list {
    display: flex;
    flex-wrap: wrap;
  }

  .vehicle-list li {
    flex: 0 0 50%;
    border-right: 1px solid var(--border-color);
  }

  .vehicle-list li:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .manufacturer-header h1 {
    font-size: 1.8rem;
  }

  .manufacturer-header p {
    font-size: 0.95rem;
  }

  .vehicle-main {
    padding: 1rem;
  }

  .quick-link-table {
    font-size: 0.85rem;
  }

  .quick-link-table th,
  .quick-link-table td {
    padding: 0.5rem 0.25rem;
  }

  .vehicle-list li {
    flex: 0 0 100%;
    border-right: none;
  }

  .vehicle-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .year-select {
    width: 100%;
  }
}

/* Category Selection Page */
.category-selection {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  padding: 3rem 0;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  justify-content: space-between;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0;
  max-width: 260px;
  text-align: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: currentColor;
}

.category-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.category-icon i {
  font-size: 2.5rem;
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.category-title-en {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.category-arrow {
  font-size: 1.5rem;
  text-align: right;
  transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(8px);
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.manufacturer-header h1 i {
  margin-right: 0.75rem;
}

/* Responsive Design for Category Grid */
@media (max-width: 900px) {
  .category-grid {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .category-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .category-grid {
    flex-direction: column !important;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .category-card {
    padding: 0;
    max-width: 100%;
    flex: 1;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .category-title {
    font-size: 1.5rem;
  }
}

/* Document Management in Admin Page */
.document-upload-form {
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.document-upload-form h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.upload-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.upload-form .form-group {
  display: flex;
  flex-direction: column;
}

.upload-form .form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.upload-form .form-group input,
.upload-form .form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
}

.upload-form .form-group input:focus,
.upload-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.upload-form .form-group small {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.btn-primary {
  padding: 0.875rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.document-list {
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.document-list h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.filter-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 180px;
}

.text-center {
  text-align: center;
  padding: 0;
  color: var(--text-light);
}

/* Responsive Design for Document Management */
@media (max-width: 768px) {
  .upload-form .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
  }
}

/* Folder Management UI */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-item:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-light);
}

.folder-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: #dc2626 !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

.btn-warning {
  background: #f59e0b !important;
  color: white !important;
}

.btn-warning:hover {
  background: #d97706 !important;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
  min-height: 150px;
}

.folder-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.folder-icon {
  font-size: 3.5rem;
  color: #f59e0b;
  margin-bottom: 1rem;
  text-align: center;
}

.folder-name {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.documents-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.documents-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.document-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.document-card:hover {
  border-color: #dc2626;
  box-shadow: var(--shadow);
}

.document-icon {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.document-name {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.4rem 0.6rem;
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

.btn-icon:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-icon.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-icon.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Responsive Design for Folder Management */
@media (max-width: 1400px) {
  .folders-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .documents-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 1200px) {
  .folders-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .documents-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {
  .folders-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .documents-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .documents-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .manufacturers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .folder-card,
  .manufacturer-card {
    padding: 1.25rem 0.5rem;
  }
  
  .folder-icon,
  .manufacturer-logo {
    font-size: 2rem;
  }
  
  .folder-name,
  .manufacturer-name {
    font-size: 0.85rem;
  }

  .folder-actions {
    flex-direction: column;
  }

  .folder-actions button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .folders-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .manufacturers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .folder-card,
  .manufacturer-card {
    padding: 1rem 0.25rem;
    min-height: 100px;
  }
  
  .folder-icon,
  .manufacturer-logo {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .folder-name,
  .manufacturer-name {
    font-size: 0.75rem;
  }
}

/* Folder View Section (Customer View) */
.folder-view-section {
  padding-top: 80px;
  min-height: 100vh;
  background: #f9fafb;
}

.folder-content {
  padding: 3rem 0;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.folder-item,
.document-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.folder-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #f59e0b;
}

.document-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #dc2626;
}

.folder-icon,
.document-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.folder-item:hover .folder-icon,
.document-item:hover .document-icon {
  transform: scale(1.1);
}

.folder-name,
.document-name {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
  color: #1f2937;
}

.empty-folder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

/* Responsive Design for Folder View */
@media (max-width: 768px) {
  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .folder-item,
  .document-item {
    padding: 1.5rem 1rem;
  }
  
  .folder-icon,
  .document-icon {
    font-size: 2.5rem;
  }
  
  .folder-name,
  .document-name {
    font-size: 0.875rem;
  }
}

/* Subscription Management */
.subscription-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.subscription-badge.public {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px dashed #d1d5db;
}

.subscription-badge.free {
  background: #e5e7eb;
  color: #374151;
}

.subscription-badge.premium {
  background: #dbeafe;
  color: #1e40af;
}

.subscription-badge.vip {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6b21a8;
  font-weight: 600;
  border: 1px solid #c084fc;
}

.subscription-badge.expired {
  background: #fee2e2;
  color: #991b1b;
}

.subscription-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  position: relative;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  margin: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.modal-close:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.modal-content h2 {
  margin: 0;
  padding: 1.5rem 2rem;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  border-radius: 16px 16px 0 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
}

.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}

.form-group input[type="date"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  /* Register Page Mobile */
  .register-container {
    padding: 1.5rem;
  }
  
  .register-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* About Tabs Mobile */
  .about-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }
  
  .about-tab-btn {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 0;
  }
  
  .about-tab-btn.active {
    background: var(--primary-color);
    color: white;
  }
}

/* Products Page Styles */
.products-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.products-page .container {
  max-width: 1300px;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-header h1 i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb i {
  font-size: 0.7rem;
}

/* Category Grid */
.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 100%;
  justify-content: space-between;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.category-icon i {
  font-size: 2.5rem;
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.category-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-card:hover .category-link {
  gap: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  padding-right: 1.75rem;
}

/* Subcategory Grid */
.section-subtitle {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.subcategory-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.subcategory-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.subcategory-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.subcategory-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Product List Grid */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-item-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg-light);
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item-card:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.original-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.sale-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e74c3c;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Empty Products */
.empty-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-products i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-products p {
  font-size: 1.1rem;
}

/* Product Detail Page */
.product-detail-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.product-detail-images {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.main-image.no-image i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.thumbnail-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-images img:hover {
  border-color: var(--primary-color);
  opacity: 0.8;
}

.thumbnail-images img.active {
  border-color: var(--primary-color);
}

.product-detail-info {
  padding: 1rem 0;
}

.product-badge-large {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-meta i {
  color: var(--primary-color);
}

.product-price-box {
  background: var(--bg-light);
  padding: 0;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.original-price-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.original-price-large .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.original-price-large .price {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.sale-price-large {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sale-price-large .label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.sale-price-large .price {
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
}

.sale-price-large .discount {
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.current-price-large {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.current-price-large .label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.current-price-large .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-price-large {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-price-large i {
  margin-right: 0.5rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-actions .btn {
  padding: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.stock-info {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.in-stock {
  color: #27ae60;
  font-weight: 600;
}

.in-stock i {
  margin-right: 0.5rem;
}

.out-of-stock {
  color: #e74c3c;
  font-weight: 600;
}

.out-of-stock i {
  margin-right: 0.5rem;
}

/* Product Detail Tabs */
.product-detail-tabs {
  margin-top: 4rem;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-button {
  padding: 1rem 2rem;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  color: var(--primary-color);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.product-description {
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
  width: 30%;
}

.specs-table td {
  color: var(--text-dark);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - Products */
@media (max-width: 900px) {
  .category-grid {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .category-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .category-grid {
    flex-direction: column !important;
  }
  
  .category-card {
    max-width: 100%;
    flex: 1;
  }
  
  .subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-detail-images {
    position: static;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-actions {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    overflow-x: auto;
  }
  
  .tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Admin Products Page */
.admin-products-page,
.admin-product-form-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.admin-products-page .page-header,
.admin-product-form-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-actions {
  margin-bottom: 2rem;
}

.products-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.admin-table thead {
  background: var(--bg-light);
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.admin-table th {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--bg-light);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.no-image-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
}

.price-original {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price-sale {
  color: #e74c3c;
  font-weight: 600;
}

.price-contact {
  color: var(--primary-color);
  font-weight: 600;
}

.stock-available {
  color: #27ae60;
  font-weight: 600;
}

.stock-out {
  color: #e74c3c;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-featured {
  background: var(--primary-color);
  color: white;
}

.badge-active {
  background: #27ae60;
  color: white;
}

.badge-inactive {
  background: #95a5a6;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

.text-center {
  text-align: center;
}

.empty-state {
  padding: 3rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Product Form */
.product-form {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group .required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input[type="checkbox"] {
  margin-right: 0.5rem;
}

.image-input-row,
.spec-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.image-input-row input,
.spec-input-row input {
  flex: 1;
}

.spec-input-row input:first-child {
  flex: 0.4;
}

.spec-input-row input:nth-child(2) {
  flex: 0.6;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.form-actions .btn {
  padding: 1rem 2rem;
}

/* Responsive - Admin Products */
@media (max-width: 768px) {
  .admin-products-page .page-header,
  .admin-product-form-page .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Intro Section */
.intro-section {
  margin: 3rem 0;
}

.intro-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  text-align: center;
}

.intro-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  backdrop-filter: blur(10px);
}

.intro-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.intro-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.feature-item i {
  font-size: 1.2rem;
}

.section-divider {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 3rem 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

/* Responsive - Intro Section */
@media (max-width: 768px) {
  .intro-card {
    padding: 2rem 1.5rem;
  }
  
  .intro-card h3 {
    font-size: 1.5rem;
  }
  
  .intro-description {
    font-size: 1rem;
  }
  
  .intro-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-divider {
    font-size: 1.3rem;
  }
}

/* ===========================
   Admin Menu Styling
   =========================== */

.admin-menu .admin-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-menu .admin-link:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.admin-menu .admin-link i.fa-shield-alt {
  margin-right: 6px;
}

.admin-menu .dropdown-menu {
  min-width: 220px;
}

.admin-menu .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}

.admin-menu .dropdown-menu a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.admin-menu .dropdown-menu a:hover i {
  transform: scale(1.1);
}

/* User Menu Icons */
.nav-menu .user-info i,
.nav-menu a[href="/api/logout"] i,
.nav-menu a[href="/login"] i {
  margin-right: 6px;
}


/* Admin Tabs Responsive */
@media (max-width: 1200px) {
  .tab-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .tab-btn i {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ==========================================
   Drag and Drop Styles
   ========================================== */

/* Draggable document cursor */
.document-card[draggable="true"] {
  cursor: grab;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.document-card[draggable="true"]:active {
  cursor: grabbing;
}

/* Drop zone styles */
.folder-card.drop-zone {
  transition: all 0.3s ease;
  position: relative;
}

.folder-card.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px dashed transparent;
  border-radius: inherit;
  transition: all 0.3s ease;
  pointer-events: none;
}

.folder-card.drop-zone.drag-over {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.folder-card.drop-zone.drag-over::before {
  border-color: var(--primary-color);
  animation: pulseBorder 1s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Drag feedback */
.document-card[draggable="true"]:hover::after {
  content: '드래그하여 이동';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.document-card[draggable="true"]:hover::after {
  opacity: 1;
}

/* Mobile touch feedback */
@media (max-width: 768px) {
  .document-card[draggable="true"]::after {
    display: none;
  }
}


/* ==========================================
   Own Products Section (자사개발사이트)
   ========================================== */

.own-products-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.own-product-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.own-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.own-product-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0;
  text-align: center;
  color: white;
}

.own-product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.own-product-icon.vw-audi {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: rgba(59, 130, 246, 0.5);
}

.own-product-icon.bmw {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  border-color: rgba(75, 85, 99, 0.5);
}

.own-product-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.own-product-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.own-product-body {
  padding: 0;
}

.own-product-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.own-product-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
}

.feature-item i {
  color: #10b981;
  font-size: 1.125rem;
}

.feature-item span {
  font-size: 0.9375rem;
}

.own-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.own-product-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.own-product-link i {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .own-products-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .own-product-header h3 {
    font-size: 1.5rem;
  }
  
  .own-product-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}


/* ==========================================
   External Links Section (About Page)
   ========================================== */
.external-links {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.links-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.link-card {
  background: white;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid transparent;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.link-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.link-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.link-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ==========================================
   Own Products Page
   ========================================== */
.own-products-page {
  min-height: 70vh;
  padding: 4rem 0;
}

.own-products-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .external-links {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* ==========================================
   CEO Message Section
   ========================================== */
.ceo-message {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  color: white;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.4);
  position: relative;
  overflow: hidden;
}

.ceo-message::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  opacity: 0.1;
  line-height: 1;
  z-index: 1;
}

.ceo-background-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 0;
}

.ceo-background-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: grayscale(20%);
}

.ceo-message-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ceo-info {
  flex: 1;
}

.ceo-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: white;
}

.ceo-name {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

.ceo-message-content {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 80%;
}

.ceo-message-content p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.ceo-greeting {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 2rem !important;
  opacity: 1 !important;
}

.ceo-signature {
  text-align: right;
  font-style: italic;
  font-size: 1.125rem !important;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .ceo-message {
    padding: 2rem 1.5rem;
  }
  
  .ceo-background-photo {
    width: 100%;
    opacity: 0.5;
  }
  
  .ceo-background-photo img {
    opacity: 0.1;
  }
  
  .ceo-message-header {
    text-align: center;
  }
  
  .ceo-message-content {
    max-width: 100%;
  }
  
  .ceo-heading {
    font-size: 2.5rem;
  }
  
  .ceo-title {
    font-size: 1.25rem;
  }
  
  .ceo-name {
    font-size: 1rem;
  }
  
  .ceo-greeting {
    font-size: 1.1rem !important;
  }
  
  .ceo-signature {
    font-size: 1rem !important;
    text-align: center;
  }
}

/* ==========================================
   YouTube Video Section
   ========================================== */
.youtube-video-section {
  margin: 4rem 0;
  padding: 3rem;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.video-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.video-title i {
  color: #ff0000;
  font-size: 2rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .youtube-video-section {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }
  
  .video-title {
    font-size: 1.5rem;
  }
  
  .video-title i {
    font-size: 1.75rem;
  }
}

/* ==========================================
   Blog Posts Section (Admin)
   ========================================== */
.posts-section {
  margin-top: 2rem;
}

.posts-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

.post-preview {
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.post-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .post-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-date {
    align-self: flex-start;
  }
}

/* ==========================================
   Post Detail Page
   ========================================== */
.post-detail {
  min-height: 70vh;
  padding: 4rem 0;
  padding-top: 100px; /* Add space for fixed navbar */
}

.post-detail-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.post-detail-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-detail-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.post-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 3rem;
}

.post-detail-content p {
  margin-bottom: 1.5rem;
}

/* Post content images - CRITICAL: Make images visible! */
.post-detail-content img,
.post-detail-content .post-image {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.5rem auto !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
  opacity: 1 !important;
  visibility: visible !important;
}

.post-detail-attachment {
  background: #f9fafb;
  padding: 0;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.post-detail-attachment h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-actions {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
  .post-detail-title {
    font-size: 1.75rem;
  }
  
  .post-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-detail-content {
    font-size: 1rem;
  }
}

/* ==========================================
   Blog Post Editor Page
   ========================================== */
.editor-page {
  min-height: 100vh;
  background: #f9fafb;
  padding: 2rem 0;
  padding-top: 100px; /* Add space for fixed navbar */
}

.editor-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.editor-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 2rem 0;
}

.editor-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.editor-header h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editor-breadcrumb {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control[type="text"] {
  font-size: 1.25rem;
  font-weight: 500;
}

.quill-editor {
  height: 400px;
  background: white;
  border-radius: 8px;
}

.ql-container {
  font-size: 1.05rem;
  line-height: 1.8;
}

.ql-editor {
  min-height: 350px;
}

.ql-toolbar {
  border-radius: 8px 8px 0 0 !important;
  background: #f9fafb;
  border: 1px solid #d1d5db !important;
}

.ql-container {
  border-radius: 0 0 8px 8px !important;
  border: 1px solid #d1d5db !important;
  border-top: none !important;
}

.current-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.editor-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.editor-actions button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .editor-container {
    padding: 0 1rem;
  }
  
  .editor-wrapper {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .editor-header h2 {
    font-size: 1.5rem;
  }
  
  .quill-editor {
    height: 300px;
  }
  
  .editor-actions {
    flex-direction: column;
  }
  
  .editor-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   Admin Split Layout (Sidebar + Content)
   ========================================== */
.admin-split-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.admin-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-y: auto;
  position: sticky;
  top: 100px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.sidebar-header h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header .btn-small {
  padding: 0.5rem;
  min-width: auto;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================
   Folder Tree Navigation
   ========================================== */
.folder-tree {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tree-folder {
  display: flex;
  flex-direction: column;
}

.tree-folder.nested {
  margin-left: 1.5rem;
}

.tree-folder-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.tree-folder-item:hover {
  background: #f3f4f6;
}

.tree-folder-item.active {
  background: #eff6ff;
}

.tree-folder-item.active .tree-link {
  color: var(--primary-color);
  font-weight: 600;
}

.tree-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tree-toggle i {
  font-size: 0.75rem;
}

.tree-toggle.expanded i {
  transform: rotate(90deg);
}

.tree-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  min-width: 0;
}

.tree-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-link i {
  flex-shrink: 0;
  color: #f59e0b;
}

.tree-children {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 1.5rem;
  margin-top: 0.25rem;
}

.tree-children.expanded {
  display: flex;
}

.tree-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 0;
}

.tree-post:hover {
  background: #f3f4f6;
  color: var(--text-dark);
}

.tree-post i {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #3b82f6;
}

.tree-post span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .admin-split-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    max-height: 50vh;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    max-height: 40vh;
  }
  
  .sidebar-header h4 {
    font-size: 1rem;
  }
}

/* ==========================================
   Content with Sidebar (User Pages)
   ========================================== */
.content-with-sidebar {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.content-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.content-sidebar .sidebar-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.content-sidebar .sidebar-header h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .content-with-sidebar {
    flex-direction: column;
  }
  
  .content-sidebar {
    width: 100%;
    max-height: 50vh;
    position: relative;
    top: 0;
  }
}

/* ==========================================
   Smartstore Fetch Styles
   ========================================== */
.smartstore-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.smartstore-input-group input {
  flex: 1;
}

.fetch-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.fetch-status .loading {
  color: #3b82f6;
}

/* ==========================================
   Drag & Drop File Upload Styles
   ========================================== */
.file-upload-wrapper {
  width: 100%;
}

.file-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.file-drop-zone:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.file-drop-zone.drag-active {
  border-color: #f59e0b;
  background: #fef3c7;
  transform: scale(1.02);
}

.file-name-display {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  margin-top: 0.5rem;
}

.file-name-display i {
  font-size: 1.5rem;
  color: #dc2626;
}

.file-name-display span {
  flex: 1;
  font-weight: 500;
  color: #1e293b;
}

.btn-remove-file {
  padding: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-remove-file:hover {
  background: #dc2626;
}

.file-input-hidden {
  display: none !important;
}

/* ==========================================
   Cafe-style Post List Table
   ========================================== */
.post-list-table {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cafe-style-table {
  width: 100%;
  border-collapse: collapse;
}

.cafe-style-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.cafe-style-table th {
  padding: 1rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
  text-align: center;
}

.cafe-style-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.cafe-style-table tbody tr:hover {
  background: #f8fafc;
}

.cafe-style-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
}

.post-title-cell {
  text-align: left;
}

.post-title-link {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.post-title-link:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.post-row:last-child {
  border-bottom: none;
}

/* ==========================================
   Quill Editor Image Styles
   ========================================== */
.quill-editor img {
  cursor: move;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.quill-editor img:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.quill-editor img[draggable="true"] {
  cursor: grab;
}

.quill-editor img[draggable="true"]:active {
  cursor: grabbing;
}

.ql-editor.ql-blank::before {
  color: #94a3b8;
  font-style: normal;
}

.fetch-status .success {
  color: #10b981;
}

.fetch-status .error {
  color: #ef4444;
}

.image-url-input {
  font-size: 0.9rem;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}


/* ==========================================
   HiTips Styles
   ========================================== */

/* HiTips 카드 스타일 */
.hitips-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  border: 2px solid #f59e0b;
}

.hitips-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hitips-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hitips-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.vip-notice {
  color: #92400e;
  font-weight: 600;
}

.vip-notice i {
  color: #f59e0b;
  margin-right: 0.25rem;
}

/* HiTips manufacturer cards */
.manufacturer-card.hitips-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.manufacturer-card.hitips-card:hover {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.manufacturer-card.hitips-card .manufacturer-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.external-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.tree-toggle-placeholder {
  width: 20px;
  display: inline-block;
}

/* 2개 카드를 나란히 배치 */
.intro-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .intro-container {
    grid-template-columns: 1fr;
  }
}

/* 기존 single-card 클래스 제거 */
.intro-container.single-card {
  grid-template-columns: 1fr;
  max-width: 800px;
}

/* ==========================================
   HiTips Folder Grid (Improved)
   ========================================== */

.hitips-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hitips-folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-decoration: none;
  color: #92400e;
  transition: all 0.3s ease;
  min-height: 180px;
  position: relative;
}

.hitips-folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  border-color: #d97706;
}

.folder-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.8rem;
}

.folder-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: #92400e;
}

.external-badge-small {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Sidebar Search */
.sidebar-search {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group i.fa-search {
  position: absolute;
  left: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.search-input-group input {
  width: 100%;
  padding: 0.65rem 2.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-input-group input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
}

.search-clear:hover {
  color: #ef4444;
}

/* External link indicator in tree */
.tree-link.external-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.external-indicator {
  background: #3b82f6;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: auto;
}

/* Search result header */
.search-result-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f59e0b;
}

.search-result-header h3 {
  font-size: 1.5rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.search-result-header p {
  color: #78716c;
  font-size: 0.95rem;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
}

.post-list-item:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
  transform: translateX(4px);
}

.post-title {
  font-weight: 500;
  color: #1f2937;
}

.post-date {
  color: #9ca3af;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hitips-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .hitips-folder-card {
    padding: 1.5rem 0.75rem;
    min-height: 150px;
  }
  
  .folder-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .folder-card-name {
    font-size: 0.95rem;
  }
}

/* ==========================================
   HiTips: 5-Column Grid + Top Search
   ========================================== */

/* Override previous grid to 5 columns */
.hitips-folder-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Top search box styling */
.hitips-top-search {
  background: white;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.hitips-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.hitips-search-input-group i.fa-search {
  position: absolute;
  left: 0.75rem;
  color: #f59e0b;
  font-size: 0.9rem;
}

.hitips-search-input-group input {
  width: 100%;
  padding: 0.75rem 2.5rem;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #fffbeb;
}

.hitips-search-input-group input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: white;
}

.hitips-search-clear {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
}

.hitips-search-clear:hover {
  color: #ef4444;
}

/* Mobile optimization - maintain 5 columns */
@media (max-width: 768px) {
  .hitips-folder-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.75rem;
  }
  
  .hitips-folder-card {
    padding: 1rem 0.5rem;
    min-height: 120px;
  }
  
  .folder-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .folder-card-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hitips-folder-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem;
  }
  
  .hitips-folder-card {
    padding: 0.75rem 0.35rem;
    min-height: 100px;
  }
  
  .folder-card-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .folder-card-name {
    font-size: 0.75rem;
  }
}

/* ==========================================
   Diagnostic Tools: 5-Column Grid + Top Search
   ========================================== */

/* 5-column grid for diagnostic tools */
.diagnostic-folder-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Diagnostic folder card */
.diagnostic-folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: #1e40af;
  transition: all 0.3s ease;
  min-height: 90px;
  position: relative;
}

.diagnostic-folder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border-color: #2563eb;
}

.folder-card-icon.diagnostic-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: white;
  font-size: 0.9rem;
}

/* Top search box for diagnostic */
.diagnostic-top-search {
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.diagnostic-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.diagnostic-search-input-group i.fa-search {
  position: absolute;
  left: 0.75rem;
  color: #3b82f6;
  font-size: 0.9rem;
}

.diagnostic-search-input-group input {
  width: 100%;
  padding: 0.75rem 2.5rem;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: #eff6ff;
}

.diagnostic-search-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: white;
}

.diagnostic-search-clear {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem;
}

.diagnostic-search-clear:hover {
  color: #ef4444;
}

/* Mobile optimization - maintain 5 columns */
@media (max-width: 768px) {
  .diagnostic-folder-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.75rem;
  }
  
  .diagnostic-folder-card {
    padding: 1rem 0.5rem;
    min-height: 120px;
  }
  
  .folder-card-icon.diagnostic-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .folder-card-name {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .diagnostic-folder-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem;
  }
  
  .diagnostic-folder-card {
    padding: 0.75rem 0.35rem;
    min-height: 100px;
  }
  
  .folder-card-icon.diagnostic-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .folder-card-name {
    font-size: 0.75rem;
  }
}

/* ==========================================
   Service Card Feature Icons
   ========================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  color: white;
  font-size: 1.5rem;
}

.hitips-card .feature-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.feature-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* ==========================================
   HiTips Start Page Background
   ========================================== */

/* 하이팁스 시작 페이지 배경 */
.hitips-start-page {
  background-image: url('/static/images/hitips-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 배경 오버레이 (가독성 향상) */
.hitips-start-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* 카드가 배경 위에 표시되도록 */
.hitips-start-page .intro-container {
  position: relative;
  z-index: 2;
  padding: 0;
}

/* 하이팁스 카드 배경 투명도 조정 */
.hitips-start-page .hitips-card {
  background: rgba(254, 243, 199, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hitips-start-page {
    background-attachment: scroll;
    padding: 0;
  }
  
  .hitips-start-page .intro-container {
    padding: 1rem;
  }
}


/* ==========================================

/* ==========================================
   HiLink Page Styles (New Layout)
   ========================================== */

.hilink-page-new {
  min-height: 100vh;
  background: #f8fafc;
  padding-top: 70px; /* Space for fixed navbar */
}

/* Header */
.hilink-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 1rem 1.5rem 0.75rem; /* Compact */
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0; /* Remove margin - use page padding instead */
}

.hilink-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hilink-title {
  font-size: 1.75rem;
  margin: 0.25rem 0;
  font-weight: 700;
}

.hilink-subtitle {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
}

/* Main Layout */
.hilink-content {
  padding: 0.25rem 0; /* Minimal padding */
}

.hilink-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sidebar */
.hilink-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 90px; /* Stick close to navbar */
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.sidebar-header i {
  color: #3b82f6;
  font-size: 1rem;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #1f2937;
}

.region-list {
  padding: 0.25rem 0;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  font-size: 0.85rem;
}

.region-item:hover:not(.disabled) {
  background: #f0f9ff;
  color: #3b82f6;
  border-left-color: #3b82f6;
}

.region-item.active {
  background: #eff6ff;
  color: #1e40af;
  border-left-color: #3b82f6;
  font-weight: 600;
}

.region-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.region-item i {
  width: 20px;
  text-align: center;
  font-size: 0.875rem;
}

.region-item .shop-count {
  margin-left: auto;
  background: #3b82f6;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
}

.region-item.active .shop-count {
  background: #1e40af;
}

.sidebar-info {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 0.75rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  font-size: 0.75rem;
  color: #6b7280;
}

.sidebar-info i {
  color: #3b82f6;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.sidebar-info strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.sidebar-info ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.sidebar-info li {
  margin: 0.25rem 0;
}

/* Main Content */
.hilink-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Map Section */
.map-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.map-container {
  position: relative;
}

.korea-map {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* 한반도 외곽선 */
.korea-map .korea-outline {
  fill: #e0f2fe;
  stroke: #0284c7;
  stroke-width: 3;
  stroke-linejoin: round;
  pointer-events: none;
}

.korea-map .region-svg {
  cursor: pointer;
  transition: all 0.3s ease;
}

.korea-map .region-svg circle,
.korea-map .region-svg ellipse,
.korea-map .region-svg path {
  fill: #e5e7eb;
  stroke: #94a3b8;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.korea-map .region-svg.has-shops circle,
.korea-map .region-svg.has-shops ellipse,
.korea-map .region-svg.has-shops path,
.korea-map .region-svg circle.has-shops,
.korea-map .region-svg ellipse.has-shops,
.korea-map .region-svg path.has-shops {
  fill: #3b82f6;
  stroke: #1e40af;
  stroke-width: 2.5;
}

.korea-map .region-svg:hover circle,
.korea-map .region-svg:hover ellipse,
.korea-map .region-svg:hover path {
  fill: #60a5fa;
  stroke: #2563eb;
  stroke-width: 3;
  transform: scale(1.05);
  transform-origin: center;
}

.korea-map text {
  fill: #1f2937;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #9ca3af;
}

.legend-dot.active {
  background: #3b82f6;
  border-color: #1e40af;
}

/* Shops List */
.shops-list-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.shops-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.shops-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.count-badge {
  background: #eff6ff;
  color: #1e40af;
  padding: 0.375rem 0.875rem;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Compact Shop Card */
.shop-card-compact {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.shop-card-compact:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.shop-main-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
}

.shop-logo-small {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-logo-small img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-main-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  color: #1f2937;
}

.shop-region {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.certified-badge-small {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.shop-card-body {
  padding: 1.25rem;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shop-tags .tag {
  background: #fef3c7;
  color: #92400e;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.813rem;
  font-weight: 500;
}

.shop-contact {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.contact-item i {
  color: #3b82f6;
  width: 16px;
  text-align: center;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.contact-item a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.shop-actions-compact {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.btn-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.btn-icon.naver {
  background: #03c75a;
}

.btn-icon.naver:hover {
  background: #02b350;
  transform: translateY(-2px);
}

.btn-icon.kakao {
  background: #fee500;
  color: #3c1e1e;
}

.btn-icon.kakao:hover {
  background: #ffd700;
  transform: translateY(-2px);
}

.btn-icon.website {
  background: #6b7280;
}

.btn-icon.website:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Empty State */
.empty-state-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  border: 2px dashed #bae6fd;
  text-align: center;
  min-height: 300px;
}

.empty-state-inline i {
  font-size: 4rem;
  color: #0ea5e9;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.empty-state-inline h4 {
  margin: 0;
  color: #0c4a6e;
  font-size: 1.5rem;
  font-weight: 700;
}

.empty-state-inline p {
  margin: 0;
  color: #075985;
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .hilink-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hilink-sidebar {
    position: static;
  }
  
  .shops-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hilink-header {
    padding: 2rem 1rem;
  }
  
  .hilink-title {
    font-size: 2rem;
  }
  
  .hilink-subtitle {
    font-size: 1rem;
  }
  
  .map-section,
  .shops-list-section {
    padding: 1.5rem;
  }
  
  .shops-grid {
    grid-template-columns: 1fr;
  }
  
  .korea-map {
    max-width: 100%;
  }
}


/* ==========================================
   Solutions Page Styles
   ========================================== */

.solutions-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

/* Solution Intro Card */
.solution-intro-card {
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.intro-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.intro-content h3 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.intro-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.intro-feature i {
  color: #86efac;
  font-size: 1.25rem;
}

.intro-feature span {
  font-weight: 500;
}

/* Solutions Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.solution-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.solution-header {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 2px solid #3b82f6;
}

.solution-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.solution-icon.vw-audi {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}

.solution-icon.bmw {
  background: linear-gradient(135deg, #1e293b, #475569);
}

.solution-header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: #1f2937;
}

.solution-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.solution-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}

.solution-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
}

.solution-features .feature-item i {
  color: #10b981;
  font-size: 1.125rem;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.solution-link:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .solutions-page {
    padding: 2rem 1rem;
  }
  
  .solution-intro-card {
    flex-direction: column;
    padding: 0;
  }
  
  .solution-intro-card .intro-image {
    min-height: 200px;
  }
  
  .intro-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .intro-content h3 {
    font-size: 1.5rem;
  }
  
  .intro-content p {
    font-size: 1rem;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Community Board Styles
   ========================================== */

.community-page {
  background: #f8fafc;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
}

.community-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.community-board {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.board-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.board-table tbody tr:hover {
  background: #f9fafb;
}

.col-no {
  width: 80px;
  text-align: center;
}

.col-title {
  text-align: left;
}

.col-title a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.col-title a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.col-author {
  width: 150px;
  text-align: center;
}

.col-date {
  width: 120px;
  text-align: center;
  font-size: 0.875rem;
}

.col-status {
  width: 100px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.empty-row {
  text-align: center;
  padding: 4rem 2rem !important;
  color: #9ca3af;
}

.empty-row i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-row p {
  font-size: 1.125rem;
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
}

.page-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

@media (max-width: 768px) {
  .community-page {
    padding: 2rem 1rem;
  }
  
  .board-table {
    font-size: 0.875rem;
  }
  
  .board-table th,
  .board-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .col-no,
  .col-author,
  .col-date {
    display: none;
  }
  
  .col-status {
    width: auto;
  }
}


/* ==========================================
   CS Page (연락처 및 오시는길)
   ========================================== */
.cs-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 8rem 0 4rem;
}

.cs-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.cs-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.cs-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.cs-card h3 {
  font-size: 1.3rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.cs-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.cs-time {
  color: #718096;
  font-size: 0.9rem;
}

.cs-location {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.cs-section-title {
  font-size: 1.8rem;
  color: #2d3748;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cs-section-title i {
  color: #667eea;
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.info-item strong {
  color: #2d3748;
  margin-right: 0.5rem;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cs-transport {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.transport-item {
  text-align: center;
  padding: 0;
  background: #f7fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.transport-item:hover {
  background: #edf2f7;
  transform: translateY(-3px);
}

.transport-item i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.transport-item h4 {
  font-size: 1.2rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.transport-item p {
  color: #718096;
  line-height: 1.6;
}

/* ==========================================
   Partners Page (협력업체)
   ========================================== */
.partners-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8rem 0 4rem;
  min-height: calc(100vh - 80px);
}

.partners-page .section-header {
  color: white;
}

.partners-page .section-title {
  color: white;
}

.partners-page .section-subtitle {
  color: rgba(255,255,255,0.9);
}

.partners-intro {
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 3rem 4rem;
  text-align: center;
  margin-bottom: 4rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

.partners-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
}

/* 마인드맵 컨테이너 */
.mindmap-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 800px;
  margin: 0 auto 4rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 0;
}

/* 중앙 하이스캔 로고 */
.mindmap-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.center-logo {
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 5px solid #f59e0b;
  padding: 1rem;
}

.center-logo img {
  width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
}

.center-logo h3 {
  font-size: 1rem;
  color: #2d3748;
  font-weight: 700;
  text-align: center;
}

/* 협력업체 노드 배치 */
.mindmap-partners {
  position: relative;
  width: 100%;
  height: 100%;
}

.partner-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  animation: float 3s ease-in-out infinite;
}

/* 각 노드를 원형으로 배치 */
.partner-node {
  --radius: 320px;
  transform: 
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(var(--radius))
    rotate(calc(-1 * var(--angle)));
}

.partner-logo {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid #e2e8f0;
}

.partner-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border-color: #f59e0b;
}

.partner-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.partner-logo.youtube i {
  font-size: 3rem;
  color: #ff0000;
  margin-bottom: 0.5rem;
}

.partner-logo p {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d3748;
  text-align: center;
  margin: 0;
}

/* 연결선 효과 (선택사항) */
.partner-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--radius) - 90px);
  height: 2px;
  background: rgba(255,255,255,0.3);
  transform-origin: left center;
  transform: translate(60px, -50%) rotate(calc(-1 * var(--angle)));
  z-index: -1;
}

/* Float 애니메이션 */
@keyframes float {
  0%, 100% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--angle))
      translateX(var(--radius))
      rotate(calc(-1 * var(--angle)))
      translateY(0);
  }
  50% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--angle))
      translateX(var(--radius))
      rotate(calc(-1 * var(--angle)))
      translateY(-10px);
  }
}

/* 협력 분야 */
.partnership-areas {
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.partnership-areas h3 {
  font-size: 1.8rem;
  color: #2d3748;
  text-align: center;
  margin-bottom: 2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.area-card {
  text-align: center;
  padding: 0;
  background: #f7fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.area-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.area-card i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.area-card h4 {
  font-size: 1.3rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.area-card p {
  color: #718096;
  line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .location-content {
    grid-template-columns: 1fr;
  }
  
  .mindmap-container {
    height: 600px;
  }
  
  .partner-node {
    --radius: 200px;
  }
  
  .center-logo {
    width: 120px;
    height: 120px;
  }
  
  .center-logo img {
    width: 60px;
  }
  
  .partner-logo {
    width: 80px;
    height: 80px;
  }
  
  .partner-logo img {
    width: 40px;
    height: 40px;
  }
  
  .partner-logo.youtube i {
    font-size: 2rem;
  }
  
  .partner-logo p {
    font-size: 0.65rem;
  }
}

/* ==========================================
   Partners Page - Updated (No YouTube, More Nodes)
   ========================================== */

/* 상단 배너 - +5000 애니메이션 */
.partners-banner {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.partners-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.count-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 5rem;
  font-weight: 800;
  color: #667eea;
  line-height: 1;
}

.count-plus {
  animation: pulse 2s ease-in-out infinite;
}

.count-number {
  animation: countUp 3s ease-out forwards;
}

.count-label {
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 소개 문구 업데이트 */
.partners-intro strong {
  color: #667eea;
  font-weight: 700;
  font-size: 1.2rem;
}

/* 마인드맵 - 주요 파트너 크기 조정 */
.partner-node.main-partner {
  --radius: 300px;
  z-index: 5;
}

.partner-node.main-partner .partner-logo {
  width: 140px;
  height: 140px;
  border: 4px solid #667eea;
}

.partner-node.main-partner .partner-logo img {
  width: 70px;
  height: 70px;
}

.partner-node.main-partner .partner-logo p {
  font-size: 0.85rem;
  font-weight: 700;
}

/* 배경 작은 노드들 - 많은 협력업체 표현 */
.background-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-node {
  position: absolute;
  top: 50%;
  left: 50%;
  --bg-radius: 400px;
  transform: 
    translate(-50%, -50%)
    rotate(var(--bg-angle))
    translateX(var(--bg-radius))
    rotate(calc(-1 * var(--bg-angle)));
  animation: bgFloat 4s ease-in-out infinite;
  animation-delay: var(--bg-delay);
}

.bg-dot {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  opacity: 0.5;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bg-dot:hover {
  opacity: 0.8;
  transform: scale(1.2);
  background: rgba(255,255,255,0.9);
}

@keyframes bgFloat {
  0%, 100% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--bg-angle))
      translateX(var(--bg-radius))
      rotate(calc(-1 * var(--bg-angle)))
      translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: 
      translate(-50%, -50%)
      rotate(var(--bg-angle))
      translateX(var(--bg-radius))
      rotate(calc(-1 * var(--bg-angle)))
      translateY(-15px);
    opacity: 0.7;
  }
}

/* 협력 분야 아이콘 업데이트 */
.area-card i {
  font-size: 3.5rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 반응형 - 배너 */
@media (max-width: 768px) {
  .partners-banner {
    padding: 2rem 1rem;
  }
  
  .count-wrapper {
    font-size: 3rem;
  }
  
  .count-label {
    font-size: 1.2rem;
  }
  
  .partner-node.main-partner {
    --radius: 180px;
  }
  
  .partner-node.main-partner .partner-logo {
    width: 90px;
    height: 90px;
  }
  
  .partner-node.main-partner .partner-logo img {
    width: 45px;
    height: 45px;
  }
  
  .bg-node {
    --bg-radius: 250px;
  }
  
  .bg-dot {
    width: 25px;
    height: 25px;
  }
}

/* ==========================================
   HiLink Admin Styles
   ========================================== */

/* 관리자 액션 버튼 */
.admin-actions {
  margin-top: 2rem;
  text-align: center;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.btn-admin-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1rem 1.5rem 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(85vh - 80px);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* 버튼 스타일 */
.btn-primary,
.btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Solution Icon Update */
/* Solution Intro Image */
.solution-intro-card .intro-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  min-height: 300px;
}

.solution-intro-card .intro-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.solution-intro-card .intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 반응형 */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
  }
}


/* Notice Badge */
.badge-notice {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

/* Write Form Styles */
.write-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fefefe;
}

.form-control-file {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.form-help {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
}

.checkbox-group {
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.btn-secondary {
  padding: 0.875rem 2rem;
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

textarea.form-control {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

/* PDF Embed Container */
.pdf-embed-container {
  width: 100%;
  margin: 3rem 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f7fafc;
}

.pdf-embed-iframe {
  width: 100%;
  height: 800px;
  border: none;
  display: block;
  background: white;
}

@media (max-width: 768px) {
  .pdf-embed-iframe {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .pdf-embed-iframe {
    height: 400px;
  }
}

/* Authentication Page Styles */
.authentication-page {
  min-height: calc(100vh - 80px);
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.auth-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.auth-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 968px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

/* Instructions Card */
.auth-instructions {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.instruction-card .instruction-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.instruction-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.instruction-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.instruction-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.instruction-list li i {
  color: #10b981;
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.sample-image {
  margin-top: 2rem;
  text-align: center;
}

.image-caption {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Verification Form */
.auth-form-container {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-form-card {
  width: 100%;
}

.form-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.auth-form-card h3 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.form-description {
  text-align: center;
  color: #64748b;
  margin-bottom: 2rem;
}

.verification-form {
  margin-bottom: 2rem;
}

.verification-form .form-group {
  margin-bottom: 1rem;
}

.verification-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9375rem;
}

.verification-form .form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.125rem;
  font-family: monospace;
  text-transform: uppercase;
  transition: all 0.3s;
}

.verification-form .form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
  display: block;
  margin-top: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.btn-verify {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-notice {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.auth-notice i {
  color: #f59e0b;
  font-size: 1.25rem;
}

.auth-notice p {
  margin: 0;
  color: #78350f;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Verification Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.verification-modal {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: #64748b;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.verification-result {
  text-align: center;
}

.verification-result .result-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.verification-result.genuine .result-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  animation: scaleIn 0.5s ease;
}

.verification-result.fake .result-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  animation: shakeX 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.verification-result h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.result-message {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.result-details {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #475569;
}

.detail-value {
  color: #1e293b;
}

.result-benefits {
  text-align: left;
  background: #ecfdf5;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 3px solid #10b981;
}

.result-benefits h4 {
  color: #065f46;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-benefits li {
  padding: 0.5rem 0;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-benefits li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
}

.warning-box {
  background: #fef2f2;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 3px solid #ef4444;
  text-align: left;
}

.warning-box i {
  color: #dc2626;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}

.warning-box p {
  color: #7f1d1d;
  margin: 0;
  line-height: 1.6;
}

.contact-info {
  text-align: left;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info h4 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info p {
  color: #64748b;
  margin-bottom: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-contact {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1rem;
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-contact:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.btn-close-modal {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close-modal.secondary {
  background: #6b7280;
}

.btn-close-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-close-modal.secondary:hover {
  box-shadow: 0 10px 20px rgba(107, 114, 128, 0.3);
}

/* Serial Numbers Admin Styles */
.serial-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.stat-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: bold;
  color: #1e293b;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

/* ====================================
   NEW AUTHENTICATION PAGE STYLES
   ==================================== */

.authentication-page-new {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.authentication-page-new::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.auth-hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* Content Grid */
.auth-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .auth-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Styles */
.verification-card,
.instructions-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: both;
}

.verification-card {
  animation-delay: 0.2s;
}

.instructions-card {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.header-icon.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.card-header h2 {
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card-header p {
  color: #64748b;
  font-size: 1rem;
}

/* Verification Form */
.verify-form {
  margin-bottom: 2rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.25rem;
  z-index: 1;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1.125rem;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
  color: #cbd5e1;
  letter-spacing: 1px;
}

/* Verify Button */
.verify-button {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.verify-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.verify-button:active {
  transform: translateY(-1px);
}

.button-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.verify-button:hover .button-shine {
  left: 100%;
}

.verify-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Card Footer */
.card-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f0f9ff;
  border-radius: 12px;
  color: #0369a1;
  font-size: 0.9375rem;
}

.info-box i {
  font-size: 1.125rem;
}

/* Steps List */
.steps-list {
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 16px;
  transition: all 0.3s;
}

.step-item:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.step-number {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  color: #1e293b;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Image Section */
.image-section {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
}

.image-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.image-label i {
  color: #94a3b8;
}

.image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.image-wrapper:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.example-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-size: 1.5rem;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

.image-hint i {
  color: #94a3b8;
}

/* Warning Notice */
.warning-notice {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border-left: 5px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.notice-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.notice-content h4 {
  color: #92400e;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.notice-content p {
  color: #78350f;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.25rem;
  transition: all 0.3s;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .verification-card,
  .instructions-card {
    padding: 1.5rem;
  }
  
  .warning-notice {
    flex-direction: column;
    text-align: center;
  }
}
/* ===== 정품인증 페이지 개선 스타일 ===== */

.auth-page .image-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 12px;
  border: 2px solid #d1d5db;
}

.auth-page .image-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.auth-page .image-label i {
  color: #8b5cf6;
  font-size: 1.25rem;
}

.auth-page .image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid #8b5cf6;
}

.auth-page .image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.auth-page .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: white;
}

.auth-page .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 92, 246, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 1.5rem;
}

.auth-page .image-wrapper:hover .image-overlay {
  opacity: 1;
}

.auth-page .image-overlay span {
  font-size: 1rem;
  font-weight: 600;
}

.auth-page .image-hint {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

.auth-page .image-hint i {
  color: #fbbf24;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 이미지가 로드되지 않을 때를 위한 대체 스타일 */
.auth-page .image-wrapper img[src*="UEiOcFdF"] {
  min-height: 200px;
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
}

/* 카드 반응형 개선 */
@media (max-width: 1024px) {
  .auth-page .cards-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .auth-page .image-section {
    padding: 1rem;
  }
}

/* 버튼 애니메이션 개선 */
.auth-page .verify-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-page .verify-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.4);
}

.auth-page .verify-button:active {
  transform: translateY(0);
}

#serialModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

#serialModal .modal-content {
  background-color: #fff;
  margin: 0;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  position: relative;
}

#serialModal .modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  color: #9ca3af;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

#serialModal .modal-close:hover,
#serialModal .modal-close:focus {
  color: #1f2937;
}

#serialModal h2 {
  margin: 0 0 1.5rem 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#serialModal .form-group {
  margin-bottom: 1rem;
}

#serialModal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 600;
  font-size: 0.875rem;
}

#serialModal .form-group input,
#serialModal .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
  font-family: inherit;
}

#serialModal .form-group input:focus,
#serialModal .form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#serialModal .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

#serialModal .form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

#serialModal .form-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#serialModal .form-actions .btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

#serialModal .form-actions .btn-secondary:hover {
  background: #e5e7eb;
}

#serialModal .form-actions .btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

#serialModal .form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 */
@media (max-width: 640px) {
  #serialModal .modal-content {
    margin: 10% 1rem;
    padding: 1.5rem;
    width: auto;
  }
  
  #serialModal .form-actions {
    flex-direction: column;
  }
  
  #serialModal .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* 각 탭별 padding 설정 */
#users-tab,
#permissions-tab,
#service-docs-tab,
#hitips-docs-tab,
#serial-numbers-tab {
  padding: 1.5rem 4rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* 모든 탭의 첫 번째 h3 요소의 margin */
.tab-content > h3:first-child {
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Admin section responsive padding */
@media (max-width: 1200px) {
  .admin-section .container {
    padding: 70px 2.5rem 2rem 2.5rem;
  }
  
  #users-tab,
  #permissions-tab,
  #service-docs-tab,
  #hitips-docs-tab,
  #serial-numbers-tab {
    padding: 1.5rem 2.5rem 2rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .admin-section .container {
    padding: 70px 1.5rem 1.5rem 1.5rem;
  }
  
  #users-tab,
  #permissions-tab,
  #service-docs-tab,
  #hitips-docs-tab,
  #serial-numbers-tab {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

/* Partners Intro Responsive */
@media (max-width: 1024px) {
  .partners-intro {
    padding: 2.5rem 3rem;
  }
}

@media (max-width: 768px) {
  .partners-intro {
    padding: 2rem;
  }
  
  .partners-intro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .partners-intro {
    padding: 1.5rem;
  }
  
  .partners-intro p {
    font-size: 0.95rem;
  }
}

/* ==========================================
   Custom Modal System (replaces alert/prompt/confirm)
   ========================================== */

/* Modal Overlay */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  animation: fadeIn 0.2s ease;
  align-items: center;
  justify-content: center;
}

.custom-modal-overlay.active {
  display: flex;
}

/* Modal Container */
.custom-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Close Button (X) - Always visible in top right */
.custom-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.125rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.custom-modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.custom-modal-close-btn:active {
  transform: rotate(90deg) scale(0.9);
}

/* Modal Header */
.custom-modal-header {
  padding: 1.5rem 3rem 1.5rem 2rem; /* Extra padding on right for close button */
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.custom-modal-header i {
  font-size: 1.5rem;
}

.custom-modal-header.alert {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-bottom: none;
}

.custom-modal-header.confirm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-bottom: none;
}

.custom-modal-header.prompt {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
}

.custom-modal-header.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-bottom: none;
}

.custom-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

/* Modal Body Wrapper - For scrolling */
.custom-modal-body-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(90vh - 200px); /* Reserve space for header and footer */
}

/* Custom scrollbar for modal */
.custom-modal-body-wrapper::-webkit-scrollbar {
  width: 8px;
}

.custom-modal-body-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.custom-modal-body-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-modal-body-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal Body */
.custom-modal-body {
  padding: 2rem;
}

.custom-modal-message {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  white-space: pre-wrap;
}

.custom-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.custom-modal-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modal Footer */
.custom-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0; /* Prevent footer from shrinking */
}

.custom-modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-modal-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.custom-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.custom-modal-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.custom-modal-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.custom-modal-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.custom-modal-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.custom-modal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.custom-modal-btn-secondary:hover {
  background: #e5e7eb;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .custom-modal {
    width: 95%;
    margin: 1rem;
  }
  
  .custom-modal-header,
  .custom-modal-body,
  .custom-modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .custom-modal-footer {
    flex-direction: column;
  }
  
  .custom-modal-btn {
    width: 100%;
    justify-content: center;
  }
}
