@import url('./common.css');

.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fff;
  position: relative;
}

/* 헤더 */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.admin-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* 사용자 정보 섹션 */
.user-section {
  padding: 30px 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.user-section h2 {
  font-size: 22px;
  color: #667eea;
  margin: 0;
}

/* 출퇴근 정보 */
.attendance-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.duration-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #34C759;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 근무 일정 버튼 */
.schedule-btn {
  width: 100%;
  padding: 14px;
  background: white;
  border: 2px solid #667eea;
  color: #667eea;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.schedule-btn:hover {
  background: #667eea;
  color: white;
}

/* 휴가 신청 버튼 */
.vacation-btn {
  width: 100%;
  padding: 14px;
  background: white;
  border: 2px solid #FF9500;
  color: #FF9500;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vacation-btn:hover {
  background: #FF9500;
  color: white;
}

/* 출퇴근 버튼 */
.attendance-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 350px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  z-index: 100;
}

.attendance-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateX(-50%) translateY(-3px);
}

.attendance-btn:disabled {
  opacity: 0.7;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .main-header {
    padding: 12px 16px;
  }

  .header-left {
    font-size: 16px;
  }

  .user-section {
    padding: 20px 16px;
  }

  .user-section h2 {
    font-size: 24px;
  }

  .attendance-info {
    padding: 16px;
    gap: 16px;
    padding-bottom: 140px;
  }

  .status-box,
  .duration-box {
    padding: 16px;
    font-size: 16px;
  }

  .attendance-btn {
    bottom: 20px;
    width: calc(100% - 32px);
    max-width: none;
    padding: 18px;
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .main-header {
    padding: 10px 12px;
  }

  .header-left {
    font-size: 14px;
  }

  .admin-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .user-section h2 {
    font-size: 20px;
  }

  .attendance-btn {
    bottom: 16px;
    width: calc(100% - 24px);
    max-width: none;
    padding: 16px;
    font-size: 14px;
  }
}
