:root {
  --primary-color: #1D4ED8;
  --secondary-color: #4B5563;
  --light-color: #F9FAFB;
  --dark-color: #111827;
  --success-color: #22C55E;
  --info-color: #3B82F6;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --border-radius: 12px;
  --box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%; /* Ensure full height for sticky footer */
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  font-size: 1.125rem; /* Increased from 0.875rem */
  display: flex;
  flex-direction: column; /* Flexbox for sticky footer */
  min-height: 100vh; /* Minimum viewport height */
}



.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px; /* Increased padding */
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem; /* Increased from 0.875rem */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #60A5FA);
  color: white;
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  width: 150px;
  height: 150px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
}

.btn-outline:hover {
  background-color: var(--dark-color);
  color: white;
}

.btn-outline-light {
  background-color: var(--glass-bg);
  border: 2px solid white;
  color: white;
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header Styles */
.header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px; /* Increased height */
}

.logo a {
  font-size: 1.5rem; /* Increased from 1.25rem */
  font-weight: 900;
  letter-spacing: 1px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo a:hover {
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.logo-sam {
  color: #1E3A8A;
  text-shadow: 0 0 6px rgba(29, 78, 216, 0.4);
}

.logo-net {
  color: #60A5FA;
}

.main-nav ul {
  display: flex;
  gap: 20px; /* Increased gap */
}

.main-nav a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1rem; /* Increased from 0.875rem */
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #60A5FA);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  gap: 10px; /* Increased gap */
  position: relative;
}

.auth-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: none;
  flex-direction: column;
  padding: 10px;
}

.auth-buttons:hover .auth-dropdown {
  display: flex;
}

.auth-dropdown a {
  padding: 6px 10px; /* Increased padding */
  font-size: 0.875rem; /* Increased from 0.75rem */
  color: var(--dark-color);
}

.auth-dropdown a:hover {
  background: var(--secondary-color);
  color: white;
}

/* Section Styles */
.section {
  padding: 48px 0; /* Increased padding */
  flex: 1; /* Ensure content takes available space for sticky footer */
}

.section-header {
  text-align: center;
  margin-bottom: 30px; /* Increased margin */
}

.section-header h2 {
  font-size: 2rem; /* Increased from 1.5rem */
  font-weight: 900;
  color: var(--dark-color);
}

/* Form Styles */
.form-container {
  background: var(--light-color);
  padding: 20px; /* Increased padding */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px; /* Increased margin */
}

.form-group label {
  display: block;
  font-size: 0.875rem; /* Increased from 0.75rem */
  font-weight: 500;
  margin-bottom: 6px; /* Increased margin */
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px; /* Increased padding */
  border: 1px solid var(--secondary-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem; /* Increased from 0.75rem */
}

.form-group .error {
  color: var(--danger-color);
  font-size: 0.75rem; /* Increased from 0.625rem */
  margin-top: 6px; /* Increased margin */
  display: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--light-color);
  padding: 20px; /* Increased padding */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 360px; /* Increased width */
}

.modal-content p {
  font-size: 1rem; /* Increased from 0.875rem */
  margin-bottom: 20px; /* Increased margin */
}

.modal-content .btn {
  background: var(--primary-color);
}

.admin-confirm-modal-approve .modal-content {
  border: 2px solid var(--success-color);
}

.admin-confirm-modal-approve .btn-primary {
  background: var(--success-color);
  color: white;
}

.admin-confirm-modal-reject .modal-content {
  border: 2px solid var(--danger-color);
}

.admin-confirm-modal-reject .btn-primary {
  background: var(--danger-color);
  color: white;
}

/* Footer Styles */
.footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, #111827, #1F2937);
  color: white;
  padding: 48px 0 30px; /* Increased padding */
  margin-top: auto; /* Push footer to bottom */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; /* Increased gap */
  margin-bottom: 30px; /* Increased margin */
}

.footer-logo {
  font-size: 1.25rem; /* Increased from 1rem */
  font-weight: 900;
  margin-bottom: 16px; /* Increased margin */
}

.footer-column p {
  color: #9CA3AF;
  margin-bottom: 20px; /* Increased margin */
  font-size: 0.875rem; /* Increased from 0.75rem */
  font-weight: 300;
}

.footer-column h4 {
  font-size: 1rem; /* Increased from 0.875rem */
  font-weight: 700;
  margin-bottom: 20px; /* Increased margin */
}

.footer-column ul li {
  margin-bottom: 10px; /* Increased margin */
}

.footer-column ul li a {
  color: #9CA3AF;
  font-size: 0.875rem; /* Increased from 0.75rem */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px; /* Increased padding */
  border-top: 1px solid #374151;
}

.footer-bottom p {
  color: #9CA3AF;
  font-size: 0.875rem; /* Increased from 0.75rem */
}

.social-links {
  display: flex;
  gap: 20px; /* Increased gap */
}

.social-links a {
  color: #9CA3AF;
  font-size: 0.875rem; /* Increased from 0.75rem */
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container {
      max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
      max-width: 720px;
  }
  .footer-content {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
      max-width: 540px;
      padding: 0 12px;
  }
  .header-content {
      flex-direction: column;
      height: auto;
      padding: 20px 0; /* Increased padding */
  }
  .main-nav {
      margin: 20px 0; /* Increased margin */
  }
  .main-nav ul {
      flex-direction: column;
      align-items: center;
      gap: 10px; /* Increased gap */
  }
  .main-nav li {
      margin: 0;
  }
  .auth-buttons {
      flex-direction: column;
      gap: 6px; /* Increased gap */
  }
  .footer-content {
      grid-template-columns: repeat(2, 1fr);
  }
  .section {
      padding: 30px 0; /* Increased padding */
  }
  .section-header h2 {
      font-size: 1.75rem; /* Increased from 1.25rem */
  }
  .form-container {
      padding: 16px; /* Increased padding */
      max-width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
      max-width: 100%;
      padding: 0 10px; /* Increased padding */
  }
  .footer-content {
      grid-template-columns: 1fr;
  }
  .footer-bottom {
      flex-direction: column;
      gap: 16px; /* Increased gap */
  }
  .modal-content {
      max-width: 300px; /* Increased width */
      padding: 16px; /* Increased padding */
  }
  .btn {
      padding: 10px 20px; /* Increased padding */
      font-size: 0.875rem; /* Increased from 0.75rem */
  }
}