/**
 * 기본 스타일시트
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
  line-height: 1;
  color: #333;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: #3498db;
}

select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.error {
  display: none;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

.contact-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-separator {
  font-size: 18px;
  color: #666;
  font-weight: bold;
}

.email-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
  margin-left: 10px;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Notification 스타일 */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  max-width: 500px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.notification-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  margin-left: 15px;
  padding: 0;
  line-height: 1;
}

.notification-close:hover {
  opacity: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* 헤더 스타일 */
.main-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
}

.system-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

.user-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 6px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label {
  font-weight: bold;
  font-size: 14px;
  min-width: 80px;
}

.info-value {
  font-size: 14px;
}

.admin-badge {
  background-color: #ffc107;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

.status-active {
  color: #90ee90;
  font-weight: bold;
}

.status-expired {
  color: #ff6b6b;
  font-weight: bold;
}

/* 네비게이션 스타일 */
.main-nav {
  background: white;
  padding: 0;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  flex: 1;
  min-width: 150px;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: #f8f9fa;
  border-bottom-color: #667eea;
  color: #667eea;
}

.nav-link.admin-link {
  color: #ffc107;
}

.nav-link.admin-link:hover {
  border-bottom-color: #ffc107;
}

.nav-link.logout-link {
  color: #dc3545;
}

.nav-link.logout-link:hover {
  border-bottom-color: #dc3545;
  background-color: #fff5f5;
}


/* 메인 콘텐츠 */
.main-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

/* 시뮬레이션 카드 */
.simulation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.simulation-card {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s;
}

.simulation-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.simulation-card h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 20px;
}

.simulation-card p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1;
}

.simulation-card .btn {
  width: 100%;
  text-align: center;
}
